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

java.lang.Object
  extended by com.ibm.ccd.ui.dataobjects.attributes.Attribute
      extended by com.ibm.ccd.ui.dataobjects.attributes.StringAttribute
          extended by com.ibm.ccd.ui.dataobjects.attributes.StringEnumAttribute
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
FlagAttribute

public class StringEnumAttribute
extends StringAttribute

See Also:
Serialized Form

Field Summary
protected  java.lang.String[] enumValues
           
 
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
StringEnumAttribute(java.lang.String name, java.lang.String[] enumParam, boolean editable, int minimumOccurrence, int maximumOccurrence, java.lang.String displayName)
           
StringEnumAttribute(java.lang.String name, java.lang.String[] enumValues, java.lang.String defaultValue, boolean editable, int minimumLength, int maximumLength, int minimumOccurrence, int maximumOccurrence, java.lang.String displayName)
           
StringEnumAttribute(java.lang.String name, java.lang.String[] enumParam, java.lang.String defaultValue, boolean editable, int minimumOccurrence, int maximumOccurrence, java.lang.String displayName)
           
 
Method Summary
protected  void checkValue(java.lang.String value)
           
 java.lang.String[] getEnumValues()
           
 int getType()
           
 void printMe()
           
 void setEnumValues(java.lang.String[] enumValues)
           
 void setValue(int occurrence, java.lang.String value)
           
 void setValue(java.lang.String value)
           
 void setValues(java.lang.String[] values)
           
 
Methods inherited from class com.ibm.ccd.ui.dataobjects.attributes.StringAttribute
getDefaultValue, getValue, getValues, setDefaultValue
 
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, removeValue, 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
 

Field Detail

enumValues

protected java.lang.String[] enumValues
Constructor Detail

StringEnumAttribute

public StringEnumAttribute(java.lang.String name,
                           java.lang.String[] enumParam,
                           boolean editable,
                           int minimumOccurrence,
                           int maximumOccurrence,
                           java.lang.String displayName)

StringEnumAttribute

public StringEnumAttribute(java.lang.String name,
                           java.lang.String[] enumParam,
                           java.lang.String defaultValue,
                           boolean editable,
                           int minimumOccurrence,
                           int maximumOccurrence,
                           java.lang.String displayName)

StringEnumAttribute

public StringEnumAttribute(java.lang.String name,
                           java.lang.String[] enumValues,
                           java.lang.String defaultValue,
                           boolean editable,
                           int minimumLength,
                           int maximumLength,
                           int minimumOccurrence,
                           int maximumOccurrence,
                           java.lang.String displayName)
Method Detail

getType

public int getType()
Overrides:
getType in class StringAttribute

checkValue

protected void checkValue(java.lang.String value)

setValue

public void setValue(java.lang.String value)
Overrides:
setValue in class StringAttribute

setValue

public void setValue(int occurrence,
                     java.lang.String value)
Overrides:
setValue in class StringAttribute

setValues

public void setValues(java.lang.String[] values)
Overrides:
setValues in class StringAttribute

getEnumValues

public java.lang.String[] getEnumValues()

setEnumValues

public void setEnumValues(java.lang.String[] enumValues)

printMe

public void printMe()
Overrides:
printMe in class StringAttribute