org.apache.wink.json4j.compat
Interface JSONObject

All Known Implementing Classes:
ApacheJSONObjectDelegate

public interface JSONObject


Method Summary
 JSONObject append(String key, Object value)
           
 Object get(String key)
           
 boolean getBoolean(String key)
           
 double getDouble(String key)
           
 int getInt(String key)
           
 JSONArray getJSONArray(String key)
           
 JSONObject getJSONObject(String key)
           
 long getLong(String key)
           
 short getShort(String key)
           
 String getString(String key)
           
 boolean has(String key)
           
 boolean isNull(String key)
           
 Iterator keys()
           
 int length()
           
 JSONArray names()
           
 JSONObject put(String key, boolean value)
           
 JSONObject put(String key, Collection value)
           
 JSONObject put(String key, double value)
           
 JSONObject put(String key, int value)
           
 JSONObject put(String key, long value)
           
 JSONObject put(String key, Map value)
           
 JSONObject put(String key, Object value)
           
 JSONObject put(String key, short value)
           
 Object remove(String key)
           
 Iterator sortedKeys()
           
 String toString()
           
 String toString(int indent)
           
 Writer write(Writer w)
           
 

Method Detail

get

Object get(String key)

getBoolean

boolean getBoolean(String key)
                   throws JSONException
Throws:
JSONException

getDouble

double getDouble(String key)
                 throws JSONException
Throws:
JSONException

getInt

int getInt(String key)
           throws JSONException
Throws:
JSONException

getShort

short getShort(String key)
               throws JSONException
Throws:
JSONException

getLong

long getLong(String key)
             throws JSONException
Throws:
JSONException

getJSONArray

JSONArray getJSONArray(String key)
                       throws JSONException
Throws:
JSONException

getJSONObject

JSONObject getJSONObject(String key)
                         throws JSONException
Throws:
JSONException

getString

String getString(String key)
                 throws JSONException
Throws:
JSONException

append

JSONObject append(String key,
                  Object value)
                  throws JSONException
Throws:
JSONException

put

JSONObject put(String key,
               boolean value)

put

JSONObject put(String key,
               Collection value)
               throws JSONException
Throws:
JSONException

put

JSONObject put(String key,
               double value)

put

JSONObject put(String key,
               int value)

put

JSONObject put(String key,
               long value)

put

JSONObject put(String key,
               short value)

put

JSONObject put(String key,
               Map value)
               throws JSONException
Throws:
JSONException

put

JSONObject put(String key,
               Object value)
               throws JSONException
Throws:
JSONException

remove

Object remove(String key)

has

boolean has(String key)

isNull

boolean isNull(String key)

keys

Iterator keys()

sortedKeys

Iterator sortedKeys()

length

int length()

names

JSONArray names()

toString

String toString()
Overrides:
toString in class Object

toString

String toString(int indent)

write

Writer write(Writer w)
             throws JSONException
Throws:
JSONException


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.