net.sf.saxon.value
public final class RestrictedStringValue extends StringValue
Method Summary | |
---|---|
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(CharSequence value, int type, NameChecker checker)
Factory method to create a restricted string value from a string |
String | toString() |
Parameters: requiredType an integer identifying the required atomic type context
Returns: an AtomicValue, a value of the required type; or an ErrorValue
Parameters: th
Parameters: 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 valid
Returns: either the required RestrictedStringValue if the value is valid, or an ErrorValue encapsulating the error message if not.