net.sf.saxon.type
public interface AtomicType extends SimpleType, ItemType
Method Summary | |
---|---|
AtomicValue | makeDerivedValue(AtomicValue primValue, CharSequence lexicalValue, boolean validate)
Factory method to create values of a derived atomic type. |
Parameters: primValue the value in the value space of the primitive type lexicalValue the value in the lexical space. If null, the string value of primValue is used. This value is checked against the pattern facet (if any) validate true if the value is to be validated against the facets of the derived type; false if the caller knows that the value is already valid.
Returns: the derived atomic value if validation succeeds, or an ErrorValue otherwise. The ErrorValue encapsulates the exception that occurred; it is the caller's responsibility to check for this.