public abstract class EnumWithDescription extends Enum
public class Status extends EnumWithDescription
{
public final static Status SUCCESS = new Status( 1, "Success" );
public final static Status FAILURE = new Status( 2, "Failure" );
private A( final int id, final String description )
{
super( id, description );
}
}
Created 20. Januar 2003
| Modifier | Constructor and Description |
|---|---|
protected |
EnumWithDescription(int id,
String description,
boolean ignoreDuplicateRegistration)
Construct instance of an enumeration with description.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Get description of the enumeration instance.
|
String |
toString()
Get descriptive text for this enumeration instance.
|
clone, compareTo, equals, getAllEnums, getAllEnumsInherited, getEnum, getEnumId, getEnumInherited, hashCodegetAllFlyWeights, getAllFlyWeightsInherited, getFlyWeight, getFlyWeightId, getFlyWeightInherited, removeAllFlyWeights, removeAllFlyWeightsInherited, removeFlyWeight, removeFlyWeightInheritedprotected EnumWithDescription(int id,
String description,
boolean ignoreDuplicateRegistration)
id - enumeration iddescription - enumeration descriptionignoreDuplicateRegistration - when true, don't throw
IllegalArgumentException exception when the id is already in usepublic String getDescription()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2017 SAP AG Complete Copyright Notice