org.apache.ws.jaxme.js.pattern

Class TypesafeEnumerationGenerator.Item

public static class TypesafeEnumerationGenerator.Item extends Object

Method Summary
voidfinish()

Verifies the enumeration item.

StringgetName()

Returns the enumeration items name.

StringgetValue()

Returns the enumeration items value.

voidsetName(String pName)

Sets the enumeration items name.

voidsetValue(String pValue)

Sets the enumeration items value.

Method Detail

finish

public void finish()

Verifies the enumeration item.

Throws: IllegalStateException The enumeration items value is not set.

getName

public String getName()

Returns the enumeration items name.

getValue

public String getValue()

Returns the enumeration items value.

setName

public void setName(String pName)

Sets the enumeration items name. This must be a valid Java identifier.

setValue

public void setValue(String pValue)

Sets the enumeration items value.