org.exolab.castor.xml.schema
public final class AttributeGroupDecl extends AttributeGroup
Version: $Revision: 1.4 $ $Date: 2004/10/01 13:25:21 $
Constructor Summary | |
---|---|
AttributeGroupDecl(Schema schema)
Creates a new AttributeGroup definition |
Method Summary | |
---|---|
void | addAttribute(AttributeDecl attrDecl)
Adds the given attribute definition to this AttributeGroup
|
void | addReference(AttributeGroupReference attrGroup)
Adds the given AttributeGroupReference to this AttributeGroup
|
Wildcard | getAnyAttribute()
Returns the wilcard used in this complexType (can be null) |
AttributeDecl | getAttribute(String name)
Returns the AttributeDecl associated with the given name |
Enumeration | getAttributes()
Returns an Enumeration of all the attributes of this
attribute group. |
Enumeration | getLocalAttributeGroupReferences()
Returns the AttributeGroupReference of THIS attribute group.
(not those of the nested groups) |
Enumeration | getLocalAttributes()
Returns the attributes of THIS attribute group.
(not those of the nested groups) |
String | getName()
Returns the name of this AttributeGroup |
Schema | getSchema()
Returns the Schema that this AttributeGroupDecl belongs to.
|
short | getStructureType()
Returns the type of this Schema Structure |
boolean | isEmpty()
Returns true if this AttributeGroup does not contain any
AttributeDecls or any non-empty AttributeGroups
|
boolean | isRedefined()
Returns true if this attributeGroupDecl is a redefinition.
|
boolean | removeAttribute(AttributeDecl attr)
Removes the given AttributeDecl from this AttributeGroup. |
boolean | removeReference(AttributeGroupReference attrGroupReference)
Removes the given AttributeGroupReference from this AttributeGroup. |
void | setAnyAttribute(Wildcard wildcard)
Sets the wildcard (anyAttribute) of this attribute Group |
void | setName(String name)
Sets the name of this AttributeGroup |
void | setRedefined()
Sets this Group has redefined. |
void | validate()
Checks the validity of this Attribute declaration |
Parameters: schema the Schema that this AttributeGroup belongs to.
Parameters: attrDecl the AttributeDecl to add
Parameters: attrGroup the AttributeGroupReference to add
Returns: the wilcard used in this complexType (can be null)
Returns: the AttributeDecl associated with the given name, or null if no AttributeDecl with the given name was found.
Returns: an Enumeration of all the attributes of this attribute group.
Returns: the name of this AttributeGroup, or null, if no name was defined.
Returns: the Schema that this AttributeGroupDecl belongs to
Returns: the type of this Schema Structure
Returns: true if this AttributeGroup does not contain any AttributeDecls or any non-empty AttributeGroups
Returns: true if this attributeGroupDecl is a redefinition.
Parameters: attr the attribute to remove.
Parameters: attrGroup the AttributeGroupReference to remove.
Throws: SchemaException thrown when a wildcard as already be set
or when the wildCard is not an
Parameters: name the name of this AttributeGroup
Throws: ValidationException when this Attribute declaration is invalid