Class ConstantEnumOption
java.lang.Object
com.polarion.platform.persistence.spi.ConstantEnumOption
- All Implemented Interfaces:
IEnumOption
- Author:
- POLARION SOFTWARE
-
Field Summary
Fields inherited from interface com.polarion.platform.persistence.IEnumOption
PROPERTY_KEY_COLOR, PROPERTY_KEY_DEFAULT, PROPERTY_KEY_DESCRIPTION, PROPERTY_KEY_HIDDEN, PROPERTY_KEY_ICON_URL, PROPERTY_KEY_UI_LINK, PROPERTY_KEY_URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(OptionProperty optionProperty) booleanTwo options are equal, if they have both the sameenumIdandid.getId()getName()getProperty(String key) This method allows the system to pass through some specific attributes for different enumerations, like colors of texts, or url of icons.intinthashCode()booleanbooleanisHidden()Indicates that the option should be hidden from selectors in UIbooleanPhantom options represent values that are not part of the options available in the enumeration (but probably once were).voidsetDefault(boolean def) voidvoidvoidvoidsetNumber(int number) toString()
-
Constructor Details
-
ConstantEnumOption
public ConstantEnumOption()
-
-
Method Details
-
getEnumId
- Specified by:
getEnumIdin interfaceIEnumOption- Returns:
- The ID of enumeration this option belongs to.
-
getId
- Specified by:
getIdin interfaceIEnumOption
-
getName
- Specified by:
getNamein interfaceIEnumOption
-
getSequenceNumber
public int getSequenceNumber()- Specified by:
getSequenceNumberin interfaceIEnumOption- Returns:
- The sequence number as defined or 0 if not defined.
-
equals
Two options are equal, if they have both the sameenumIdandid. -
hashCode
public int hashCode() -
toString
-
getProperty
Description copied from interface:IEnumOptionThis method allows the system to pass through some specific attributes for different enumerations, like colors of texts, or url of icons.- Specified by:
getPropertyin interfaceIEnumOption- Parameters:
key-- Returns:
- the
Stringproperty value
-
getProperties
- Specified by:
getPropertiesin interfaceIEnumOption
-
setEnumId
- Parameters:
enumId- the enumId to set
-
setId
- Parameters:
id- the id to set
-
setName
- Parameters:
name- the name to set
-
setNumber
public void setNumber(int number) - Parameters:
number- the number to set
-
setDefault
public void setDefault(boolean def) - Parameters:
def- thebooleanto set
-
addProperty
-
isPhantom
public boolean isPhantom()Description copied from interface:IEnumOptionPhantom options represent values that are not part of the options available in the enumeration (but probably once were). They usually contain no other data than the ID.- Specified by:
isPhantomin interfaceIEnumOption
-
isDefault
public boolean isDefault()- Specified by:
isDefaultin interfaceIEnumOption
-
isHidden
public boolean isHidden()Description copied from interface:IEnumOptionIndicates that the option should be hidden from selectors in UI- Specified by:
isHiddenin interfaceIEnumOption- Since:
- 3.6.0
-