Enum Config.Type

    • Enum Constant Detail

      • 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 Detail

      • values

        public static Config.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Config.Type c : Config.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Config.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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.