org.opengts.util
Class JSON._KeyValue

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

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

JSON Key/Value pair


Constructor Summary
JSON._KeyValue(java.lang.String key, boolean value)
          Constructor
JSON._KeyValue(java.lang.String key, double value)
          Constructor
JSON._KeyValue(java.lang.String key, JSON._Array value)
          Constructor
JSON._KeyValue(java.lang.String key, JSON._Object value)
          Constructor
JSON._KeyValue(java.lang.String key, JSON._Value value)
          Constructor
JSON._KeyValue(java.lang.String key, long value)
          Constructor
JSON._KeyValue(java.lang.String key, java.lang.String value)
          Constructor
 
Method Summary
 java.lang.String getKey()
          Gets the key of this key/value pair
 JSON._Value getValue()
          Gets the value of this key/value pair
 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._KeyValue

public JSON._KeyValue(java.lang.String key,
                      JSON._Value value)
Constructor


JSON._KeyValue

public JSON._KeyValue(java.lang.String key,
                      java.lang.String value)
Constructor


JSON._KeyValue

public JSON._KeyValue(java.lang.String key,
                      long value)
Constructor


JSON._KeyValue

public JSON._KeyValue(java.lang.String key,
                      double value)
Constructor


JSON._KeyValue

public JSON._KeyValue(java.lang.String key,
                      boolean value)
Constructor


JSON._KeyValue

public JSON._KeyValue(java.lang.String key,
                      JSON._Array value)
Constructor


JSON._KeyValue

public JSON._KeyValue(java.lang.String key,
                      JSON._Object value)
Constructor

Method Detail

getKey

public java.lang.String getKey()
Gets the key of this key/value pair


getValue

public JSON._Value getValue()
Gets the value of this key/value pair


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