biz.c24.io.api.data
Class FinalEnum

java.lang.Object
  extended by biz.c24.io.api.data.FinalEnum
All Implemented Interfaces:
Serializable

public final class FinalEnum
extends Object
implements Serializable

An enumeration of possible final values.

Final values are used to specify how a type can be derived.

See Also:
Serialized Form

Field Summary
static FinalEnum ALL
          Specifies that derivation can occur by extension or restriction.
static FinalEnum EXTENSION
          Specifies that derivation can occur by extension only.
static FinalEnum RESTRICTION
          Specifies that derivation can occur by restriction only.
 
Method Summary
static FinalEnum[] getEnumArray()
          Returns an array containing the members of this enumeration.
static FinalEnum getEnumValue(String name)
          Returns the enumeration value called name.
 String getName()
          Returns the name.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXTENSION

public static final FinalEnum EXTENSION
Specifies that derivation can occur by extension only.


RESTRICTION

public static final FinalEnum RESTRICTION
Specifies that derivation can occur by restriction only.


ALL

public static final FinalEnum ALL
Specifies that derivation can occur by extension or restriction.

Method Detail

getName

public String getName()
Returns the name.

Returns:
The name.

toString

public String toString()
Overrides:
toString in class Object

getEnumArray

public static FinalEnum[] getEnumArray()
Returns an array containing the members of this enumeration.

Returns:
The enumeration as an array.

getEnumValue

public static FinalEnum getEnumValue(String name)
Returns the enumeration value called name.

Parameters:
name - The name of the enumeration value to return.
Returns:
The enumeration value or null if none was found.


C24 Technologies © 2002-2012: All Rights Reserved.