|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xquery.value.AtomicValue
org.exist.xquery.value.BooleanValue
public class BooleanValue
Field Summary | |
---|---|
static BooleanValue |
FALSE
|
static BooleanValue |
TRUE
|
Fields inherited from class org.exist.xquery.value.AtomicValue |
---|
EMPTY_VALUE |
Fields inherited from interface org.exist.xquery.value.Sequence |
---|
EMPTY_SEQUENCE |
Constructor Summary | |
---|---|
BooleanValue(boolean bool)
|
Method Summary | |
---|---|
int |
compareTo(Collator collator,
AtomicValue other)
|
boolean |
compareTo(Collator collator,
int operator,
AtomicValue other)
|
int |
compareTo(Object o)
|
int |
conversionPreference(Class javaClass)
Returns a preference indicator, indicating the preference of a value to be converted into the given Java class. |
AtomicValue |
convertTo(int requiredType)
Convert this item into an atomic value, whose type corresponds to the specified target type. |
boolean |
effectiveBooleanValue()
Get the effective boolean value of this sequence. |
String |
getStringValue()
Return the string value of this item (see the definition of string value in XPath). |
int |
getType()
Returns the type of the Indexable as one of the constants defined in Type . |
boolean |
getValue()
|
AtomicValue |
max(Collator collator,
AtomicValue other)
|
AtomicValue |
min(Collator collator,
AtomicValue other)
|
Object |
toJavaObject(Class target)
Convert the value into an instance of the specified Java class. |
static BooleanValue |
valueOf(boolean bool)
Returns one of the static fields TRUE or FALSE depending on the value of the parameter. |
Methods inherited from class org.exist.xquery.value.AtomicValue |
---|
add, addAll, atomize, clearContext, contains, copyTo, dump, endsWith, getCardinality, getCollectionIterator, getDocumentSet, getItemCount, getItemType, getState, hasChanged, hasMany, hasOne, isCacheable, isCached, isEmpty, isPersistentSet, itemAt, iterate, nodeMoved, promote, removeDuplicates, serializeValue, setIsCached, setSelfAsContext, startsWith, toMemNodeSet, toNodeSet, toSAX, toSequence, toString, unorderedIterator |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final BooleanValue TRUE
public static final BooleanValue FALSE
Constructor Detail |
---|
public BooleanValue(boolean bool)
Method Detail |
---|
public static final BooleanValue valueOf(boolean bool)
bool
- public int getType()
Indexable
Type
.
getType
in interface Indexable
getType
in interface Item
getType
in class AtomicValue
public String getStringValue() throws XPathException
Item
getStringValue
in interface Item
getStringValue
in interface Sequence
getStringValue
in class AtomicValue
XPathException
public AtomicValue convertTo(int requiredType) throws XPathException
Item
Type
. An XPathException
is thrown
if the conversion is impossible.
convertTo
in interface Item
convertTo
in interface Sequence
convertTo
in class AtomicValue
requiredType
- one of the type constants defined in class Type
XPathException
public boolean compareTo(Collator collator, int operator, AtomicValue other) throws XPathException
compareTo
in class AtomicValue
XPathException
public int compareTo(Collator collator, AtomicValue other) throws XPathException
compareTo
in class AtomicValue
XPathException
public boolean effectiveBooleanValue() throws XPathException
Sequence
effectiveBooleanValue
in interface Sequence
effectiveBooleanValue
in class AtomicValue
XPathException
public boolean getValue()
public AtomicValue max(Collator collator, AtomicValue other) throws XPathException
max
in class AtomicValue
XPathException
public AtomicValue min(Collator collator, AtomicValue other) throws XPathException
min
in class AtomicValue
XPathException
public int conversionPreference(Class javaClass)
Sequence
conversionPreference
in interface Item
conversionPreference
in interface Sequence
conversionPreference
in class AtomicValue
public Object toJavaObject(Class target) throws XPathException
Sequence
toJavaObject
in interface Item
toJavaObject
in interface Sequence
toJavaObject
in class AtomicValue
XPathException
public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in class AtomicValue
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |