|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.protocol.model.EnumImpl<E>
public final class EnumImpl<E extends Enum.EnumKey>
Implementation of the Enum interface
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.shindig.protocol.model.Enum |
|---|
Enum.EnumKey, Enum.Field |
| Constructor Summary | |
|---|---|
EnumImpl(E value)
Constructs a Enum object. |
|
EnumImpl(E value,
String displayValue)
Constructs a Enum object. |
|
| Method Summary | |
|---|---|
String |
getDisplayValue()
Gets the value of this Enum. |
E |
getValue()
Gets the key for this Enum. |
void |
setDisplayValue(String displayValue)
Sets the value of this Enum. |
void |
setValue(E value)
Sets the key for this Enum. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumImpl(E value,
String displayValue)
value - EnumKey The key to usedisplayValue - String The display valuepublic EnumImpl(E value)
value - The key to use. Will use the value from getDisplayValue() as
the display value.| Method Detail |
|---|
public String getDisplayValue()
Enum
getDisplayValue in interface Enum<E extends Enum.EnumKey>public void setDisplayValue(String displayValue)
Enum
setDisplayValue in interface Enum<E extends Enum.EnumKey>displayValue - The value to set.public E getValue()
Enum
getValue in interface Enum<E extends Enum.EnumKey>public void setValue(E value)
Enum
setValue in interface Enum<E extends Enum.EnumKey>value - The value to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||