public final class RestrictedStringValue extends StringValue
StringValue.CharacterIteratorEMPTY_STRING, FALSE, length, SINGLE_SPACE, TRUE, valueEMPTY_CLASS_ARRAYEMPTY_VALUE_ARRAYEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
RestrictedStringValue() |
| Modifier and Type | Method and Description |
|---|---|
AtomicValue |
convertPrimitive(BuiltInAtomicType requiredType,
boolean validate,
XPathContext context)
Convert to target data type
|
ItemType |
getItemType(TypeHierarchy th)
Return the type of the expression
|
static AtomicValue |
makeRestrictedString(java.lang.CharSequence value,
int type,
NameChecker checker)
Factory method to create a restricted string value from a string
|
java.lang.String |
toString()
Get string value.
|
codepointEquals, containsSurrogatePairs, contract, convertStringToAtomicType, convertStringToBuiltInType, convertToJava, effectiveBooleanValue, equals, expand, expand, getStringLength, getStringLength, getStringValue, getStringValueCS, hashCode, isZeroLength, iterateCharacters, makeStringValuecheckPermittedContents, convert, convert, display, evaluateAsString, evaluateItem, getCardinality, getComponent, getImplementationMethod, getLength, getPrimitiveValue, getTypedValue, hasBuiltInType, iterate, processasItem, asIterator, asValue, convert, convertJavaObjectToXPath, getDependencies, getIterator, getParentExpression, getSpecialProperties, itemAt, iterateSubExpressions, makeQNameValue, optimize, promote, reduce, simplify, stringToNumber, typeCheckpublic static AtomicValue makeRestrictedString(java.lang.CharSequence value, int type, NameChecker checker)
value - the String value. Null is taken as equivalent to "".checker - a NameChecker if validation is required,
null if the caller already knows that the value is validpublic ItemType getItemType(TypeHierarchy th)
getItemType in interface ExpressiongetItemType in class StringValueth - public AtomicValue convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
convertPrimitive in class StringValuerequiredType - 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 toString()
AtomicValuetoString in class StringValue