Interface EnumValueDefinition
public interface EnumValueDefinition
Defines a single value from an enum.
- Since:
- API version 11
-
Method Summary
Modifier and TypeMethodDescriptionGets the enum definition this value belongs to.This is a string that is suitable for display.getId()Identifier for this enum value.getLimitedDisplayName(int maxLength) This is a shorter version ofgetDisplayName().intIndex of this value in the enum definition.
-
Method Details
-
enumDefinition
EnumDefinition enumDefinition()Gets the enum definition this value belongs to.- Since:
- API version 11
-
getValueIndex
int getValueIndex()Index of this value in the enum definition.- Since:
- API version 11
-
getId
String getId()Identifier for this enum value. It will never change. This is the value to pass toSettableEnumValue.set(String).- Since:
- API version 11
-
getDisplayName
String getDisplayName()This is a string that is suitable for display.- Since:
- API version 11
-
getLimitedDisplayName
This is a shorter version ofgetDisplayName().- Parameters:
maxLength- Maximum number of characters- Since:
- API version 11
-