public class UserListType extends UserSimpleType implements ListType
This class is not used to implement the built-in list types NMTOKENS, ENTITIES, IDREFS.
extendedTypes, finalProhibitionsDERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION, DERIVE_BY_SUBSTITUTIONCOMPONENT_FUNCTION_TYPE, FIXED_UP, INCOMPLETE, INVALID, UNVALIDATED, VALIDATED, VALIDATING| Constructor and Description |
|---|
UserListType(EnterpriseConfiguration config)
Create a new user-defined ListType.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Facet> |
addInheritedFacets(List<Facet> localFacets)
Get the extended facet list, creating it if necessary.
|
ValidationFailure |
checkAgainstListFacets(CharSequence value,
NamespaceResolver nsResolver,
ConversionRules rules,
int count)
Check whether a supplied value is valid against the facets defined on the list type.
|
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.
|
SimpleType |
getItemType()
Returns the simpleType of the items in this ListType.
|
TypeReference |
getItemTypeReference()
Get the reference to the item type of the list
|
AtomicSequence |
getTypedValue(CharSequence value,
NamespaceResolver resolver,
ConversionRules rules)
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).
|
String |
toString()
Produce a string representation of the type name.
|
ValidationFailure |
validateContent(CharSequence value,
NamespaceResolver nsResolver,
ConversionRules rules)
Check whether a given input string is valid according to this SimpleType
|
addFacet, analyzeContentExpression, applyWhitespaceNormalization, atomize, checkAgainstFacets, checkTypeDerivationIsOK, convertFacetValues, getBuiltInBaseType, getComponentAsFunction, getComponentAsFunction, getContextComponent, getEQName, getExtendedFacetList, getFacet, getLocalFacetList, getWhitespaceAction, isSimpleType, isTypeDerivationOK, isUnionType, mergeEnumerationFacets, postprocess, preprocess, serialize, setContextComponent, setFacetList, validateallowsDerivation, containingDeclarationIsElement, getBaseType, getBaseTypeFingerprint, getBaseTypeReference, getBlock, getContainingDeclarationName, getDerivationMethod, getDescription, getDisplayName, getExtensionTypes, getFinalProhibitions, getFingerprint, getLocalName, getName, getNameCode, getNamePool, getTargetNamespace, isAnonymousType, isComplexType, isExternalType, isSameType, registerExtensionType, setBaseTypeReference, setContainingDeclaration, setDerivationMethod, setDerivationMethodName, setExtendedTypes, setFinalProhibitions, setNameCodefixup, getColumnNumber, getConfiguration, getFixupStatus, getLineNumber, getPublicId, getRedefinitionLevel, getSchemaDocumentURI, getSystemId, getValidationStatus, lookForCycles, makeXPathExpressionPropertyRecord, setConfiguration, setFixupStatus, setLineNumber, setLocator, setRedefinitionLevel, setSchemaDocumentURI, setSystemId, setValidationStatusclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBuiltInBaseType, getWhitespaceAction, isExternalType, isUnionType, postprocess, preprocessallowsDerivation, analyzeContentExpression, atomize, checkTypeDerivationIsOK, getBaseType, getBlock, getDerivationMethod, getDescription, getDisplayName, getEQName, getFinalProhibitions, getFingerprint, getName, getNameCode, getSystemId, getTargetNamespace, isAnonymousType, isComplexType, isSameType, isSimpleTypegetComponentAsFunction, getRedefinitionLevel, getValidationStatusfixup, lookForCyclespublic UserListType(EnterpriseConfiguration config)
config - the Saxon configurationpublic boolean isAtomicType()
isAtomicType in interface SchemaTypeisAtomicType in interface SimpleTypeisAtomicType in class UserSimpleTypepublic boolean isIdType()
isIdType in interface SchemaTypeisIdType in class UserSimpleTypepublic boolean isIdRefType()
isIdRefType in interface SchemaTypeisIdRefType in class UserSimpleTypepublic boolean isBuiltInType()
isBuiltInType in interface SimpleTypepublic boolean isListType()
isListType in interface SimpleTypeisListType in class UserSimpleTypeprotected List<Facet> addInheritedFacets(List<Facet> localFacets)
addInheritedFacets in class UserSimpleTypepublic void elaborate(SchemaCompiler compiler) throws SchemaException
UserSimpleTypeelaborate in interface UserSchemaComponentelaborate in class UserSimpleTypecompiler - the schema compilerSchemaException - if a fatal error occurspublic TypeReference getItemTypeReference()
public SimpleType getItemType() throws UnresolvedReferenceException
getItemType in interface ListTypeUnresolvedReferenceException - if the item type has not been fully resolvedpublic void setItemTypeReference(TypeReference type)
type - the SimpleType for this ListType.public ValidationFailure validateContent(CharSequence value, NamespaceResolver nsResolver, ConversionRules rules)
validateContent in interface SimpleTypevalue - 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.rules - the conversion rules used in this configurationUnsupportedOperationException - if the type is namespace-sensitive and no namespace
resolver is suppliedpublic ValidationFailure checkAgainstListFacets(CharSequence value, NamespaceResolver nsResolver, ConversionRules rules, int count)
value - the supplied valuensResolver - the namespace contextrules - the conversion rulescount - the number of items in the listpublic AtomicSequence getTypedValue(CharSequence value, NamespaceResolver resolver, ConversionRules rules) throws ValidationException
getTypedValue in interface SimpleTypevalue - the string whose typed value is requiredresolver - namespace resolverrules - the conversion rules used in this configurationValidationException - if the input is invalid against this typepublic boolean isNamespaceSensitive()
isNamespaceSensitive in interface SimpleTypepublic void serializeVariety(SchemaModelSerializer serializer) throws XPathException
serializeVariety in class UserSimpleTypeXPathExceptionCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.