org.compass.core.json.jackson
Class JacksonJsonArray

java.lang.Object
  extended by org.compass.core.json.jackson.JacksonJsonArray
All Implemented Interfaces:
JsonArray

public class JacksonJsonArray
extends Object
implements JsonArray

A simple JsonArray implementation that works with the JacksonContentConverter parser.

Author:
kimchy

Constructor Summary
JacksonJsonArray(List<Object> values)
           
 
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

JacksonJsonArray

public JacksonJsonArray(List<Object> values)
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-2009 The Compass Project.