Class CustomizableEntity

java.lang.Object
org.apache.oltu.commons.json.CustomizableEntity
Direct Known Subclasses:
ClaimsSet, Header, Header

public abstract class CustomizableEntity extends Object
TODO
  • Constructor Details

    • CustomizableEntity

      public CustomizableEntity(Map<String,Object> customFields)
      TODO
      Parameters:
      customFields -
  • Method Details

    • 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