com.sun.tools.xjc.reader.xmlschema.ct

Class ComplexTypeBindingMode

public class ComplexTypeBindingMode extends Enum<ComplexTypeBindingMode>

Three-state flag for a complex type.
Field Summary
static ComplexTypeBindingModeFALLBACK_CONTENT
If a complex type has falled back to the general list content and it is not NOMOREEXTENSION.
static ComplexTypeBindingModeFALLBACK_EXTENSION
If a complex type has fallen to the dummy property in order to override previously inherited content.
static ComplexTypeBindingModeFALLBACK_REST
If a complex type has falled back to the rest content and it is not NOMOREEXTENSION.
static ComplexTypeBindingModeNORMAL
Neither FALLBACK nor NOMOREEXTENSION.
static List<ComplexTypeBindingMode>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
Method Summary
List<ComplexTypeBindingMode>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
static ComplexTypeBindingModevalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

FALLBACK_CONTENT

public static final ComplexTypeBindingMode FALLBACK_CONTENT
If a complex type has falled back to the general list content and it is not NOMOREEXTENSION.

FALLBACK_EXTENSION

public static final ComplexTypeBindingMode FALLBACK_EXTENSION
If a complex type has fallen to the dummy property in order to override previously inherited content.

FALLBACK_REST

public static final ComplexTypeBindingMode FALLBACK_REST
If a complex type has falled back to the rest content and it is not NOMOREEXTENSION.

NORMAL

public static final ComplexTypeBindingMode NORMAL
Neither FALLBACK nor NOMOREEXTENSION.

VALUES

public static final List<ComplexTypeBindingMode> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(ComplexTypeBindingMode c : ComplexTypeBindingMode.VALUES)
    System.out.println(c);

Method Detail

family

public final List<ComplexTypeBindingMode> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

valueOf

public static final ComplexTypeBindingMode valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.