public class XSDElement 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
IS_DTD_TYPE, IS_NILLED
Constructor and Description |
---|
XSDElement()
Creates a new XSDElement element
|
Modifier and Type | Method and Description |
---|---|
ElementDecl |
getElementDeclaration()
Return the element declaration schema component corresponding to this xs:element element
|
ElementParticle |
getElementParticle()
Return the element particle schema component
|
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)
Additional processing after all the children of this element have been validated.
|
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, copy, delete, fixupInsertedNamespaces, generateId, getAllNamespaces, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getLineNumber, getNodeKind, getNodeName, getRoot, getSchemaType, getSystemId, getURIForPrefix, initialise, isId, isIdref, isInScopeNamespace, isNilled, iteratePrefixes, removeAttribute, removeNamespace, removeTypeAnnotation, rename, replaceStringValue, setAttributeInfo, setAttributes, setLocation, setNamespaceMap, setNilled, setNodeName, setSystemId, setTypeAnnotation
addChild, children, compact, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getStringValue, getStringValueCS, hasChildNodes, insertChildren, 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, head, insertSiblings, isDeleted, iterateAxis, iterateAxis, newBuilder, replace, saveLocation, setRawParent, setSiblingPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
children, equals, getGenre, getPublicId, hashCode, isSameNodeInfo, isStreamed, toShortString
getLength, itemAt, iterate, reduce, subsequence, toGroundedValue
asIterable, concatenate, containsNode, materialize
makeRepeatable
public void prepareAttributes() throws SchemaException
prepareAttributes
in class SchemaElement
SchemaException
- if any errors are found in the attributespublic ElementDecl getElementDeclaration()
public ElementParticle getElementParticle()
public void validate(SchemaCompiler compiler) throws SchemaException
validate
in class SchemaElement
compiler
- used for reporting errorsSchemaException
- 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
- used primarily for reporting errorsSchemaException
- if errors are foundCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.