com.sun.xml.bind.v2.schemagen

Class GroupKind

class GroupKind extends Enum<GroupKind>

Enum for model group type.
Field Summary
static GroupKindALL
static GroupKindCHOICE
static GroupKindSEQUENCE
static List<GroupKind>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
Constructor Summary
GroupKind(String name)
Method Summary
List<GroupKind>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
static GroupKindvalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.
Particlewrite(ContentModelContainer parent)
Writes the model group.

Field Detail

ALL

public static final GroupKind ALL

CHOICE

public static final GroupKind CHOICE

SEQUENCE

public static final GroupKind SEQUENCE

VALUES

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

Constructor Detail

GroupKind

GroupKind(String name)

Method Detail

family

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

write

Particle write(ContentModelContainer parent)
Writes the model group.