Interface MetadataValue
public interface MetadataValue
A marker interface for value types intended to be used as metadata contained
in
MetadataContainer.getMetadata().
Implementations must make their classes serializable using
MetadataContainer.serialize(MetadataValue) and
MetadataContainer.deserialize(Class, String). That means they can be
handled by Jackson's JSON generator / parser. Most Java beans would suffice,
or if immutable POJO, annotate the constructor with
JsonFactory. Also, any type used for
the member variables need to be serializable by the same library.-
Method Summary
-
Method Details
-
getKey
String getKey()- Returns:
- the key of this
MetadataValue, useful when grouping in aMetadataContainer.
-