public static class TypesafeEnumerationGenerator.Item
extends java.lang.Object
Constructor and Description |
---|
TypesafeEnumerationGenerator.Item() |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Verifies the enumeration item.
|
java.lang.String |
getName()
Returns the enumeration items name.
|
java.lang.String |
getValue()
Returns the enumeration items value.
|
void |
setName(java.lang.String pName)
Sets the enumeration items name.
|
void |
setValue(java.lang.String pValue)
Sets the enumeration items value.
|
public void setName(java.lang.String pName)
Sets the enumeration items name. This must be a valid Java identifier.
public java.lang.String getName()
Returns the enumeration items name.
public void setValue(java.lang.String pValue)
Sets the enumeration items value.
public java.lang.String getValue()
Returns the enumeration items value.
public void finish()
Verifies the enumeration item.
java.lang.IllegalStateException
- The enumeration items value is not set.