This project has retired. For details please refer to its Attic page.
CustomizableEntity | Apache Oltu - Commons
public abstract class

CustomizableEntity

extends Object
java.lang.Object
   ↳ org.apache.oltu.commons.json.CustomizableEntity

Class Overview

TODO

Summary

Public Constructors
CustomizableEntity(Map<StringObject> customFields)
TODO
Public Methods
final <T> T getCustomField(String name, Class<T> type)
Return the specified custom field value, null if the custom field is not present.
final Set<Entry<StringObject>> getCustomFields()
Returns the custom fields stored in the entity.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CustomizableEntity (Map<StringObject> customFields)

TODO

Public Methods

public final 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.

public final Set<Entry<StringObject>> getCustomFields ()

Returns the custom fields stored in the entity.

Returns
  • the custom fields stored in the entity.

public String toString ()