|
||||||||||
| 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
| 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(java.text.Collator collator,
AtomicValue other)
|
boolean |
compareTo(java.text.Collator collator,
int operator,
AtomicValue other)
|
int |
compareTo(java.lang.Object o)
|
int |
conversionPreference(java.lang.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. |
java.lang.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(java.text.Collator collator,
AtomicValue other)
|
AtomicValue |
min(java.text.Collator collator,
AtomicValue other)
|
byte[] |
serialize(short collectionId,
boolean caseSensitive)
Serialize the value plus collection and possibly element information to an array of bytes. |
byte[] |
serializeValue(int offset,
boolean caseSensitive)
serialize for the persistant storage |
java.lang.Object |
toJavaObject(java.lang.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, getDocumentSet, getItemType, getLength, isCached, isPersistentSet, itemAt, iterate, removeDuplicates, setIsCached, setSelfAsContext, startsWith, toNodeSet, toSAX, toSequence, toString, unorderedIterator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, 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()
IndexableType.
getType in interface IndexablegetType in class AtomicValue
public java.lang.String getStringValue()
throws XPathException
Item
getStringValue in interface ItemgetStringValue in class AtomicValueXPathException
public AtomicValue convertTo(int requiredType)
throws XPathException
ItemType. An XPathException is thrown
if the conversion is impossible.
convertTo in interface ItemconvertTo in class AtomicValueXPathException
public boolean compareTo(java.text.Collator collator,
int operator,
AtomicValue other)
throws XPathException
compareTo in class AtomicValueXPathException
public int compareTo(java.text.Collator collator,
AtomicValue other)
throws XPathException
compareTo in class AtomicValueXPathException
public boolean effectiveBooleanValue()
throws XPathException
Sequence
effectiveBooleanValue in interface SequenceeffectiveBooleanValue in class AtomicValueXPathExceptionpublic boolean getValue()
public AtomicValue max(java.text.Collator collator,
AtomicValue other)
throws XPathException
max in class AtomicValueXPathException
public AtomicValue min(java.text.Collator collator,
AtomicValue other)
throws XPathException
min in class AtomicValueXPathExceptionpublic int conversionPreference(java.lang.Class javaClass)
Sequence
conversionPreference in interface ItemconversionPreference in class AtomicValue
public java.lang.Object toJavaObject(java.lang.Class target)
throws XPathException
Sequence
toJavaObject in interface ItemtoJavaObject in class AtomicValueXPathException
public byte[] serialize(short collectionId,
boolean caseSensitive)
Indexable
serialize in interface IndexablecollectionId - the collection id to usecaseSensitive - only relevant for string values: if set to false,
strings should be serialized in lower case
org.exist.storage.Indexable#serialize(short)
public byte[] serializeValue(int offset,
boolean caseSensitive)
serializeValue in interface IndexableIndexable.serializeValue(int, boolean)public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||