net.jangaroo.exml.json
Class JsonArray

java.lang.Object
  extended by net.jangaroo.exml.json.JsonArray
All Implemented Interfaces:
Json

public class JsonArray
extends Object
implements Json


Constructor Summary
JsonArray(Object... items)
           
 
Method Summary
 Object get(String property)
           
 void set(String property, Object value)
           
 String toString()
           
 String toString(int indentFactor, int indent)
          Make a prettyprinted JSON text of this JSONArray.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsonArray

public JsonArray(Object... items)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(int indentFactor,
                       int indent)
Make a prettyprinted JSON text of this JSONArray. Warning: This method assumes that the data structure is acyclical.

Specified by:
toString in interface Json
Parameters:
indentFactor - The number of spaces to add to each level of indentation.
indent - The indention of the top level.
Returns:
a printable, displayable, transmittable representation of the array.

get

public Object get(String property)
Specified by:
get in interface Json

set

public void set(String property,
                Object value)
Specified by:
set in interface Json


Copyright © 2002-2011 CoreMedia AG. All Rights Reserved.