Package org.apache.oltu.commons.json
Class CustomizableEntity
- java.lang.Object
-
- org.apache.oltu.commons.json.CustomizableEntity
-
-
Constructor Summary
Constructors Constructor Description CustomizableEntity(Map<String,Object> customFields)
TODO
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getCustomField(String name, Class<T> type)
Return the specified custom field value,null
if the custom field is not present.Set<Map.Entry<String,Object>>
getCustomFields()
Returns the custom fields stored in the entity.String
toString()
-
-
-
Method Detail
-
getCustomField
public final <T> T getCustomField(String name, Class<T> type)
Return the specified custom field value,null
if the custom field is not present.- Parameters:
name
- the custom field name, it cannot be null.- Returns:
- the specified custom field value,
null
if the custom field is not present.
-
getCustomFields
public final Set<Map.Entry<String,Object>> getCustomFields()
Returns the custom fields stored in the entity.- Returns:
- the custom fields stored in the entity.
-
-