|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.EnumeratedValue
A simple integer/String pair object to be used for adding new custom
enumerated fields (Property) and modifying existing enumerated
fields (Property).
ServerAdministration.addEnumeratedField,
ServerAdministration.modifyEnumeratedField| Constructor Summary | |
EnumeratedValue(int code,
java.lang.String description)
Deprecated. Use the constructor taking a Translations object instead. |
|
EnumeratedValue(int code,
Translations translations)
Creates a new enumerated value with the specified code and translations for its display name. |
|
| Method Summary | |
EnumeratedValue |
copy()
Returns a deep copy of this object. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
int |
getCode()
Return the enum code for this object. |
java.lang.String |
getDescription()
Returns the description of this object. |
java.lang.String |
getDisplayName()
Returns the locale appropriate display name for the enumerated value. |
boolean |
getEnabled()
Return true if this enumerated value is enabled. |
int |
getSortOrder()
Get the sort order of this enumerated value. |
Translations |
getTranslations()
Returns the display name translations for this enumerated value. |
int |
hashCode()
returns a unique hash for all instances of this type |
void |
setCode(int code)
Change the enum code for this object. |
void |
setDescription(java.lang.String description)
Change the description for this object. |
void |
setEnabled(boolean enabled)
Change the enablement for this enumerated value. |
void |
setTranslations(Translations translations)
Sets the display name translations for this enumerated value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public EnumeratedValue(int code,
java.lang.String description)
code - the enum code valuedescription - a human-readable description of this enumerated value. May not be null.
public EnumeratedValue(int code,
Translations translations)
code - the enum code valuetranslations - the display names for this enumerated value. May not be null.| Method Detail |
public int getCode()
public void setCode(int code)
code - the new enum code for this object.public boolean getEnabled()
public void setEnabled(boolean enabled)
enabled - true if this enumerated value should be enabledpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new description for this object.
java.lang.IllegalStateException - if this object was created using a Translations object.public Translations getTranslations()
public void setTranslations(Translations translations)
translations - the new translationspublic java.lang.String getDisplayName()
public int getSortOrder()
public java.lang.String toString()
toString in class java.lang.Objectpublic EnumeratedValue copy()
public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||