org.xerial.json
Class JSONString

java.lang.Object
  extended by org.xerial.json.JSONValueBase
      extended by org.xerial.json.JSONString
All Implemented Interfaces:
JSONValue

public class JSONString
extends JSONValueBase


Constructor Summary
JSONString()
           
JSONString(String s)
           
 
Method Summary
 boolean equals(Object obj)
           
 JSONString getJSONString()
           
 String getValue()
           
 JSONValueType getValueType()
          Gets the JSON value type of this value
 String toJSONString()
          Produces output of the JSON format of this value
 String toString()
           
 
Methods inherited from class org.xerial.json.JSONValueBase
getJSONArray, getJSONBoolean, getJSONNull, getJSONNumber, getJSONObject, join, translateAsJSONValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONString

public JSONString()

JSONString

public JSONString(String s)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toJSONString

public String toJSONString()
Description copied from interface: JSONValue
Produces output of the JSON format of this value

Specified by:
toJSONString in interface JSONValue
Overrides:
toJSONString in class JSONValueBase
Returns:
the JSON output

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getJSONString

public JSONString getJSONString()
Specified by:
getJSONString in interface JSONValue
Overrides:
getJSONString in class JSONValueBase
Returns:
JSONString representation of this object if this instance is a JSONString, otherwise null

getValue

public String getValue()

getValueType

public JSONValueType getValueType()
Description copied from interface: JSONValue
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.