Enum Class ChildType

java.lang.Object
java.lang.Enum<ChildType>
org.glassfish.hk2.xml.internal.ChildType
All Implemented Interfaces:
Serializable, Comparable<ChildType>, Constable

public enum ChildType extends Enum<ChildType>
Indicates the type of child, whether that child be direct, or indicated with a List, or indicated with an array
Author:
jwells
  • Enum Constant Details

    • DIRECT

      public static final ChildType DIRECT
      Single child, directly placed on the parent
    • LIST

      public static final ChildType LIST
      A set of children represented by a List
    • ARRAY

      public static final ChildType ARRAY
      A set of children represented by an array
  • Method Details

    • values

      public static ChildType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ChildType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null