org.apache.oltu.commons.json
Class CustomizableEntity

java.lang.Object
  extended by org.apache.oltu.commons.json.CustomizableEntity

public abstract class CustomizableEntity
extends Object

TODO


Constructor Summary
CustomizableEntity(Map<String,Object> customFields)
          TODO
 
Method Summary
<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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomizableEntity

public CustomizableEntity(Map<String,Object> customFields)
TODO

Parameters:
customFields -
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.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.