java.io.Serializablepublic final class AttributeGroupDecl 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 | Description | 
|---|---|
AttributeGroupDecl(Schema schema) | 
 Creates a new AttributeGroup definition 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
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(java.lang.String name) | 
 Returns the AttributeDecl associated with the given name 
 | 
java.util.Enumeration | 
getAttributes() | 
 Returns an Enumeration of all the attributes of this
 attribute group. 
 | 
java.util.Enumeration | 
getLocalAttributeGroupReferences() | 
 Returns the AttributeGroupReference of THIS attribute group. 
 | 
java.util.Enumeration | 
getLocalAttributes() | 
 Returns the attributes of THIS attribute group. 
 | 
java.lang.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(java.lang.String name) | 
 Sets the name of this AttributeGroup 
 | 
void | 
setRedefined() | 
 Sets this Group has redefined. 
 | 
void | 
validate() | 
 Checks the validity of this Attribute declaration 
 | 
addAnnotation, getAnnotations, removeAnnotationgetId, setIdpublic AttributeGroupDecl(Schema schema)
schema - the Schema that this AttributeGroup
 belongs to.public void addAttribute(AttributeDecl attrDecl)
attrDecl - the AttributeDecl to addpublic void addReference(AttributeGroupReference attrGroup)
attrGroup - the AttributeGroupReference to addpublic java.util.Enumeration getLocalAttributes()
public java.util.Enumeration getLocalAttributeGroupReferences()
public Wildcard getAnyAttribute()
getAnyAttribute in class AttributeGrouppublic AttributeDecl getAttribute(java.lang.String name)
getAttribute in class AttributeGrouppublic java.util.Enumeration getAttributes()
getAttributes in class AttributeGrouppublic java.lang.String getName()
public Schema getSchema()
public boolean isEmpty()
isEmpty in class AttributeGrouppublic boolean isRedefined()
public boolean removeAttribute(AttributeDecl attr)
attr - the attribute to remove.public boolean removeReference(AttributeGroupReference attrGroupReference)
attrGroupReference - the AttributeGroupReference to remove.public void setAnyAttribute(Wildcard wildcard) throws SchemaException
SchemaException - thrown when a wildcard as already be set
 or when the wildCard is not an <anyAttribute>.public void setName(java.lang.String name)
name - the name of this AttributeGrouppublic void setRedefined()
public short getStructureType()
getStructureType in class AttributeGrouppublic void validate()
              throws ValidationException
validate in class AttributeGroupValidationException - when this Attribute declaration
 is invalidIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com