org.apache.ws.commons.schema.constants
Class Enum

java.lang.Object
  extended by org.apache.ws.commons.schema.constants.Enum
Direct Known Subclasses:
XmlSchemaContentProcessing, XmlSchemaContentType, XmlSchemaDerivationMethod, XmlSchemaForm, XmlSchemaUse, XmlSeverityType, XmlTokenizedType

public abstract class Enum
extends Object


Nested Class Summary
static class Enum.EnumValueException
           
 
Field Summary
static String NULL
           
protected  String value
           
 
Constructor Summary
protected Enum()
           
protected Enum(String value)
           
 
Method Summary
 boolean equals(Object what)
           
 String getValue()
           
protected abstract  String[] getValues()
           
protected static int index(String value, String[] values)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static String NULL

value

protected String value
Constructor Detail

Enum

protected Enum(String value)

Enum

protected Enum()
Method Detail

getValues

protected abstract String[] getValues()

setValue

public void setValue(String value)

getValue

public String getValue()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object what)
Overrides:
equals in class Object

index

protected static final int index(String value,
                                 String[] values)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.