java.lang.Object
java.lang.Enum<TreeType>
org.opendaylight.yangtools.yang.data.tree.api.TreeType
All Implemented Interfaces:
Serializable, Comparable<TreeType>, Constable

@Beta public enum TreeType extends Enum<TreeType>
DataTree type, specifying which YANG modeled content is valid with a data tree. This reflects RFC6020/ RFC7950 data combinations based on config statement.
  • Enum Constant Details

    • CONFIGURATION

      public static final TreeType CONFIGURATION
      Only config true nodes are allowed. This corresponds, but is not limited, to @{code candidate}, startup and running data stores defined in RFC8342 section 4.1 as well as intended data store defined in RFC8342 section 4.1.
    • OPERATIONAL

      public static final TreeType OPERATIONAL
      Only config true and config false nodes are allowed. This corresponds, but is not limited, to operational state defined in RFC8342 section 4.1 as well as operational data store defined in RFC8342 section 4.1.
  • Method Details

    • values

      public static TreeType[] 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 TreeType 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