com.ibm.ccd.ui.dataobjects.attributes
Class GroupAttribute

java.lang.Object
  extended by com.ibm.ccd.ui.dataobjects.attributes.Attribute
      extended by com.ibm.ccd.ui.dataobjects.attributes.GroupAttribute
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class GroupAttribute
extends Attribute

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.ccd.ui.dataobjects.attributes.Attribute
currOccurrence, displayLabelName, editable, errorMap, hashName, isCategorySpecificAttribute, isLocalized, isPrimaryKey, localizedValues, maximumLength, maximumOccurrence, minimumLength, minimumOccurrence, parentAttribute, parentPath, valueList
 
Constructor Summary
GroupAttribute(java.lang.String name, boolean editable, int minimumOccurrence, int maximumOccurrence, Attribute[] attributes, java.lang.String displayName)
           
 
Method Summary
 Attribute[] cloneValue()
           
 Attribute[] cloneValue(Attribute[] attribs)
           
 java.util.HashMap getAttributeMap()
           
 Attribute[] getAttributes()
           
 java.lang.String getGroupAppendPath()
           
 int getGroupIndex()
           
 int getGroupIndexPos()
           
 int getType()
           
 Attribute[] getValue()
           
 Attribute[] getValue(int index)
           
 Attribute getValue(int index, java.lang.String name)
           
 Attribute[][] getValues()
           
 boolean hasNextGroup()
          checks whether the group has subgroups
 boolean hasValue(int index)
           
 Attribute[] nextGroup()
          checks whether the group has subgroup and return its subgroup
 void removeValue(int index)
           
 void resetGroupIndex(Attribute[] attribs)
           
 void setAttributes(Attribute[] attributes)
           
 void setGroupAppendPath(java.lang.String string)
           
 void setGroupIndex(int groupIndex)
           
 void setValue(Attribute[] attributes)
           
 void setValues(Attribute[][] values)
           
 
Methods inherited from class com.ibm.ccd.ui.dataobjects.attributes.Attribute
getAttributeParentPath, getCurrentOccurrence, getCurrOccurrence, getDisplayLabelName, getHashName, getLocaleName, getLocalizedValues, getMaximumLength, getMaximumOccurrence, getMinimumLength, getMinimumOccurrence, getName, getParentGroup, getParentPath, getPath, getValidationError, getValueList, hasAnyParentGroupMultivalued, isCategorySpecificAttribute, isEditable, isLocalized, isMultiValued, isOptional, isPrimaryKey, isSubAttribute, isValueChanged, prepareAttributeParentPath, printMe, removeValues, setAsLocalized, setCategorySpecificAttribute, setCurrOccurrence, setDisplayLabelName, setEditable, setHashName, setLocaleName, setLocalizedValues, setMaximumLength, setMaximumOccrrence, setMinimumLength, setMinimumOccrrence, setName, setParentGroup, setParentGroupFlagValueChanged, setParentPath, setPath, setPrimaryKey, setSubAttribute, setValidationError, setValueChanged, setValueList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupAttribute

public GroupAttribute(java.lang.String name,
                      boolean editable,
                      int minimumOccurrence,
                      int maximumOccurrence,
                      Attribute[] attributes,
                      java.lang.String displayName)
Method Detail

getType

public int getType()
Specified by:
getType in class Attribute

getAttributes

public Attribute[] getAttributes()
Returns:
attributes

setAttributes

public void setAttributes(Attribute[] attributes)
Parameters:
attributes -

hasValue

public boolean hasValue(int index)

getValue

public Attribute[] getValue()

getValue

public Attribute[] getValue(int index)

getValue

public Attribute getValue(int index,
                          java.lang.String name)

getValues

public Attribute[][] getValues()

setValue

public void setValue(Attribute[] attributes)

setValues

public void setValues(Attribute[][] values)

removeValue

public void removeValue(int index)
Overrides:
removeValue in class Attribute
See Also:
Attribute.removeValue(int)

cloneValue

public Attribute[] cloneValue()

cloneValue

public Attribute[] cloneValue(Attribute[] attribs)

hasNextGroup

public boolean hasNextGroup()
checks whether the group has subgroups

Returns:
boolean

nextGroup

public Attribute[] nextGroup()
checks whether the group has subgroup and return its subgroup

Returns:
an array of attributes

setGroupIndex

public void setGroupIndex(int groupIndex)

getGroupIndex

public int getGroupIndex()
Returns:
integer

getGroupIndexPos

public int getGroupIndexPos()

resetGroupIndex

public void resetGroupIndex(Attribute[] attribs)

getGroupAppendPath

public java.lang.String getGroupAppendPath()
Returns:
string

setGroupAppendPath

public void setGroupAppendPath(java.lang.String string)
Parameters:
string -

getAttributeMap

public java.util.HashMap getAttributeMap()
Returns:
Returns the attributeMap.