Class AssetFields

java.lang.Object
com.oracle.content.sdk.model.item.AssetFields

public class AssetFields extends Object
Represents the custom fields of a Asset
  • Method Details

    • getFieldsMap

      public Map<String,ContentField> getFieldsMap()
      Return the map of ContentField files
      Returns:
      Map of string keys to ContentField objects
    • toString

      public String toString()
      Get the list of name/value pairs with the associated content type
      Overrides:
      toString in class Object
      Returns:
      string representation of the data fields
    • getFieldFromValue

      public static ContentField getFieldFromValue(Object value, FieldType type)
      This method will transfer a field object value into a ContentField object based on the FieldType based in as a parameter. If the type passed in is null, the method will "guess" at the field based on the object value. This is less reliable and might return the incorrect content field type in some cases.
      Parameters:
      value - Object value, such as ContentDate, Integer, etc.
      type - The type that is expected for this value, or null to "guess" the type
      Returns:
      the ContentField for the value