com.jclark.xsl.expr

Class BooleanVariant

Implemented Interfaces:
Variant

public class BooleanVariant
extends VariantBase

a boolean which can provide its value as a String, Number or Object

Constructor Summary

BooleanVariant(boolean b)

Method Summary

boolean
convertToBoolean()
double
convertToNumber()
Object
convertToObject()
String
convertToString()
boolean
isBoolean()

Methods inherited from class com.jclark.xsl.expr.VariantBase

convertToNodeSet, convertToNumber, convertToPredicate, create, getBaseNode, isBoolean, isNodeSet, isNumber, isString, makePermanent

Constructor Details

BooleanVariant

public BooleanVariant(boolean b)

Method Details

convertToBoolean

public boolean convertToBoolean()
Specified by:
convertToBoolean in interface Variant


convertToNumber

public double convertToNumber()
Specified by:
convertToNumber in interface Variant
Overrides:
convertToNumber in interface VariantBase


convertToObject

public Object convertToObject()
Specified by:
convertToObject in interface Variant


convertToString

public String convertToString()
Specified by:
convertToString in interface Variant


isBoolean

public boolean isBoolean()
Specified by:
isBoolean in interface Variant
Overrides:
isBoolean in interface VariantBase