|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.saxonica.schema.SchemaElement
|
+--com.saxonica.schema.AttributeGroup
|
+--com.saxonica.schema.AttributeGroupReference
An XML Schema Attribute Group Reference, corresponding to an xs:attributeGroup element with a 'ref' attribute.
| Field Summary |
| Fields inherited from class com.saxonica.schema.SchemaElement |
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, COMPOSITOR, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD_ATTRIBUTE, WILDCARD_ELEMENT |
| Constructor Summary | |
AttributeGroupReference(Schema schema,
int fingerprint)
Creates a new AttributeGroup reference |
|
| Method Summary | |
boolean |
fixup(Schema schema)
Fixup the reference to the relevant attribute group. |
java.util.Iterator |
getAttributes()
Returns an enumeration of the AttributeDecls and AttributeGroups of this AttributeGroup |
AttributeWildcard |
getAttributeWildcard()
Returns the attribute wildcard in the referenced attribute group, if any. |
boolean |
isEmpty()
Returns true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroups |
void |
lookForCycles(Schema schema,
java.util.Stack references)
Check for cycles in the attribute group. |
AttributeGroupDecl |
resolveReference()
Resolves the attribute group reference |
boolean |
validate(Schema schema)
Checks the validity of this Schema component. |
| Methods inherited from class com.saxonica.schema.AttributeGroup |
getAttributeUse, getDeclaredAttributes, getFingerprint, getId, getSchema, getStructureType, setFingerprint, setId, setSchema |
| Methods inherited from class com.saxonica.schema.SchemaElement |
getColumnNumber, getLineNumber, getPublicId, getSystemId, setLocator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AttributeGroupReference(Schema schema,
int fingerprint)
schema - the Schema that this AttributeGroup
belongs to.fingerprint - The NamePool fingerprint of the name of the
attribute group (that is, the name contained in the 'ref' attribute)| Method Detail |
public AttributeWildcard getAttributeWildcard()
getAttributeWildcard in class AttributeGroup
public boolean fixup(Schema schema)
throws SchemaException
fixup in interface SchemaComponentschema - The containing schema (for error reporting)
SchemaException
public boolean validate(Schema schema)
throws javax.xml.transform.TransformerException
validate in interface SchemaComponentschema - if this is not null, any errors that are detected should
be reported using the error() method of this schema.
javax.xml.transform.TransformerException - if the ErrorListener decides that an error is fatal.
public void lookForCycles(Schema schema,
java.util.Stack references)
throws SchemaException
lookForCycles in interface CircularityCheckerlookForCycles in class AttributeGroupschema - The containing schema, used for error reporting.references - A list of attribute groups that reference this one,
directly or indirectly.
SchemaException - if a circularity is detected.public AttributeGroupDecl resolveReference()
public java.util.Iterator getAttributes()
getAttributes in class AttributeGrouppublic boolean isEmpty()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||