Class NodeValue
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNodeValue.NULLDefault is no value
public final classNodeValue.STRINGA string value
public final classNodeValue.BOOLBoolean value
public final classNodeValue.MMAPMulti-string map (String key to one or more string values)
public final classNodeValue.SLISTList of String values
public final classNodeValue.BARRAYByte Array
public final classNodeValue.NAMESPACEDNamespaced value
public final classNodeValue.UINTUnsigned integer
public final classNodeValue.JSONJSON
public final classNodeValue.ENTRYKey/Value Pair
public final classNodeValue.LISTList of values
public final classNodeValue.XMLXML
public final classNodeValue.MAPGeneric map of String keys to NodeValue values (sorted for deterministic output)
public classNodeValue.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static NodeValue.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final StringstrForm()Returns the encoded string form of the node value final StringvalueType()Returns the type of the value final NodeValueand(NodeValue other)Calculates an AND of two values final NodeValueor(NodeValue other)Calculates an OR of two values final Booleantruthy()Convert this value into a boolean using a "truthy" test final JsonValueasJson()If this value is a JSON value, returns it, otherwise returns null final StringasString()If this value is a String value, returns it, otherwise returns null final XmlValueasXml()If this value is an XML value, returns it, otherwise returns null final BooleanasBool()If this value is a bool value, returns it, otherwise returns null final UIntasUInt()If this value is an UInt value, returns it, otherwise returns null final List<String>asSList()If this value is a string list, returns it, otherwise returns null final List<NodeValue>toList()Converts this value into a list of values NodeValueinto()final Objectunwrap()Returns the inner value if the NodeValue final static Stringescape(String value)-
-
Method Detail
-
asJson
final JsonValue asJson()
If this value is a JSON value, returns it, otherwise returns null
-
asString
final String asString()
If this value is a String value, returns it, otherwise returns null
-
asSList
final List<String> asSList()
If this value is a string list, returns it, otherwise returns null
-
-
-
-