org.compass.core.json
Interface JsonObject

All Known Subinterfaces:
AliasedJsonObject
All Known Implementing Classes:
DefaultAliasedJSONObject, DefaultJSONObject, GrailsAliasedJSONObject, GrailsJSONObject, JettisonAliasedJSONObject, JettisonJSONObject, RawAliasedJsonObject, RawJsonObject

public interface JsonObject

A generic interface for a Json Object.

Author:
kimchy

Method Summary
 boolean isNullValue(Object value)
          Returns true if the given value is a null value.
 Iterator<String> keys()
          Returns a Map holding all the keys and value for the given Json Object.
 Object opt(String key)
          Returns the given object under the key.
 

Method Detail

keys

Iterator<String> keys()
Returns a Map holding all the keys and value for the given Json Object.


opt

Object opt(String key)
Returns the given object under the key. Returns null if nothing is registerd under the key.


isNullValue

boolean isNullValue(Object value)
Returns true if the given value is a null value.



Copyright (c) 2004-2008 The Compass Project.