Package org.dashbuilder.json
Class JsonNull
- java.lang.Object
-
- org.dashbuilder.json.JsonNull
-
-
Field Summary
Fields Modifier and Type Field Description static JsonNullNULL_INSTANCE
-
Constructor Summary
Constructors Constructor Description JsonNull()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasBoolean()Convert the underlying value to booleandoubleasNumber()Convert the underlying value to a numberStringasString()Convert the underlying value to a StringJsonTypegetType()Returns an enumeration representing the fundamental JSON type.booleanisEmpty()Check if the json has no value stored.StringtoJson()Returns a serialized JSON string representing this value.voidtraverse(org.dashbuilder.json.JsonVisitor visitor, org.dashbuilder.json.JsonContext ctx)Visitor interface
-
-
-
Field Detail
-
NULL_INSTANCE
public static final JsonNull NULL_INSTANCE
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from interface:JsonValueCheck if the json has no value stored.
-
asNumber
public double asNumber()
Description copied from interface:JsonValueConvert the underlying value to a number
-
asBoolean
public boolean asBoolean()
Description copied from interface:JsonValueConvert the underlying value to boolean
-
asString
public String asString()
Description copied from interface:JsonValueConvert the underlying value to a String
-
getType
public JsonType getType()
Description copied from interface:JsonValueReturns an enumeration representing the fundamental JSON type.
-
traverse
public void traverse(org.dashbuilder.json.JsonVisitor visitor, org.dashbuilder.json.JsonContext ctx)Description copied from interface:JsonValueVisitor interface
-
-