com.google.gwt.autobean.shared.Splittable |
Known Indirect Subclasses
JsoSplittable |
Implements the EntityCodex.Splittable interface using a raw JavaScriptObject. |
JsoSplittable.StringSplittable |
This type is used because we can't treat Strings as JSOs. |
JsonSplittable |
Uses the org.json packages to slice and dice request payloads. |
LazySplittable |
Holds a string payload with the expectation that the object will be used only
for creating a larger payload. |
|
Class Overview
This interface provides an abstraction around the underlying data model
(JavaScriptObject, org.json
, or XML) used to encode an AutoBeanCodex
payload.
Summary
Public Methods |
abstract
String
|
asString()
Returns a string representation of the data.
|
abstract
Splittable
|
get(int index)
Returns the nth element of a list.
|
abstract
Splittable
|
get(String key)
Returns the named property.
|
abstract
String
|
getPayload()
Returns a wire-format representation of the data.
|
abstract
List<String>
|
getPropertyKeys()
Returns all keys available in the Splittable.
|
abstract
boolean
|
isIndexed()
Returns
true if size() and get(int) can be
expected to return meaningful values.
|
abstract
boolean
|
isKeyed()
|
abstract
boolean
|
isNull(String key)
Indicates if the named property is null.
|
abstract
boolean
|
isNull(int index)
Indicates if the nth element of a list is null.
|
abstract
boolean
|
isString()
Returns
true if asString() can be expected to return a
meaningful value.
|
abstract
int
|
size()
Returns the size of the list.
|
Public Methods
public
abstract
String
asString
()
Returns a string representation of the data.
public
abstract
Splittable
get
(int index)
Returns the nth element of a list.
Returns the named property.
public
abstract
String
getPayload
()
Returns a wire-format representation of the data.
public
abstract
List<String>
getPropertyKeys
()
Returns all keys available in the Splittable. This method may be expensive
to compute.
public
abstract
boolean
isIndexed
()
Returns
true if size()
and get(int)
can be
expected to return meaningful values.
public
abstract
boolean
isKeyed
()
public
abstract
boolean
isNull
(String key)
Indicates if the named property is null.
public
abstract
boolean
isNull
(int index)
Indicates if the nth element of a list is null.
public
abstract
boolean
isString
()
Returns
true if asString()
can be expected to return a
meaningful value.
public
abstract
int
size
()
Returns the size of the list.