| net.sf.saxon.type.SimpleType
All known Subclasses: net.sf.saxon.type.AnySimpleType,
SimpleType | public interface SimpleType extends SchemaType(Code) | | This interface represents a simple type, which may be a built-in simple type, or
a user-defined simple type.
|
getCommonAtomicType | AtomicType getCommonAtomicType()(Code) | | Get the most specific possible atomic type that all items in this SimpleType belong to
the lowest common supertype of all member types |
getTypedValue | public SequenceIterator getTypedValue(CharSequence value, NamespaceResolver resolver, NameChecker nameChecker) throws ValidationException(Code) | | Get the typed value corresponding to a given string value, assuming it is
valid against this type
Parameters: value - the string value Parameters: resolver - a namespace resolver used to resolve any namespace prefixes appearingin the content of values. Can supply null, in which case any namespace-sensitive contentwill be rejected. Parameters: nameChecker - an iterator over the atomic sequence comprising the typed value. The objectsreturned by this SequenceIterator will all be of type net.sf.saxon.value.AtomicValue |
isAtomicType | boolean isAtomicType()(Code) | | Test whether this Simple Type is an atomic type
true if this is an atomic type |
isListType | boolean isListType()(Code) | | Test whether this Simple Type is a list type
true if this is a list type |
isNamespaceSensitive | boolean isNamespaceSensitive()(Code) | | Test whether this type is namespace sensitive, that is, if a namespace context is needed
to translate between the lexical space and the value space. This is true for types derived
from, or containing, QNames and NOTATIONs
true if the type is namespace-sensitive |
isUnionType | boolean isUnionType()(Code) | | Test whether this Simple Type is a union type
true if this is a union type |
validateContent | ValidationException validateContent(CharSequence value, NamespaceResolver nsResolver, NameChecker nameChecker)(Code) | | Check whether a given input string is valid according to this SimpleType
Parameters: value - the input string to be checked Parameters: nsResolver - a namespace resolver used to resolve namespace prefixes if the typeis namespace sensitive. The value supplied may be null; in this case any namespace-sensitivecontent will throw an UnsupportedOperationException. Parameters: nameChecker - null if validation succeeds; return a ValidationException describing the validation failureif validation fails. Note that the exception is returned rather than being thrown. throws: UnsupportedOperationException - if the type is namespace-sensitive and no namespaceresolver is supplied |
|
|