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


Method Summary
 JSONArray getJSONArray()
           
 JSONBoolean getJSONBoolean()
           
 JSONNull getJSONNull()
           
 JSONNumber getJSONNumber()
           
 JSONObject getJSONObject()
           
 JSONString getJSONString()
           
 JSONValueType getValueType()
          Gets the JSON value type of this value
 String toJSONString()
          Produces output of the JSON format of this value
 

Method Detail

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


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