com.sun.tools.xjc.reader

Class RawTypeSet.Mode

public static class RawTypeSet.Mode extends Enum<RawTypeSet.Mode>

Represents the possible binding option for this RawTypeSet.
Field Summary
static RawTypeSet.ModeCAN_BE_TYPEREF
This RawTypeSet can be either an reference property or an element property, and XJC recommends reference property.
static RawTypeSet.ModeMUST_BE_REFERENCE
This RawTypeSet can be only bound to a reference property.
static RawTypeSet.ModeSHOULD_BE_TYPEREF
This RawTypeSet can be either an reference property or an element property, and XJC recommends element property.
static List<RawTypeSet.Mode>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
Constructor Summary
Mode(int rank)
Method Summary
List<RawTypeSet.Mode>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
RawTypeSet.Modeor(RawTypeSet.Mode that)
static RawTypeSet.ModevalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

CAN_BE_TYPEREF

public static final RawTypeSet.Mode CAN_BE_TYPEREF
This RawTypeSet can be either an reference property or an element property, and XJC recommends reference property.

MUST_BE_REFERENCE

public static final RawTypeSet.Mode MUST_BE_REFERENCE
This RawTypeSet can be only bound to a reference property.

SHOULD_BE_TYPEREF

public static final RawTypeSet.Mode SHOULD_BE_TYPEREF
This RawTypeSet can be either an reference property or an element property, and XJC recommends element property.

VALUES

public static final List<RawTypeSet.Mode> 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(Mode c : Mode.VALUES)
    System.out.println(c);

Constructor Detail

Mode

Mode(int rank)

Method Detail

family

public final List<RawTypeSet.Mode> 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.

or

RawTypeSet.Mode or(RawTypeSet.Mode that)

valueOf

public static final RawTypeSet.Mode 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.