com.icl.saxon.expr
public final class StringValue extends Value
Constructor Summary | |
---|---|
StringValue(String value)
Constructor |
Method Summary | |
---|---|
boolean | asBoolean()
Convert the string value to a boolean |
double | asNumber()
Convert the string value to a number |
String | asString()
Get the string value as a String |
int | conversionPreference(Class required)
Get conversion preference for this value to a Java class. |
Object | convertToJava(Class target)
Convert to Java object (for passing to external functions) |
void | display(int level)
Diagnostic print of expression structure |
boolean | equals(StringValue other)
Determine if two StringValues are equal |
static int[] | expand(String s)
Expand a string containing surrogate pairs into an array of 32-bit characters |
int | getDataType()
Return the type of the expression (if known) |
int | getLength()
Get the length of this string, as defined in XPath. |
static int | getLength(String s)
Get the length of a string, as defined in XPath. |
Parameters: value the String value. Null is taken as equivalent to "".
Returns: false if the string value is zero-length, true otherwise
Returns: Value.STRING (always)
Parameters: s The string whose length is required