org.mapfish.print.utils
Class PJsonArray

java.lang.Object
  extended by org.mapfish.print.utils.PJsonElement
      extended by org.mapfish.print.utils.PJsonArray

public class PJsonArray
extends PJsonElement

Wrapper around the JSONArray class to have a better error managment.


Constructor Summary
PJsonArray(PJsonElement parent, org.json.JSONArray array, java.lang.String contextName)
           
 
Method Summary
 float getFloat(int i)
           
 int getInt(int i)
           
 org.json.JSONArray getInternalArray()
          Deprecated. Use only if you know what you are doing!
 PJsonArray getJSONArray(int i)
           
 PJsonObject getJSONObject(int i)
           
 java.lang.String getString(int i)
           
 int size()
           
 
Methods inherited from class org.mapfish.print.utils.PJsonElement
getParent, getPath, getPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PJsonArray

public PJsonArray(PJsonElement parent,
                  org.json.JSONArray array,
                  java.lang.String contextName)
Method Detail

size

public int size()

getJSONObject

public PJsonObject getJSONObject(int i)

getJSONArray

public PJsonArray getJSONArray(int i)

getInt

public int getInt(int i)

getFloat

public float getFloat(int i)

getString

public java.lang.String getString(int i)

getInternalArray

public org.json.JSONArray getInternalArray()
Deprecated. Use only if you know what you are doing!



Copyright © 2009 Camptocamp SA. All Rights Reserved.