org.compass.core.json.impl
Class DefaultAliasedJSONObject

java.lang.Object
  extended by org.compass.core.json.impl.DefaultJSONObject
      extended by org.compass.core.json.impl.DefaultAliasedJSONObject
All Implemented Interfaces:
AliasedJsonObject, JsonObject, AliasedObject

public class DefaultAliasedJSONObject
extends DefaultJSONObject
implements AliasedJsonObject

An aliased DefaultJSONObject.

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.json.impl.DefaultJSONObject
NULL
 
Constructor Summary
DefaultAliasedJSONObject(String alias)
          Constructs a new aliased json object using the provided alias.
DefaultAliasedJSONObject(String alias, DefaultJSONTokener tokener)
          Constructs a new aliased json object using the provided alias and a json tokener.
DefaultAliasedJSONObject(String alias, String json)
          Constructs a new aliased json object using the provided alias and json string.
 
Method Summary
 String getAlias()
          Returns the given alias.
 
Methods inherited from class org.compass.core.json.impl.DefaultJSONObject
accumulate, append, doubleToString, entries, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, isNull, isNullValue, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOpt, quote, remove, sortedKeys, testValidity, toJSONArray, toString, toString, toString, valueToString, valueToString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.compass.core.json.JsonObject
isNullValue, keys, opt
 

Constructor Detail

DefaultAliasedJSONObject

public DefaultAliasedJSONObject(String alias)
Constructs a new aliased json object using the provided alias.

Parameters:
alias - The alias name

DefaultAliasedJSONObject

public DefaultAliasedJSONObject(String alias,
                                String json)
Constructs a new aliased json object using the provided alias and json string.

Parameters:
alias - The alias name
json - The JSON string

DefaultAliasedJSONObject

public DefaultAliasedJSONObject(String alias,
                                DefaultJSONTokener tokener)
                         throws DefaultJSONException
Constructs a new aliased json object using the provided alias and a json tokener.

Parameters:
alias - The alias name
tokener - The JSON tokener
Throws:
DefaultJSONException
Method Detail

getAlias

public String getAlias()
Returns the given alias.

Specified by:
getAlias in interface AliasedObject


Copyright (c) 2004-2008 The Compass Project.