xv.json
Class JSONString

java.lang.Object
  extended by xv.json.JSONVariant
      extended by xv.json.JSONString

public class JSONString
extends JSONVariant

A JSON string. Basically wraps a Java string, but keeps the string type in the JSON type hierarchy.

Author:
xv

Constructor Summary
JSONString(String string)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getType()
          Returns a string description of the type - one of "array", "object", "boolean", "number", or "string".
 int hashCode()
           
 String toString()
           
 
Methods inherited from class xv.json.JSONVariant
toJSON, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONString

public JSONString(String string)
Method Detail

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getType

public String getType()
Description copied from class: JSONVariant
Returns a string description of the type - one of "array", "object", "boolean", "number", or "string".

Specified by:
getType in class JSONVariant
Returns:


Copyright © 2008-2011. All Rights Reserved.