Interface MetaDataExtension.MetaData
- Enclosing interface:
MetaDataExtension
public static interface MetaDataExtension.MetaData
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) Returns an attribute associated with this meta data by name.<T> T
getAttribute
(String name, Class<T> type) Returns an attribute associated with this meta data by name and specifying the type required.Returns the payload of the meta data as a POJO.<T> T
getPayload
(Class<T> type) Returns the payload of the meta data as specified type.
-
Field Details
-
CONTENT_TYPE
- See Also:
-
JAVA_TYPE
- See Also:
-
CONTEXT
- See Also:
-
-
Method Details
-
getAttribute
Returns an attribute associated with this meta data by name.- Parameters:
name
- the attribute name- Returns:
- the attribute
-
getAttributes
- Returns:
- a read-only list of attributes.
-
getAttribute
Returns an attribute associated with this meta data by name and specifying the type required.- Parameters:
name
- the attribute nametype
- the type of the attribute- Returns:
- the value of the given attribute or null if there is no attribute for the given name
- Throws:
TypeConversionException
- is thrown if error during type conversion
-
getPayload
Object getPayload()Returns the payload of the meta data as a POJO.- Returns:
- the body, can be null
-
getPayload
Returns the payload of the meta data as specified type.- Parameters:
type
- the type that the payload should be converted yo.- Returns:
- the payload of the meta data as the specified type.
- Throws:
TypeConversionException
- is thrown if error during type conversion
-