public enum ChildType extends Enum<ChildType>
| Enum Constant and Description |
|---|
ARRAY
A set of children represented by an array
|
DIRECT
Single child, directly placed on the parent
|
LIST
A set of children represented by a
List |
| Modifier and Type | Method and Description |
|---|---|
static ChildType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChildType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChildType DIRECT
public static final ChildType ARRAY
public static ChildType[] values()
for (ChildType c : ChildType.values()) System.out.println(c);
public static ChildType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2009-2017 Oracle Corporation. All Rights Reserved.