public class XSDSimpleContentRestriction extends SchemaElement
SchemaElement.XPathStaticContext
NAMESPACE_ANY, NAMESPACE_LOCAL, NAMESPACE_OTHER, NAMESPACE_TARGET, REQUIRE_NULL_NS, REQUIRE_TARGET_NS, USE_DEFAULT_NS, USE_DEFAULT_NS_WITHOUT_IMPORT
NODE_LETTER
Constructor and Description |
---|
XSDSimpleContentRestriction()
Creates a new SimpleContentRestriction
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isFinalState(int state)
For elements whose content model is parsed using a finite state machine, test whether
a given state is a final state.
|
void |
postValidate(SchemaCompiler compiler)
Process child elements after validation.
|
protected void |
prepareAttributes()
Validate and process the attributes on this element in the schema document
|
void |
validate(SchemaCompiler compiler)
Validate this schema element, checking all document-level constraints
|
allocateAnonymousTypeCode, allowAttributes, checkContentModel, checkLocalTargetNamespace, checkMutuallyExclusiveAttributes, checkOnlyChildIsAnnotation, checkPermittedType, duplicate, duplicateElement, error, error, getComponentName, getContainingComplexType, getContainingSimpleType, getFingerprint, getSchema, getSchemaNodeFactory, getXSDSchema, illegalElement, indefiniteArticle, invalidAttributeValue, isTopLevel, makeNamespaceContext, missingAttribute, missingChildElement, mustBeFirstElement, mustPrecede, mutuallyExclusive, mutuallyExclusiveAttributes, mutuallyExclusiveElementAndAttribute, parseBooleanAttribute, parseFinalOrBlock, processAllAttributes, processAllowedNamespaces, processDisallowedNamespaces, processDisallowedQNames, processId, processMaxOccurs, processMinOccurs, requireAttribute, setSchemaNodeFactory, validateChildren, validateSubtree, warning
addAttribute, addNamespace, addNamespace, attributes, checkNotNamespaceSensitiveElement, copy, delete, fixupInsertedNamespaces, generateId, getAllNamespaces, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getLineNumber, getNodeKind, getNodeName, getRoot, getSchemaType, getSystemId, getURIForPrefix, initialise, isId, isIdref, isIdRefNode, isInScopeNamespace, isNilled, iteratePrefixes, removeAttribute, removeNamespace, removeTypeAnnotation, rename, replaceStringValue, setAttributeInfo, setAttributes, setLocation, setNamespaceMap, setNilled, setNodeName, setSystemId, setTypeAnnotation
addChild, compact, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getUnicodeStringValue, hasChildNodes, insertChildren, insertChildrenAt, iterateChildren, removeChild, replaceChildrenAt, setChildren, setRawSequenceNumber
atomize, compareOrder, effectiveBooleanValue, equals, getConfiguration, getDisplayName, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getRawParent, getSiblingPosition, getSuccessorElement, getTreeInfo, getURI, hasFingerprint, hashCode, head, insertSiblings, isDeleted, iterateAxis, iterateAxis, newBuilder, replace, saveLocation, setRawParent, setSiblingPosition
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
asActiveSource, children, children, deliver, getGenre, getPublicId, isSameNodeInfo, isStreamed, toShortString
getLength, getStringValue, itemAt, iterate, reduce, subsequence
asIterable, concatenate, containsNode, materialize
makeRepeatable
public XSDSimpleContentRestriction()
protected void prepareAttributes() throws SchemaException
prepareAttributes
in class SchemaElement
SchemaException
- if any errors are found in the attributespublic void validate(SchemaCompiler compiler) throws SchemaException
validate
in class SchemaElement
compiler
- the schema compilerSchemaException
- if any XML representation constraints are violatedprotected boolean isFinalState(int state)
SchemaElement
isFinalState
in class SchemaElement
state
- the state to be testedpublic void postValidate(SchemaCompiler compiler) throws SchemaException
postValidate
in class SchemaElement
compiler
- the schema compilerSchemaException
- if errors are foundCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.