org.apache.ws.jaxme.js.junit

Class EnumExample

Implemented Interfaces:
Serializable

public class EnumExample
extends java.lang.Object
implements Serializable

Field Summary

static EnumExample
DONALD
The enumeration item with name DONALD and value The Duck King.
static EnumExample
JOE
The enumeration item with name JOE and value John Doe.
static EnumExample
POPEYE
The enumeration item with name POPEYE and value Olivia's Lover.

Method Summary

boolean
equals(Object o)
static EnumExample
getInstanceByName(String pName)
Returns the item with the given name.
static EnumExample
getInstanceByValue(String pValue)
Returns the item with the given value.
static EnumExample[]
getInstances()
String
getName()
The enumeration items name.
String
getValue()
The enumeration items value.
int
hashCode()

Field Details

DONALD

public static final EnumExample DONALD
The enumeration item with name DONALD and value The Duck King.

JOE

public static final EnumExample JOE
The enumeration item with name JOE and value John Doe.

POPEYE

public static final EnumExample POPEYE
The enumeration item with name POPEYE and value Olivia's Lover.

Method Details

equals

public boolean equals(Object o)

getInstanceByName

public static EnumExample getInstanceByName(String pName)
Returns the item with the given name.

getInstanceByValue

public static EnumExample getInstanceByValue(String pValue)
Returns the item with the given value.

getInstances

public static EnumExample[] getInstances()

getName

public String getName()
The enumeration items name.

getValue

public String getValue()
The enumeration items value.

hashCode

public int hashCode()