com.saxonica.sdoc
Class XSDAttributeGroup
java.lang.Object
net.sf.saxon.tree.NodeImpl
net.sf.saxon.tree.ParentNodeImpl
net.sf.saxon.tree.ElementImpl
net.sf.saxon.tree.ElementWithAttributes
com.saxonica.sdoc.SchemaElement
com.saxonica.sdoc.XSDAttributeGroup
- All Implemented Interfaces:
- FingerprintedNode, Item, NodeInfo, javax.xml.transform.Source, javax.xml.transform.SourceLocator, ValueRepresentation
- public class XSDAttributeGroup
- extends SchemaElement
An xs:attributeGroup element in an XML Schema document
Methods inherited from class com.saxonica.sdoc.SchemaElement |
allocateAnonymousTypeCode, allowAttributes, checkMutuallyExclusiveAttributes, duplicate, duplicateElement, error, getContainingComplexType, getContainingSimpleType, getFingerprint, getLineNumber, getNameCode, getSchema, getSchemaNodeFactory, getXSDSchema, illegalElement, indefiniteArticle, invalidAttributeValue, isTopLevel, missingAttribute, missingChildElement, mustBeFirstElement, mustBeLastElement, mustPrecede, mutuallyExclusive, mutuallyExclusiveAttributes, mutuallyExclusiveElementAndAttribute, parseFinalOrBlock, processAllAttributes, processId, requireAttribute, setLineNumber, setSchemaNodeFactory, validateChildren, validateSubtree, warning |
Methods inherited from class net.sf.saxon.tree.ElementWithAttributes |
copy, getAttributeList, getAttributeValue, getDeclaredNamespaces, getInScopeNamespaceCodes, getPrefixForURI, getURICodeForPrefix, getURIForPrefix, initialise, iteratePrefixes, sendNamespaceDeclarations, setNamespaceDeclarations |
Methods inherited from class net.sf.saxon.tree.ElementImpl |
addChild, compact, enumerateChildren, generateId, getBaseURI, getDocumentRoot, getFirstChild, getLastChild, getNameCode, getNodeKind, getNthChild, getRoot, getSequenceNumber, getStringValue, getStringValueCS, getSystemId, hasChildNodes, setNameCode, setSystemId, useChildrenArray |
Methods inherited from class net.sf.saxon.tree.NodeImpl |
atomize, compareOrder, equals, getColumnNumber, getConfiguration, getDisplayName, getDocumentNumber, getFingerprint, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getTypeAnnotation, getTypedValue, getURI, hashCode, isSameNodeInfo, iterateAxis, iterateAxis |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
XSDAttributeGroup
public XSDAttributeGroup()
- Creates a new AttributeGroup element
prepareAttributes
public void prepareAttributes()
throws SchemaException
- Validate and process the attributes on this element in the schema document
- Specified by:
prepareAttributes
in class SchemaElement
- Throws:
SchemaException
- if any errors are found in the attributes
isReference
public boolean isReference()
- Is this an attribute group declaration or a reference?
getAttributeGroupDecl
public AttributeGroupDecl getAttributeGroupDecl()
throws SchemaException
- 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.
- Throws:
SchemaException
getAttributeGroupReference
public AttributeGroupReference getAttributeGroupReference()
throws SchemaException
- Return the AttributeGroupReference, if this is a reference
- Returns:
- the AttributeGroupReference, or null if this is not a reference
- Throws:
SchemaException
validate
public void validate()
throws SchemaException
- Validate this schema element, checking all document-level constraints
- Overrides:
validate
in class SchemaElement
- Throws:
SchemaException
- if any XML representation constraints are violated
postValidate
public void postValidate()
throws SchemaException
- Additional processing after all the children of this element have been validated.
- Overrides:
postValidate
in class SchemaElement
- Throws:
SchemaException
getRedefinedAttributeGroup
public AttributeGroupDecl getRedefinedAttributeGroup()