|
|||||||
| 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.StringValue
public class StringValue
| Field Summary | |
|---|---|
static StringValue |
EMPTY_STRING
|
| Fields inherited from class org.exist.xquery.value.AtomicValue |
|---|
EMPTY_VALUE |
| Fields inherited from interface org.exist.xquery.value.Sequence |
|---|
EMPTY_SEQUENCE |
| Constructor Summary | |
|---|---|
StringValue(String string)
|
|
StringValue(String string,
int type)
|
|
| Method Summary | |
|---|---|
static String |
collapseWhitespace(CharSequence in)
Collapses all sequences of adjacent whitespace chars in the input string into a single space. |
int |
compareTo(Collator collator,
AtomicValue other)
|
boolean |
compareTo(Collator collator,
int operator,
AtomicValue other)
|
int |
compareTo(Object o)
|
boolean |
contains(Collator collator,
AtomicValue other)
Compares this atomic value to another. |
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. |
boolean |
endsWith(Collator collator,
AtomicValue other)
Compares this atomic value to another. |
StringValue |
expand()
|
static String |
expand(CharSequence seq)
|
String |
getStringValue()
Return the string value of this item (see the definition of string value in XPath). |
String |
getStringValue(boolean bmpCheck)
|
int |
getType()
Return the type of this item according to the type constants defined in class Type. |
Item |
itemAt(int pos)
Returns the item located at the specified position within this sequence. |
AtomicValue |
max(Collator collator,
AtomicValue other)
|
AtomicValue |
min(Collator collator,
AtomicValue other)
|
static String |
normalizeWhitespace(CharSequence seq)
|
byte[] |
serializeValue(int offset,
boolean caseSensitive)
Serialize for the persistant storage |
boolean |
startsWith(Collator collator,
AtomicValue other)
Compares this atomic value to another. |
Object |
toJavaObject(Class target)
Convert the value into an instance of the specified Java class. |
String |
toString()
|
static String |
trimWhitespace(String in)
|
| Methods inherited from class org.exist.xquery.value.AtomicValue |
|---|
add, addAll, atomize, clearContext, copyTo, dump, getCardinality, getCollectionIterator, getDocumentSet, getItemCount, getItemType, getState, hasChanged, hasMany, hasOne, isCacheable, isCached, isEmpty, isPersistentSet, iterate, nodeMoved, promote, removeDuplicates, serializeValue, setIsCached, setSelfAsContext, toMemNodeSet, toNodeSet, toSAX, toSequence, unorderedIterator |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final StringValue EMPTY_STRING
| Constructor Detail |
|---|
public StringValue(String string,
int type)
throws XPathException
XPathExceptionpublic StringValue(String string)
| Method Detail |
|---|
public StringValue expand()
throws XPathException
XPathExceptionpublic int getType()
ItemType.
getType in interface IndexablegetType in interface ItemgetType in class AtomicValuepublic String getStringValue()
Item
getStringValue in interface ItemgetStringValue in interface SequencegetStringValue in class AtomicValuepublic String getStringValue(boolean bmpCheck)
public Item itemAt(int pos)
Sequence
itemAt in interface SequenceitemAt in class AtomicValue
public AtomicValue convertTo(int requiredType)
throws XPathException
ItemType. An XPathException is thrown
if the conversion is impossible.
convertTo in interface ItemconvertTo in interface SequenceconvertTo in class AtomicValuerequiredType - one of the type constants defined in class Type
XPathExceptionpublic int conversionPreference(Class javaClass)
Sequence
conversionPreference in interface ItemconversionPreference in interface SequenceconversionPreference in class AtomicValue
public Object toJavaObject(Class target)
throws XPathException
Sequence
toJavaObject in interface ItemtoJavaObject in interface SequencetoJavaObject in class AtomicValueXPathException
public boolean compareTo(Collator collator,
int operator,
AtomicValue other)
throws XPathException
compareTo in class AtomicValueXPathException
public int compareTo(Collator collator,
AtomicValue other)
throws XPathException
compareTo in class AtomicValueXPathException
public boolean startsWith(Collator collator,
AtomicValue other)
throws XPathException
AtomicValue
startsWith in class AtomicValuecollator - Collator used for string comparison.
XPathException - if this is not a string.
public boolean endsWith(Collator collator,
AtomicValue other)
throws XPathException
AtomicValue
endsWith in class AtomicValuecollator - Collator used for string comparison.
XPathException - if this is not a string.
public boolean contains(Collator collator,
AtomicValue other)
throws XPathException
AtomicValue
contains in class AtomicValuecollator - Collator used for string comparison.
XPathException - if this is not a string.
public boolean effectiveBooleanValue()
throws XPathException
Sequence
effectiveBooleanValue in interface SequenceeffectiveBooleanValue in class AtomicValueXPathExceptionpublic String toString()
toString in class AtomicValuepublic static final String normalizeWhitespace(CharSequence seq)
public static String collapseWhitespace(CharSequence in)
in - public static final String trimWhitespace(String in)
public static final String expand(CharSequence seq)
throws XPathException
XPathException
public AtomicValue max(Collator collator,
AtomicValue other)
throws XPathException
max in class AtomicValueXPathException
public AtomicValue min(Collator collator,
AtomicValue other)
throws XPathException
min in class AtomicValueXPathExceptionpublic int compareTo(Object o)
compareTo in interface ComparablecompareTo in class AtomicValue
public byte[] serializeValue(int offset,
boolean caseSensitive)
offset -
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||