Package org.apache.juneau.marshall.hocon
Class HoconValue.HoconObject
java.lang.Object
org.apache.juneau.marshall.hocon.HoconValue
org.apache.juneau.marshall.hocon.HoconValue.HoconObject
- Enclosing class:
- HoconValue
HOCON object (maps to Java bean or Map).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.marshall.hocon.HoconValue
HoconValue.HoconArray, HoconValue.HoconBoolean, HoconValue.HoconConcat, HoconValue.HoconNull, HoconValue.HoconNumber, HoconValue.HoconObject, HoconValue.HoconString, HoconValue.HoconSubstitution, HoconValue.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the members.Gets a value at a dotted path.getType()Returns the value type.voidmerge(HoconValue.HoconObject other) Merges another object into this one (HOCON object merging).voidsetPath(String[] path, HoconValue value) Sets a value at a dotted path (e.g., a.b.c).
-
Constructor Details
-
HoconObject
public HoconObject()
-
-
Method Details
-
getType
Description copied from class:HoconValueReturns the value type.- Specified by:
getTypein classHoconValue- Returns:
- The type.
-
getMembers
Returns the members.- Returns:
- The members map.
-
merge
Merges another object into this one (HOCON object merging).- Parameters:
other- The other object to merge.
Must not benull .
-
setPath
Sets a value at a dotted path (e.g., a.b.c).- Parameters:
path- Path components.
Can benull or empty (no-op).value- The value.
-
getPath
Gets a value at a dotted path.- Parameters:
path- Path components.
Can benull or empty (returnsnull ).- Returns:
- The value, or
null if the path isnull , empty, or does not resolve to an existing value.
-