|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.saxonica.schema.SchemaStructure com.saxonica.schema.UserDefinedType com.saxonica.schema.UserSimpleType com.saxonica.schema.UserListType
public class UserListType
Represents a SimpleType that is a list of a given SimpleType, known as its itemType. A ListType may be a restriction of another ListType; the itemType must either be an AtomicType or a UnionType whose members are not list types.
This class is not used to implement the built-in list types NMTOKENS, ENTITIES, IDREFS.
Field Summary |
---|
Fields inherited from class com.saxonica.schema.UserDefinedType |
---|
extendedTypes, finalProhibitions |
Fields inherited from interface net.sf.saxon.type.SimpleType |
---|
VARIETY_ATOMIC, VARIETY_LIST, VARIETY_UNION, VARIETY_UNSPECIFIED_SIMPLE |
Fields inherited from interface net.sf.saxon.type.SchemaType |
---|
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION, DERIVE_BY_SUBSTITUTION |
Fields inherited from interface net.sf.saxon.type.SchemaComponent |
---|
FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING |
Constructor Summary | |
---|---|
UserListType(EnterpriseConfiguration config)
Create a new user-defined ListType. |
Method Summary | |
---|---|
protected List<Facet> |
addInheritedFacets(List<Facet> localFacets)
Get the extended facet list, creating it if necessary. |
void |
elaborate(SchemaCompiler compiler)
Elaborate the schema component: after reloading a serialized schema component model, this expands the component with derived information needed during validation episodes. |
AtomicType |
getCommonAtomicType()
Get the most specific possible atomic type that all items in this SimpleType belong to |
SimpleType |
getItemType()
Returns the simpleType of the items in this ListType. |
TypeReference |
getItemTypeReference()
Get the reference to the item type of the list |
SequenceIterator |
getTypedValue(CharSequence value,
NamespaceResolver resolver,
NameChecker nameChecker)
Get the typed value of a given input string. |
boolean |
isAtomicType()
Test whether this Simple Type is an atomic type |
boolean |
isBuiltInType()
Determine whether this is a built-in type or a user-defined type |
boolean |
isIdRefType()
Ask whether this type is an IDREF or IDREFS type. |
boolean |
isIdType()
Ask whether this type is an ID type. |
boolean |
isListType()
Returns true if this type is derived by list, or if it is derived by restriction from a list type, or if it is a union that contains a list as one of its members |
boolean |
isNamespaceSensitive()
Test whether this simple type is namespace-sensitive, that is, whether the item types is derived from xs:QName or xs:NOTATION |
void |
serializeVariety(SchemaModelSerializer serializer)
Serialize the schema component |
void |
setItemTypeReference(TypeReference type)
Sets the itemType for this ListType (the type of item that instances of this list type contain). |
ValidationFailure |
validateContent(CharSequence value,
NamespaceResolver nsResolver,
NameChecker nameChecker)
Check whether a given input string is valid according to this SimpleType |
Methods inherited from class com.saxonica.schema.UserSimpleType |
---|
addFacet, analyzeContentExpression, applyWhitespaceNormalization, atomize, checkAgainstFacets, checkTypeDerivationIsOK, convertFacetValues, getBuiltInBaseType, getExtendedFacetList, getFacet, getFacets, getLocalFacetList, getTypedValue, getWhitespaceAction, isSimpleType, isTypeDerivationOK, isUnionType, mergeEnumerationFacets, postprocess, preprocess, serialize, setFacetList, validate |
Methods inherited from class com.saxonica.schema.SchemaStructure |
---|
fixup, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getRedefinitionLevel, getSystemId, getValidationStatus, lookForCycles, setConfiguration, setFixupStatus, setLineNumber, setLocator, setRedefinitionLevel, setSystemId, setValidationStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.type.SimpleType |
---|
getBuiltInBaseType, getWhitespaceAction, isExternalType, isUnionType, postprocess, preprocess |
Methods inherited from interface net.sf.saxon.type.SchemaType |
---|
allowsDerivation, analyzeContentExpression, atomize, checkTypeDerivationIsOK, getBaseType, getBlock, getDerivationMethod, getDescription, getDisplayName, getFingerprint, getName, getNameCode, getSystemId, getTargetNamespace, getTypedValue, isAnonymousType, isComplexType, isSameType, isSimpleType |
Methods inherited from interface net.sf.saxon.type.SchemaComponent |
---|
getRedefinitionLevel, getValidationStatus |
Methods inherited from interface com.saxonica.schema.UserSchemaComponent |
---|
fixup, lookForCycles |
Constructor Detail |
---|
public UserListType(EnterpriseConfiguration config)
config
- the Saxon configurationMethod Detail |
---|
public boolean isAtomicType()
isAtomicType
in interface SchemaType
isAtomicType
in interface SimpleType
isAtomicType
in class UserSimpleType
public boolean isIdType()
isIdType
in interface SchemaType
isIdType
in class UserSimpleType
public boolean isIdRefType()
isIdRefType
in interface SchemaType
isIdRefType
in class UserSimpleType
public boolean isBuiltInType()
isBuiltInType
in interface SimpleType
public boolean isListType()
isListType
in interface SimpleType
isListType
in class UserSimpleType
protected List<Facet> addInheritedFacets(List<Facet> localFacets)
addInheritedFacets
in class UserSimpleType
public void elaborate(SchemaCompiler compiler) throws SchemaException
UserSimpleType
elaborate
in interface UserSchemaComponent
elaborate
in class UserSimpleType
SchemaException
public TypeReference getItemTypeReference()
public SimpleType getItemType() throws UnresolvedReferenceException
getItemType
in interface ListType
UnresolvedReferenceException
- if the item type has not been fully resolvedpublic AtomicType getCommonAtomicType()
getCommonAtomicType
in interface SimpleType
public void setItemTypeReference(TypeReference type)
type
- the SimpleType for this ListType.public ValidationFailure validateContent(CharSequence value, NamespaceResolver nsResolver, NameChecker nameChecker)
validateContent
in interface SimpleType
value
- the input string to be checkednsResolver
- a namespace resolver used to resolve namespace prefixes if the type
is namespace sensitive. The value supplied may be null; in this case any namespace-sensitive
content will throw an UnsupportedOperationException.nameChecker
- XML 1.0 or 1.1 name checker, needed when validating against version-sensitive types
such as xs:NCName
UnsupportedOperationException
- if the type is namespace-sensitive and no namespace
resolver is suppliedpublic SequenceIterator getTypedValue(CharSequence value, NamespaceResolver resolver, NameChecker nameChecker) throws ValidationException
getTypedValue
in interface SimpleType
value
- the string whose typed value is requiredresolver
- namespace resolvernameChecker
- XML 1.0 or 1.1 name checker
AtomicValue
,
The next() method on the iterator throws no checked exceptions, although it is not actually
declared as an UnfailingIterator.
ValidationException
- if the supplied value is not in the lexical space of the data typepublic boolean isNamespaceSensitive()
isNamespaceSensitive
in interface SimpleType
public void serializeVariety(SchemaModelSerializer serializer) throws XPathException
serializeVariety
in class UserSimpleType
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |