|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.model.Schema
public final class Schema
An immutable set of metadata. Stores an entire tree of metadata about a
service or feed provider in a fast, cached, immutable form, so that runtime
use of metadata is very cheap. Schemas can be created by using a
MetadataRegistry
, which can be created using builder()
.
Method Summary | ||
---|---|---|
|
bind(ElementKey<?,?> parent,
AttributeKey<D> attribute)
Returns the default metadata for the given attribute. |
|
|
bind(ElementKey<?,?> parent,
AttributeKey<D> attribute,
MetadataContext context)
Returns the metadata for the attribute, bound to the context. |
|
|
bind(ElementKey<?,?> parent,
ElementKey<D,E> child)
Returns the metadata for the child element in the parent. |
|
|
bind(ElementKey<?,?> parent,
ElementKey<D,E> child,
MetadataContext context)
Returns the metadata for the child element in the parent, bound to the context. |
|
|
bind(ElementKey<D,E> key)
Returns the default metadata for the element key. |
|
|
bind(ElementKey<D,E> key,
MetadataContext context)
Returns the metadata for the element key bound to the context. |
|
static MetadataRegistry |
builder()
Static factory method to allow the standard code of Schema.builder() to return something useful. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MetadataRegistry builder()
Schema.builder()
to return something useful.
public <D,E extends Element> ElementMetadata<D,E> bind(ElementKey<D,E> key)
public <D,E extends Element> ElementMetadata<D,E> bind(ElementKey<D,E> key, MetadataContext context)
public <D,E extends Element> ElementMetadata<D,E> bind(ElementKey<?,?> parent, ElementKey<D,E> child)
public <D,E extends Element> ElementMetadata<D,E> bind(ElementKey<?,?> parent, ElementKey<D,E> child, MetadataContext context)
public <D> AttributeMetadata<D> bind(ElementKey<?,?> parent, AttributeKey<D> attribute)
public <D> AttributeMetadata<D> bind(ElementKey<?,?> parent, AttributeKey<D> attribute, MetadataContext context)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |