public interface

Splittable

com.google.gwt.autobean.shared.Splittable
Known Indirect Subclasses

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()
Returns true if getPropertyKeys() and get(String) can be expected to return meaningful values.
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.

public abstract Splittable get (String key)

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 ()

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

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.