public final class

JsoSplittable

extends JavaScriptObject
implements Splittable
java.lang.Object
   ↳ com.google.gwt.core.client.JavaScriptObject
     ↳ com.google.gwt.autobean.client.impl.JsoSplittable

Class Overview

Implements the EntityCodex.Splittable interface using a raw JavaScriptObject.

Summary

Nested Classes
class JsoSplittable.StringSplittable This type is used because we can't treat Strings as JSOs. 
Protected Constructors
JsoSplittable()
Public Methods
String asString()
Returns a string representation of the data.
static Splittable create(Object object)
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.
[Expand]
Inherited Methods
From class com.google.gwt.core.client.JavaScriptObject
From class java.lang.Object
From interface com.google.gwt.autobean.shared.Splittable

Protected Constructors

protected JsoSplittable ()

Public Methods

public String asString ()

Returns a string representation of the data.

public static Splittable create (Object object)

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.