Interface MetadataValue
-
public interface MetadataValue
A marker interface for value types intended to be used as metadata contained inMetadataContainer.getMetadata()
. Implementations must make their classes serializable usingMetadataContainer.serialize(MetadataValue)
andMetadataContainer.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 withJsonFactory
. Also, any type used for the member variables need to be serializable by the same library.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getKey()
-
-
-
Method Detail
-
getKey
String getKey()
- Returns:
- the key of this
MetadataValue
, useful when grouping in aMetadataContainer
.
-
-