org.eclipse.jpt.jaxb.core.context
Enum JaxbType.Kind

java.lang.Object
  extended by java.lang.Enum<JaxbType.Kind>
      extended by org.eclipse.jpt.jaxb.core.context.JaxbType.Kind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JaxbType.Kind>
Enclosing interface:
JaxbType

public static enum JaxbType.Kind
extends java.lang.Enum<JaxbType.Kind>

The kind of metadata specified on the java type.


Enum Constant Summary
PERSISTENT_CLASS
          A JaxbType of JaxbType.Kind PERSISTENT_CLASS may safely be cast as a JaxbPersistentClass
PERSISTENT_ENUM
          A JaxbType of JaxbType.Kind PERSISTENT_ENUM may safely be cast as a JaxbPersistentEnum
REGISTRY
          A JaxbType of JaxbType.Kind REGISTRY may safely be cast as a JaxbRegistry
TRANSIENT
          A JaxbType of JaxbType.Kind TRANSIENT may safely be cast as a JaxbTransientClass
 
Method Summary
static JaxbType.Kind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JaxbType.Kind[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PERSISTENT_CLASS

public static final JaxbType.Kind PERSISTENT_CLASS
A JaxbType of JaxbType.Kind PERSISTENT_CLASS may safely be cast as a JaxbPersistentClass


PERSISTENT_ENUM

public static final JaxbType.Kind PERSISTENT_ENUM
A JaxbType of JaxbType.Kind PERSISTENT_ENUM may safely be cast as a JaxbPersistentEnum


REGISTRY

public static final JaxbType.Kind REGISTRY
A JaxbType of JaxbType.Kind REGISTRY may safely be cast as a JaxbRegistry


TRANSIENT

public static final JaxbType.Kind TRANSIENT
A JaxbType of JaxbType.Kind TRANSIENT may safely be cast as a JaxbTransientClass

Method Detail

values

public static JaxbType.Kind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JaxbType.Kind c : JaxbType.Kind.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JaxbType.Kind valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null