org.apache.openjpa.persistence.jest
Class JSONObject.Array

java.lang.Object
  extended by org.apache.openjpa.persistence.jest.JSONObject.Array
All Implemented Interfaces:
JSON
Enclosing class:
JSONObject

public static class JSONObject.Array
extends Object
implements JSON

An array of objects. Members can be JSON too.

Author:
Pinaki Poddar

Field Summary
 
Fields inherited from interface org.apache.openjpa.persistence.jest.JSON
ARRAY_EMPTY, ARRAY_END, ARRAY_START, FIELD_SEPARATOR, ID_MARKER, IOR_SEPARTOR, MEMBER_SEPARATOR, NEWLINE, NULL_LITERAL, OBJECT_END, OBJECT_START, QUOTE, REF_MARKER, SPACE, VALUE_SEPARATOR
 
Constructor Summary
JSONObject.Array()
           
 
Method Summary
 void add(Object o)
           
 StringBuilder asString(int indent)
          Render into a string buffer.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONObject.Array

public JSONObject.Array()
Method Detail

add

public void add(Object o)

toString

public String toString()
Overrides:
toString in class Object

asString

public StringBuilder asString(int indent)
Description copied from interface: JSON
Render into a string buffer.

Specified by:
asString in interface JSON
Parameters:
indent - level at which this instance is being rendered
Returns:
a mutable buffer


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.