org.compass.core.json.grails
Class GrailsJSONArray

java.lang.Object
  extended by org.compass.core.json.grails.GrailsJSONArray
All Implemented Interfaces:
JsonArray

public class GrailsJSONArray
extends Object
implements JsonArray

A wrapper around grails JSONArray.

Author:
kimchy

Constructor Summary
GrailsJSONArray(org.codehaus.groovy.grails.web.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

GrailsJSONArray

public GrailsJSONArray(org.codehaus.groovy.grails.web.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.