public class XSDAttributeGroup 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 |
---|
XSDAttributeGroup()
Creates a new AttributeGroup element
|
Modifier and Type | Method and Description |
---|---|
AttributeGroupDecl |
getAttributeGroupDecl()
Returns the AttributeGroupDecl created by this AttributeGroup declaration.
|
AttributeGroupReference |
getAttributeGroupReference()
Return the AttributeGroupReference, if this is a reference
|
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.
|
boolean |
isReference()
Is this an attribute group declaration or a reference?
|
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 XSDAttributeGroup()
public void prepareAttributes() throws SchemaException
prepareAttributes
in class SchemaElement
SchemaException
- if any errors are found in the attributespublic boolean isReference()
public AttributeGroupDecl getAttributeGroupDecl()
public AttributeGroupReference getAttributeGroupReference()
public 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-2020 Saxonica Limited. All rights reserved.