public class

JsonSplittable

extends Object
implements Splittable
java.lang.Object
   ↳ com.google.gwt.autobean.server.impl.JsonSplittable

Class Overview

Uses the org.json packages to slice and dice request payloads.

Summary

Public Methods
String asString()
Returns a string representation of the data.
static Splittable create(String payload)
Splittable get(int index)
Returns the nth element of a list.
Splittable get(String key)
Returns the named property.
String getPayload()
Returns a wire-format representation of the data.
List<String> getPropertyKeys()
Returns all keys available in the Splittable.
boolean isIndexed()
Returns true if size() and get(int) can be expected to return meaningful values.
boolean isKeyed()
Returns true if getPropertyKeys() and get(String) can be expected to return meaningful values.
boolean isNull(String key)
Indicates if the named property is null.
boolean isNull(int index)
Indicates if the nth element of a list is null.
boolean isString()
Returns true if asString() can be expected to return a meaningful value.
int size()
Returns the size of the list.
String toString()
For debugging use only.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.autobean.shared.Splittable

Public Methods

public String asString ()

Returns a string representation of the data.

public static Splittable create (String payload)

public Splittable get (int index)

Returns the nth element of a list.

public Splittable get (String key)

Returns the named property.

public String getPayload ()

Returns a wire-format representation of the data.

public List<String> getPropertyKeys ()

Returns all keys available in the Splittable. This method may be expensive to compute.

public boolean isIndexed ()

Returns true if size() and get(int) can be expected to return meaningful values.

public boolean isKeyed ()

Returns true if getPropertyKeys() and get(String) can be expected to return meaningful values.

public boolean isNull (String key)

Indicates if the named property is null.

public boolean isNull (int index)

Indicates if the nth element of a list is null.

public boolean isString ()

Returns true if asString() can be expected to return a meaningful value.

public int size ()

Returns the size of the list.

public String toString ()

For debugging use only.