|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
D - data type of the metadata. This defines the type of value that
the property can contain, which is available through getKey().public interface Metadata<D>
The Metadata interface defines operations that are common to all content
model properties (elements or attributes). This interface describes the id,
name and datatype of a property, as well as including flags for whether the
property is required, undeclared, or visible. Creating new instances of
Metadata should be done using Schema.
| Nested Class Summary | |
|---|---|
static interface |
Metadata.VirtualValue
Defines a virtual value. |
| Method Summary | |
|---|---|
java.lang.Object |
generateValue(Element element,
ElementMetadata<?,?> metadata)
Generate the value of this property on the given element. |
MetadataContext |
getContext()
Returns the metadata context that this metadata was created for, or null if this metadata is not part of a context. |
MetadataKey<D> |
getKey()
Returns the attribute key for this metadata. |
QName |
getName()
Returns the qualified name of the property, used during parsing and generation. |
ElementKey<?,?> |
getParent()
Returns the parent of this metadata instance, or null if this
metadata does not take the parent key into account. |
Schema |
getSchema()
Returns the Schema that this metadata is a part of. |
boolean |
isRequired()
Returns true if this property is required. |
boolean |
isVisible()
Returns true if this property is visible. |
void |
parseValue(Element element,
ElementMetadata<?,?> metadata,
java.lang.Object value)
Parses the value of this property into the given element. |
| Method Detail |
|---|
Schema getSchema()
Schema that this metadata is a part of.
MetadataKey<D> getKey()
ElementKey<?,?> getParent()
null if this
metadata does not take the parent key into account.
MetadataContext getContext()
null if this metadata is not part of a context.
QName getName()
boolean isRequired()
boolean isVisible()
java.lang.Object generateValue(Element element,
ElementMetadata<?,?> metadata)
void parseValue(Element element,
ElementMetadata<?,?> metadata,
java.lang.Object value)
throws ParseException
ParseException - if parsing fails.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||