org.opengts.util
Class JSON._Value

java.lang.Object
  extended by org.opengts.util.JSON._Value
Enclosing class:
JSON

public static class JSON._Value
extends java.lang.Object

JSON Value


Constructor Summary
JSON._Value(boolean v)
          Constructor
JSON._Value(java.lang.Boolean v)
          Constructor
JSON._Value(double v)
          Constructor
JSON._Value(java.lang.Double v)
          Constructor
JSON._Value(int v)
          Constructor
JSON._Value(java.lang.Integer v)
          Constructor
JSON._Value(JSON._Array v)
          Constructor
JSON._Value(JSON._Object v)
          Constructor
JSON._Value(long v)
          Constructor
JSON._Value(java.lang.Long v)
          Constructor
JSON._Value(java.lang.String v)
          Constructor
 
Method Summary
 JSON._Array getArrayValue(JSON._Array dft)
           
 boolean getBooleanValue(boolean dft)
           
 double getDoubleValue(double dft)
           
 int getIntValue(int dft)
           
 long getLongValue(long dft)
           
 java.lang.Object getObjectValue()
          Gets the value
 JSON._Object getObjectValue(JSON._Object dft)
           
 java.lang.String getStringValue(java.lang.String dft)
           
 boolean isArrayValue()
          Returns true is this value represents a JSON._Array
 boolean isBooleanValue()
          Returns true is this value represents a Boolean
 boolean isDoubleValue()
          Returns true is this value represents a Double
 boolean isIntValue()
          Returns true is this value represents an Integer
 boolean isLongValue()
          Returns true is this value represents a Long
 boolean isObjectValue()
          Returns true is this value represents a JSON._Object
 boolean isStringValue()
          Returns true is this value represents a String
 java.lang.String toString()
          Returns a String representation of this instance
 java.lang.StringBuffer toStringBuffer(int prefix, java.lang.StringBuffer sb)
          Write a String representation of this instance to the StringBuffer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSON._Value

public JSON._Value(java.lang.String v)
Constructor


JSON._Value

public JSON._Value(java.lang.Integer v)
Constructor


JSON._Value

public JSON._Value(int v)
Constructor


JSON._Value

public JSON._Value(java.lang.Long v)
Constructor


JSON._Value

public JSON._Value(long v)
Constructor


JSON._Value

public JSON._Value(java.lang.Double v)
Constructor


JSON._Value

public JSON._Value(double v)
Constructor


JSON._Value

public JSON._Value(java.lang.Boolean v)
Constructor


JSON._Value

public JSON._Value(boolean v)
Constructor


JSON._Value

public JSON._Value(JSON._Array v)
Constructor


JSON._Value

public JSON._Value(JSON._Object v)
Constructor

Method Detail

getObjectValue

public java.lang.Object getObjectValue()
Gets the value


isStringValue

public boolean isStringValue()
Returns true is this value represents a String


getStringValue

public java.lang.String getStringValue(java.lang.String dft)

isIntValue

public boolean isIntValue()
Returns true is this value represents an Integer


getIntValue

public int getIntValue(int dft)

isLongValue

public boolean isLongValue()
Returns true is this value represents a Long


getLongValue

public long getLongValue(long dft)

isDoubleValue

public boolean isDoubleValue()
Returns true is this value represents a Double


getDoubleValue

public double getDoubleValue(double dft)

isBooleanValue

public boolean isBooleanValue()
Returns true is this value represents a Boolean


getBooleanValue

public boolean getBooleanValue(boolean dft)

isArrayValue

public boolean isArrayValue()
Returns true is this value represents a JSON._Array


getArrayValue

public JSON._Array getArrayValue(JSON._Array dft)

isObjectValue

public boolean isObjectValue()
Returns true is this value represents a JSON._Object


getObjectValue

public JSON._Object getObjectValue(JSON._Object dft)

toStringBuffer

public java.lang.StringBuffer toStringBuffer(int prefix,
                                             java.lang.StringBuffer sb)
Write a String representation of this instance to the StringBuffer


toString

public java.lang.String toString()
Returns a String representation of this instance

Overrides:
toString in class java.lang.Object