Package com.saxonica.ee.schema.sdoc
Class XSDAttributeGroup
java.lang.Object
net.sf.saxon.tree.linked.NodeImpl
net.sf.saxon.tree.linked.ParentNodeImpl
net.sf.saxon.tree.linked.ElementImpl
com.saxonica.ee.schema.sdoc.SchemaElement
com.saxonica.ee.schema.sdoc.XSDAttributeGroup
- All Implemented Interfaces:
Source,SourceLocator,ActiveSource,GroundedValue,Item,MutableNodeInfo,NamespaceResolver,NodeInfo,Sequence,Location,SteppingNode,SiblingCountingNode,Locator
An xs:attributeGroup element in an XML Schema document
-
Nested Class Summary
Nested classes/interfaces inherited from class com.saxonica.ee.schema.sdoc.SchemaElement
SchemaElement.XPathStaticContext -
Field Summary
Fields inherited from class com.saxonica.ee.schema.sdoc.SchemaElement
NAMESPACE_ANY, NAMESPACE_LOCAL, NAMESPACE_OTHER, NAMESPACE_TARGET, REQUIRE_NULL_NS, REQUIRE_TARGET_NS, USE_DEFAULT_NS, USE_DEFAULT_NS_WITHOUT_IMPORTFields inherited from class net.sf.saxon.tree.linked.NodeImpl
NODE_LETTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the AttributeGroupDecl created by this AttributeGroup declaration.Return the AttributeGroupReference, if this is a referenceprotected booleanisFinalState(int state) For elements whose content model is parsed using a finite state machine, test whether a given state is a final state.booleanIs this an attribute group declaration or a reference?voidpostValidate(SchemaCompiler compiler) Additional processing after all the children of this element have been validated.protected voidValidate and process the attributes on this element in the schema documentvoidvalidate(SchemaCompiler compiler) Validate this schema element, checking all document-level constraintsMethods inherited from class com.saxonica.ee.schema.sdoc.SchemaElement
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, warningMethods inherited from class net.sf.saxon.tree.linked.ElementImpl
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, setTypeAnnotationMethods inherited from class net.sf.saxon.tree.linked.ParentNodeImpl
addChild, compact, getFirstChild, getLastChild, getNthChild, getNumberOfChildren, getRawSequenceNumber, getSequenceNumber, getUnicodeStringValue, hasChildNodes, insertChildren, insertChildrenAt, iterateChildren, removeChild, replaceChildrenAt, setChildren, setRawSequenceNumberMethods inherited from class net.sf.saxon.tree.linked.NodeImpl
atomize, compareOrder, effectiveBooleanValue, equals, getConfiguration, getDisplayName, getFingerprint, getLocalPart, getNamePool, getNamespaceUri, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getRawParent, getSiblingPosition, getSuccessorElement, getTreeInfo, hasFingerprint, hashCode, head, insertSiblings, isDeleted, iterateAxis, iterateAxis, newBuilder, replace, saveLocation, setRawParent, setSiblingPositionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface net.sf.saxon.om.Item
getLength, getStringValue, itemAt, iterate, reduce, subsequenceMethods inherited from interface net.sf.saxon.om.NodeInfo
asActiveSource, children, children, deliver, getAttributeValue, getGenre, getPublicId, getURI, isSameNodeInfo, isStreamed, toShortStringMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Constructor Details
-
XSDAttributeGroup
public XSDAttributeGroup()Creates a new AttributeGroup element
-
-
Method Details
-
prepareAttributes
Validate and process the attributes on this element in the schema document- Specified by:
prepareAttributesin classSchemaElement- Throws:
SchemaException- if any errors are found in the attributes
-
isReference
public boolean isReference()Is this an attribute group declaration or a reference?- Returns:
- true if it is a reference
-
getAttributeGroupDecl
Returns the AttributeGroupDecl created by this AttributeGroup declaration.- Returns:
- the AttributeGroupDecl corresponding to this xs:attribute-group element if it is a global attribute group declaration; if it is an attribute group reference, return null.
-
getAttributeGroupReference
Return the AttributeGroupReference, if this is a reference- Returns:
- the AttributeGroupReference, or null if this is not a reference
-
validate
Validate this schema element, checking all document-level constraints- Overrides:
validatein classSchemaElement- Parameters:
compiler- the schema compiler- Throws:
SchemaException- if any XML representation constraints are violated
-
isFinalState
protected boolean isFinalState(int state) Description copied from class:SchemaElementFor elements whose content model is parsed using a finite state machine, test whether a given state is a final state. The default implementation of this method is never used; it exists for the benefit of subclasses that do not use this mechanism- Overrides:
isFinalStatein classSchemaElement- Parameters:
state- the state to be tested- Returns:
- true if the given state is a final state
-
postValidate
Additional processing after all the children of this element have been validated.- Overrides:
postValidatein classSchemaElement- Parameters:
compiler- the schema compiler- Throws:
SchemaException- if errors are found
-