|
|||||||||||
| 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
An XML Schema Attribute Group Definition. This is either a named global
attribute definition (see AttributeGroupDecl), or a reference to a global
attribute group definition (see AttributeGroupReference).
| 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 | |
AttributeGroup()
|
|
| Method Summary | |
abstract java.util.Iterator |
getAttributes()
Returns an Iterator over all the attributes of this attribute group. |
AttributeDecl |
getAttributeUse(int fingerprint)
Get the attribute use with a specific name, if there is one. |
abstract AttributeWildcard |
getAttributeWildcard()
Returns the anyAttribute defined in this attribute group if any. |
java.util.HashMap |
getDeclaredAttributes()
Get a HashMap containing all the attributes in this attribute group, expanded recursively. |
int |
getFingerprint()
Get the fingerprint of the name of the attribute group |
java.lang.String |
getId()
Returns the id of this AttributeGroup, that is, the value of the 'id' attribute in the schema. |
Schema |
getSchema()
Get the schema in which this attribute group is defined. |
short |
getStructureType()
Returns the type of this Schema Structure |
void |
lookForCycles(Schema schema,
java.util.Stack references)
Check for cycles in the attribute group. |
void |
setFingerprint(int fingerprint)
Set the fingerprint of the name of this attribute group. |
void |
setId(java.lang.String id)
Sets the id of this AttributeGroup. |
void |
setSchema(Schema schema)
Set the schema that this attribute group belongs to. |
| 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 AttributeGroup()
| Method Detail |
public int getFingerprint()
public void setFingerprint(int fingerprint)
fingerprint - the fingerprint of the name, in the NamePoolpublic void setSchema(Schema schema)
schema - the owning schemapublic Schema getSchema()
public abstract AttributeWildcard getAttributeWildcard()
public abstract java.util.Iterator getAttributes()
public java.util.HashMap getDeclaredAttributes()
public final AttributeDecl getAttributeUse(int fingerprint)
fingerprint - the fingerprint identifying the expanded name of the required
attribute in the name pool.
public java.lang.String getId()
public short getStructureType()
getStructureType in class SchemaElementSchemaElement.ATTRIBUTE_GROUPpublic void setId(java.lang.String id)
id - the id of this AttributeGroup
public void lookForCycles(Schema schema,
java.util.Stack references)
throws SchemaException
lookForCycles in interface CircularityCheckerschema - the containing schema, used for error reportingreferences - a list of attributes that contain references to this attribute group, directly or indirectly.
SchemaException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||