Class AssetFields
java.lang.Object
com.oracle.content.sdk.model.item.AssetFields
Represents the custom fields of a
Asset
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContentField
getFieldFromValue
(Object value, FieldType type) This method will transfer a field object value into a ContentField object based on theFieldType
based in as a parameter.Return the map of ContentField filestoString()
Get the list of name/value pairs with the associated content type
-
Method Details
-
getFieldsMap
Return the map of ContentField files- Returns:
- Map of string keys to ContentField objects
-
toString
Get the list of name/value pairs with the associated content type -
getFieldFromValue
This method will transfer a field object value into a ContentField object based on theFieldType
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
-