Package org.comroid.uniform.node
Class UniObjectNode
- java.lang.Object
-
- org.comroid.uniform.node.UniNode
-
- org.comroid.uniform.node.UniObjectNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUniObjectNode.Adapter<B>-
Nested classes/interfaces inherited from class org.comroid.uniform.node.UniNode
UniNode.Type
-
-
Field Summary
-
Fields inherited from class org.comroid.uniform.node.UniNode
serializationAdapter
-
-
Constructor Summary
Constructors Constructor Description UniObjectNode(SerializationAdapter<?,?,?> serializationAdapter, UniObjectNode.Adapter adapter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UniObjectNodecopyFrom(@NotNull UniNode it)@NotNull UniNodeget(int index)@NotNull UniNodeget(java.lang.String fieldName)java.lang.ObjectgetBaseNode()booleanhas(java.lang.String fieldName)static UniObjectNodeofMap(SerializationAdapter<?,?,?> adapter, java.util.Map<java.lang.String,java.lang.Object> map)<T> @NotNull UniValueNode<java.lang.String>put(java.lang.String key, ValueType<T> type, T value)@NotNull UniArrayNodeputArray(java.lang.String key)UniNodeputNull(java.lang.String key)@NotNull UniObjectNodeputObject(java.lang.String key)intsize()-
Methods inherited from class org.comroid.uniform.node.UniNode
add, addArray, addNull, addObject, as, asArrayNode, asBoolean, asBoolean, asChar, asChar, asDouble, asDouble, asFloat, asFloat, asInt, asInt, asList, asLong, asLong, asNodeList, asObjectNode, asRaw, asShort, asShort, asString, asString, asValueNode, generateValueNode, getSerializationAdapter, getSerializedString, getType, has, isArrayNode, isNull, isNull, isObjectNode, isValueNode, process, process, put, putArray, putNull, putObject, toString, unsupported, wrap, wrap
-
-
-
-
Constructor Detail
-
UniObjectNode
public UniObjectNode(SerializationAdapter<?,?,?> serializationAdapter, UniObjectNode.Adapter adapter)
-
-
Method Detail
-
getBaseNode
public final java.lang.Object getBaseNode()
- Specified by:
getBaseNodein classUniNode
-
ofMap
public static UniObjectNode ofMap(SerializationAdapter<?,?,?> adapter, java.util.Map<java.lang.String,java.lang.Object> map)
-
get
@NotNull public @NotNull UniNode get(java.lang.String fieldName)
-
put
@NotNull public <T> @NotNull UniValueNode<java.lang.String> put(java.lang.String key, ValueType<T> type, T value)
-
putNull
public UniNode putNull(java.lang.String key) throws java.lang.UnsupportedOperationException
-
putObject
@NotNull public @NotNull UniObjectNode putObject(java.lang.String key)
-
putArray
@NotNull public @NotNull UniArrayNode putArray(java.lang.String key)
-
copyFrom
public UniObjectNode copyFrom(@NotNull @NotNull UniNode it)
-
-