public final class Schema
extends java.lang.Object
MetadataRegistry
, which can be created using builder()
.Modifier and Type | Method and Description |
---|---|
<D> AttributeMetadata<D> |
bind(ElementKey<?,?> parent,
AttributeKey<D> attribute)
Returns the default metadata for the given attribute.
|
<D> AttributeMetadata<D> |
bind(ElementKey<?,?> parent,
AttributeKey<D> attribute,
MetadataContext context)
Returns the metadata for the attribute, bound to the context.
|
<D,E extends Element> |
bind(ElementKey<?,?> parent,
ElementKey<D,E> child)
Returns the metadata for the child element in the parent.
|
<D,E extends Element> |
bind(ElementKey<?,?> parent,
ElementKey<D,E> child,
MetadataContext context)
Returns the metadata for the child element in the parent, bound to the
context.
|
<D,E extends Element> |
bind(ElementKey<D,E> key)
Returns the default metadata for the element key.
|
<D,E extends Element> |
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. |
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)