org.compass.core.json.jettison
Class JettisonJSONArray

java.lang.Object
  extended by org.compass.core.json.jettison.JettisonJSONArray
All Implemented Interfaces:
JsonArray

public class JettisonJSONArray
extends Object
implements JsonArray

A wrapper around jettison JSONArray.

Author:
kimchy

Constructor Summary
JettisonJSONArray(org.codehaus.jettison.json.JSONArray jsonArray)
           
 
Method Summary
 boolean isNull(int index)
          Returns true if the given index is a null value.
 int length()
          Return the length of the array.
 Object opt(int index)
          Returns the value for the given index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettisonJSONArray

public JettisonJSONArray(org.codehaus.jettison.json.JSONArray jsonArray)
Method Detail

length

public int length()
Description copied from interface: JsonArray
Return the length of the array.

Specified by:
length in interface JsonArray

isNull

public boolean isNull(int index)
Description copied from interface: JsonArray
Returns true if the given index is a null value.

Specified by:
isNull in interface JsonArray

opt

public Object opt(int index)
Description copied from interface: JsonArray
Returns the value for the given index.

Specified by:
opt in interface JsonArray


Copyright (c) 2004-2008 The Compass Project.