org.xerial.json
Interface JSONValue
- All Known Subinterfaces:
- JSONNumber
- All Known Implementing Classes:
- JSONArray, JSONBoolean, JSONDouble, JSONInteger, JSONLong, JSONNull, JSONObject, JSONString, JSONValueBase
public interface JSONValue
getJSONString
JSONString getJSONString()
- Returns:
- JSONString representation of this object if this instance is a JSONString, otherwise null
getJSONNumber
JSONNumber getJSONNumber()
- Returns:
- JSONNumber representation of this object if this instance is a JSONNumber, otherwise null
getJSONObject
JSONObject getJSONObject()
- Returns:
- JSONObject representation of this object if this instance is a JSONSObject, otherwise null
getJSONArray
JSONArray getJSONArray()
- Returns:
- JSONArray representation of this object if this instance is a JSONArray, otherwise null
getJSONBoolean
JSONBoolean getJSONBoolean()
- Returns:
- JSONBoolean representation of this object if this instance is a JSONBoolean, otherwise null
getJSONNull
JSONNull getJSONNull()
- Returns:
- JSONNull representation of this object if this instance is a JSONNull, otherwise null
toJSONString
String toJSONString()
- Produces output of the JSON format of this value
- Returns:
- the JSON output
getValueType
JSONValueType getValueType()
- Gets the JSON value type of this value
- Returns:
- the
JSONValueType

This work is licensed under a Creative Commons Attribution-ShareAlike 2.1 Japan License.