Dali Provisional API
Release 3.2

org.eclipse.jpt.jaxb.core.xsd
Enum XsdTypeDefinition.Kind

java.lang.Object
  extended by java.lang.Enum<XsdTypeDefinition.Kind>
      extended by org.eclipse.jpt.jaxb.core.xsd.XsdTypeDefinition.Kind
All Implemented Interfaces:
Serializable, Comparable<XsdTypeDefinition.Kind>
Enclosing class:
XsdTypeDefinition<A extends org.eclipse.xsd.XSDTypeDefinition>

public static enum XsdTypeDefinition.Kind
extends Enum<XsdTypeDefinition.Kind>


Enum Constant Summary
COMPLEX
          An XsdTypeDefinition of COMPLEX TypeKind may safely be cast to an XsdComplexTypeDefinition
SIMPLE
          An XsdTypeDefinition of SIMPLE TypeKind may safely be cast to an XsdSimpleTypeDefinition
 
Method Summary
static XsdTypeDefinition.Kind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XsdTypeDefinition.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
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SIMPLE

public static final XsdTypeDefinition.Kind SIMPLE
An XsdTypeDefinition of SIMPLE TypeKind may safely be cast to an XsdSimpleTypeDefinition


COMPLEX

public static final XsdTypeDefinition.Kind COMPLEX
An XsdTypeDefinition of COMPLEX TypeKind may safely be cast to an XsdComplexTypeDefinition

Method Detail

values

public static XsdTypeDefinition.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 (XsdTypeDefinition.Kind c : XsdTypeDefinition.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 XsdTypeDefinition.Kind valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.