net.sf.saxon.type
public interface AtomicType extends SimpleType, ItemType
Method Summary | |
---|---|
StructuredQName | getTypeName()
Get the name of this type as a StructuredQName, unless the type is anonymous, in which case
return null |
boolean | isAbstract()
Determine whether the type is abstract, that is, whether it cannot have instances that are not also
instances of some concrete subtype |
boolean | isBuiltInType()
Determine whether the atomic type is a built-in type. |
boolean | isOrdered()
Determine whether the atomic type is ordered, that is, whether less-than and greater-than comparisons
are permitted |
boolean | isPrimitiveType()
Determine whether the atomic type is a primitive type. |
ValidationFailure | validate(AtomicValue primValue, CharSequence lexicalValue, NameChecker checker)
Validate that a primitive atomic value is a valid instance of a type derived from the
same primitive type. |
Returns: the name of the atomic type, or null if the type is anonymous.
Returns: true if ordering operations are permitted
Returns: true if the type is considered primitive under the above rules
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) checker Used for checking names against XML 1.0 or XML 1.1 rules
Returns: null if the value is valid; otherwise, a ValidationFailure object indicating the nature of the error.
Throws: UnsupportedOperationException in the case of an external object type