Class HoconValue.HoconObject

java.lang.Object
org.apache.juneau.marshall.hocon.HoconValue
org.apache.juneau.marshall.hocon.HoconValue.HoconObject
Enclosing class:
HoconValue

public static final class HoconValue.HoconObject extends HoconValue
HOCON object (maps to Java bean or Map).
  • Constructor Details

  • Method Details

    • getType

      Description copied from class: HoconValue
      Returns the value type.
      Specified by:
      getType in class HoconValue
      Returns:
      The type.
    • getMembers

      Returns the members.
      Returns:
      The members map.
    • merge

      public void merge(HoconValue.HoconObject other)
      Merges another object into this one (HOCON object merging).
      Parameters:
      other - The other object to merge.
      Must not be null.
    • setPath

      public void setPath(String[] path, HoconValue value)
      Sets a value at a dotted path (e.g., a.b.c).
      Parameters:
      path - Path components.
      Can be null or empty (no-op).
      value - The value.
    • getPath

      public HoconValue getPath(String[] path)
      Gets a value at a dotted path.
      Parameters:
      path - Path components.
      Can be null or empty (returns null).
      Returns:
      The value, or null if the path is null, empty, or does not resolve to an existing value.