public final class AttributeGroupReference extends AttributeGroup
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD
Constructor and Description |
---|
AttributeGroupReference(Schema schema,
String reference)
Creates a new AttributeGroup definition
|
Modifier and Type | Method and Description |
---|---|
Wildcard |
getAnyAttribute()
Returns the anyAttribute set in this attribute group if any.
|
AttributeDecl |
getAttribute(String name)
Returns the AttributeDecl associated with the given name
|
Enumeration |
getAttributes()
Returns an enumeration of the AttributeDecls and AttributeGroups
of this AttributeGroup
|
String |
getReference()
Gets the name of the attribute group this class refers to.
|
boolean |
isEmpty()
Returns true if this AttributeGroup does not contain any
AttributeDecls or any non-empty AttributeGroups
|
AttributeGroup |
resolveReference()
Resolves the attribute group reference
|
getId, getStructureType, setId, validate
addAnnotation, getAnnotations, removeAnnotation
public Wildcard getAnyAttribute()
getAnyAttribute
in class AttributeGroup
public String getReference()
public AttributeGroup resolveReference()
public AttributeDecl getAttribute(String name)
getAttribute
in class AttributeGroup
public Enumeration getAttributes()
getAttributes
in class AttributeGroup
public boolean isEmpty()
isEmpty
in class AttributeGroup
Copyright © 2018. All rights reserved.