org.apache.ws.jaxme.js.pattern
Class TypesafeEnumerationGenerator.Item

java.lang.Object
  extended by org.apache.ws.jaxme.js.pattern.TypesafeEnumerationGenerator.Item
Enclosing class:
TypesafeEnumerationGenerator

public static class TypesafeEnumerationGenerator.Item
extends java.lang.Object


Constructor Summary
TypesafeEnumerationGenerator.Item()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypesafeEnumerationGenerator.Item

public TypesafeEnumerationGenerator.Item()
Method Detail

setName

public void setName(java.lang.String pName)

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


getName

public java.lang.String getName()

Returns the enumeration items name.


setValue

public void setValue(java.lang.String pValue)

Sets the enumeration items value.


getValue

public java.lang.String getValue()

Returns the enumeration items value.


finish

public void finish()

Verifies the enumeration item.

Throws:
java.lang.IllegalStateException - The enumeration items value is not set.