org.eclipse.jpt.jaxb.core.resource.java
Enum JavaResourceAbstractType.Kind

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

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

The kind of java type.


Enum Constant Summary
ENUM
          Represents an enum.
TYPE
          Represents a class or interface.
 
Method Summary
static JavaResourceAbstractType.Kind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JavaResourceAbstractType.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

TYPE

public static final JavaResourceAbstractType.Kind TYPE
Represents a class or interface. An JavaResourceAbstractType of JavaResourceAbstractType.Kind TYPE may safely be cast as a JavaResourceType


ENUM

public static final JavaResourceAbstractType.Kind ENUM
Represents an enum. An JavaResourceAbstractType of JavaResourceAbstractType.Kind ENUM may safely be cast as a JavaResourceEnum

Method Detail

values

public static JavaResourceAbstractType.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 (JavaResourceAbstractType.Kind c : JavaResourceAbstractType.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 JavaResourceAbstractType.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