com.sdicons.json.model
Class JSONNull

java.lang.Object
  extended by com.sdicons.json.model.JSONValue
      extended by com.sdicons.json.model.JSONSimple
          extended by com.sdicons.json.model.JSONNull

public class JSONNull
extends JSONSimple

Represents a JSON null value. The only valid example is: null.


Field Summary
static JSONNull NULL
           
 
Constructor Summary
JSONNull()
           
 
Method Summary
 boolean equals(Object obj)
           
protected  String render(boolean pretty, String indent)
          Convert the JSON value into a string representation (JSON representation).
 Object strip()
          Strip all JSON information.
 String toString()
           
 
Methods inherited from class com.sdicons.json.model.JSONValue
decorate, getCol, getData, getLine, getStreamName, isArray, isBoolean, isComplex, isDecimal, isInteger, isNull, isNumber, isObject, isSimple, isString, render, setData, setLineCol, setStreamName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final JSONNull NULL
Constructor Detail

JSONNull

public JSONNull()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

render

protected String render(boolean pretty,
                        String indent)
Description copied from class: JSONValue
Convert the JSON value into a string representation (JSON representation).

Specified by:
render in class JSONValue
Parameters:
pretty - Indicating if the print should be made pretty (human readers) or compact (transmission or storage).
indent - Starting indent.
Returns:
A JSON representation.

equals

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

strip

public Object strip()
Strip all JSON information. In the case of a JSONNull object, only null remains...

Specified by:
strip in class JSONValue
Returns:
null.


Copyright © 2011. All Rights Reserved.