|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.saxon.value.Value
net.sf.saxon.value.AtomicValue
net.sf.saxon.value.BooleanValue
A boolean XPath value
| Field Summary | |
static BooleanValue |
FALSE
The boolean value FALSE |
static BooleanValue |
TRUE
The boolean value TRUE |
| Fields inherited from class net.sf.saxon.value.Value |
EMPTY_CLASS_ARRAY |
| Fields inherited from interface net.sf.saxon.om.ValueRepresentation |
EMPTY_VALUE_ARRAY |
| Fields inherited from interface net.sf.saxon.expr.Expression |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD |
| Method Summary | |
int |
compareTo(java.lang.Object other)
Compare the value to another boolean value |
AtomicValue |
convertPrimitive(BuiltInAtomicType requiredType,
boolean validate,
XPathContext context)
Convert to target data type |
java.lang.Object |
convertToJava(java.lang.Class target,
XPathContext context)
Convert to Java object (for passing to external functions) |
boolean |
effectiveBooleanValue(XPathContext context)
Get the effective boolean value of this expression |
boolean |
equals(java.lang.Object other)
Determine whether two boolean values are equal |
static AtomicValue |
fromString(java.lang.CharSequence s)
Convert a string to a boolean value, using the XML Schema rules (including whitespace trimming) |
static BooleanValue |
get(boolean value)
Factory method: get a BooleanValue |
boolean |
getBooleanValue()
Get the value |
ItemType |
getItemType(TypeHierarchy th)
Determine the data type of the expression |
java.lang.String |
getStringValue()
Convert to string |
int |
hashCode()
Get a hash code for comparing two BooleanValues |
java.lang.String |
toString()
Diagnostic display of this value as a string |
| Methods inherited from class net.sf.saxon.value.AtomicValue |
checkPermittedContents, convert, convert, display, evaluateAsString, evaluateItem, getCardinality, getComponent, getImplementationMethod, getLength, getPrimitiveValue, getStringValueCS, getTypedValue, hasBuiltInType, iterate, process |
| Methods inherited from class net.sf.saxon.value.Value |
asItem, asIterator, asValue, convert, convertJavaObjectToXPath, getDependencies, getIterator, getParentExpression, getSpecialProperties, itemAt, iterateSubExpressions, makeQNameValue, optimize, promote, reduce, simplify, stringToNumber, typeCheck |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final BooleanValue TRUE
public static final BooleanValue FALSE
| Method Detail |
public static BooleanValue get(boolean value)
value - true or false, to determine which boolean value is
required
public static AtomicValue fromString(java.lang.CharSequence s)
s - the input string
public boolean getBooleanValue()
public boolean effectiveBooleanValue(XPathContext context)
effectiveBooleanValue in interface ExpressioneffectiveBooleanValue in class AtomicValuecontext - dynamic evaluation context, not used in this
implementation
public AtomicValue convertPrimitive(BuiltInAtomicType requiredType,
boolean validate,
XPathContext context)
convertPrimitive in class AtomicValuerequiredType - an integer identifying the required atomic typecontext - validate - true if validation is required. If set to false, the caller guarantees that
the value is valid for the target data type, and that further validation is therefore not required.
Note that a validation failure may be reported even if validation was not requested.
public java.lang.String getStringValue()
getStringValue in interface ItemgetStringValue in class AtomicValuepublic ItemType getItemType(TypeHierarchy th)
getItemType in interface ExpressiongetItemType in class Valueth -
public java.lang.Object convertToJava(java.lang.Class target,
XPathContext context)
throws XPathException
convertToJava in class Valuetarget - the Java class to which conversion is required
XPathException - if conversion is not possible or failspublic int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparableother - The other boolean value
java.lang.ClassCastException - if the other value is not a BooleanValue
(the parameter is declared as Object to satisfy the Comparable
interface)public boolean equals(java.lang.Object other)
equals in class Valueother - the value to be compared to this value
java.lang.ClassCastException - if other value is not xs:boolean or derived therefrompublic int hashCode()
hashCode in class Valuepublic java.lang.String toString()
toString in class AtomicValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||