Enum Class Config.Type

java.lang.Object
java.lang.Enum<Config.Type>
io.helidon.config.Config.Type
All Implemented Interfaces:
Serializable, Comparable<Config.Type>, Constable
Enclosing interface:
Config

public static enum Config.Type extends Enum<Config.Type>
Configuration node types.
  • Enum Constant Details

    • OBJECT

      public static final Config.Type OBJECT
      Config node is an object of named members (values, lists or other objects).
    • LIST

      public static final Config.Type LIST
      Config node is a list of indexed elements (values, objects or other lists).
    • VALUE

      public static final Config.Type VALUE
      Config node is a leaf String-based single value, member of object or list element.
    • MISSING

      public static final Config.Type MISSING
      Config node does not exists.
  • Method Details

    • values

      public static Config.Type[] 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 Config.Type 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
    • exists

      public boolean exists()
      Returns true if the node exists, either as an object, a list or as a value node.
      Returns:
      true if the node exists
    • isLeaf

      public boolean isLeaf()
      Returns true if this configuration node is existing a value node.

      Leaf configuration node does not contain any nested configuration sub-trees, but only a single associated value.

      Returns:
      true if the node is existing leaf node, false otherwise.