org.idoox.xml.schema
Class AttributeGroup

java.lang.Object
  extended byorg.idoox.xml.schema.SchemaConstruct
      extended byorg.idoox.xml.schema.AttributeGroup
All Implemented Interfaces:
java.io.Serializable

public class AttributeGroup
extends SchemaConstruct

This class represents an XML Schema AttributeGroup.

Since:
4.0
See Also:
Serialized Form
Component:
Core

Nested Class Summary
 
Nested classes inherited from class org.idoox.xml.schema.SchemaConstruct
SchemaConstruct.ConstructType
 
Field Summary
protected  AttributeGroup[] attributeGroups
          attributes contained within this group
protected  Attribute[] attributes
          attributes contained within this group
protected  Type type
          the type of the attribute
 
Fields inherited from class org.idoox.xml.schema.SchemaConstruct
appInfo, name, reference
 
Constructor Summary
AttributeGroup()
          Creates a new AttributeGroup instance.
AttributeGroup(QName name)
          Creates a new AttributeGroup instance.
 
Method Summary
 void addAttribute(Attribute attribute)
          Deprecated. Use setAttributes(org.idoox.xml.schema.Attribute[]) instead
 void addAttributeGroup(AttributeGroup attributeGroup)
          Deprecated. Use setAttributeGroups(org.idoox.xml.schema.AttributeGroup[]) instead.
 void copyFrom(SchemaConstruct anotherConstruct)
          Copies all the information of another attribute group into this group.
 boolean equals(java.lang.Object other)
           
 AttributeGroup[] getAttributeGroups()
          Returns contained attributeGroups.
 Attribute[] getAttributes()
          Returns contained attributes.
 AttributeGroup getReferencedAttributeGroup()
          If this schema attributeGroup is a reference, returns the referenced attributeGroup.
 int hashCode()
           
 void setAttributeGroups(AttributeGroup[] attributeGroups)
          Sets contained attributeGroups.
 void setAttributes(Attribute[] attributes)
          Sets contained attributes.
 void setName(QName name)
          Sets the name of the type.
 void setReferencedAttributeGroup(AttributeGroup referenced)
          Sets the referenced schema attributeGroup.
 
Methods inherited from class org.idoox.xml.schema.SchemaConstruct
clone, containsInFirst, getAppInfo, getAppInfos, getConstructType, getFacets, getJavaName, getName, getParent, getPrefixNamespaceMapping, getReferencedConstruct, parseQName, setAppInfo, setAppInfos, setConstructType, setFacets, setJavaName, setParent, setPrefixNamespaceMapping, setReferencedConstruct, toIndentedString, toIndentedString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected Type type
the type of the attribute


attributes

protected Attribute[] attributes
attributes contained within this group


attributeGroups

protected AttributeGroup[] attributeGroups
attributes contained within this group

Constructor Detail

AttributeGroup

public AttributeGroup()
Creates a new AttributeGroup instance.


AttributeGroup

public AttributeGroup(QName name)
Creates a new AttributeGroup instance.

Parameters:
name - the name of the group of attributes
Method Detail

setName

public void setName(QName name)
Sets the name of the type.

Overrides:
setName in class SchemaConstruct
Parameters:
name - the new name

getAttributes

public Attribute[] getAttributes()
Returns contained attributes.

Returns:
contained attributes

setAttributes

public void setAttributes(Attribute[] attributes)
Sets contained attributes.

Parameters:
attributes - contained attributes

addAttribute

public void addAttribute(Attribute attribute)
Deprecated. Use setAttributes(org.idoox.xml.schema.Attribute[]) instead

Adds attribute to the attributes of the type.

Parameters:
attribute - the attribute to be added

getAttributeGroups

public AttributeGroup[] getAttributeGroups()
Returns contained attributeGroups.

Returns:
contained attributeGroups

setAttributeGroups

public void setAttributeGroups(AttributeGroup[] attributeGroups)
Sets contained attributeGroups.

Parameters:
attributeGroups - contained attributeGroups

addAttributeGroup

public void addAttributeGroup(AttributeGroup attributeGroup)
Deprecated. Use setAttributeGroups(org.idoox.xml.schema.AttributeGroup[]) instead.

Adds attributeGroup to the attributeGroups of the type.

Parameters:
attributeGroup - the attributeGroup to be added

getReferencedAttributeGroup

public AttributeGroup getReferencedAttributeGroup()
If this schema attributeGroup is a reference, returns the referenced attributeGroup.

Returns:
the referenced attributeGroup if this schema attributeGroup is a reference, otherwise null.

setReferencedAttributeGroup

public void setReferencedAttributeGroup(AttributeGroup referenced)
Sets the referenced schema attributeGroup.

Parameters:
referenced - the referenced schema attributeGroup

equals

public boolean equals(java.lang.Object other)

hashCode

public int hashCode()

copyFrom

public void copyFrom(SchemaConstruct anotherConstruct)
Copies all the information of another attribute group into this group.

Overrides:
copyFrom in class SchemaConstruct
Parameters:
anotherConstruct - the another attribute group