Class ContentField<T>
java.lang.Object
com.oracle.content.sdk.model.AssetObject
com.oracle.content.sdk.model.field.ContentField<T>
- All Implemented Interfaces:
 Serializable
- Direct Known Subclasses:
 ContentFieldBoolean,ContentFieldDate,ContentFieldDecimal,ContentFieldInteger,ContentFieldJson,ContentFieldReference,ContentFieldReferenceList,ContentFieldText,ContentFieldTextList,ContentFieldUnknown
Abstract base class for all field types.  T is the type (Boolean, String) of the value of the field.
- See Also:
 
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetType()Return the type for the field.getValue()Get the java object representation of the field.Return a single string representation of the field value, regardless of the type.toString()String representation of the field for debugging purposes, which includes the type. 
- 
Field Details
- 
value
 - 
fieldType
 
 - 
 - 
Constructor Details
- 
ContentField
 
 - 
 - 
Method Details
- 
getType
Return the type for the field.- Returns:
 - type
 
 - 
getValueAsString
Return a single string representation of the field value, regardless of the type. This works to get a string representation of primitive types like integer, decimal, text as a string but will only return the name of more complex types like references.- Returns:
 - String representation of value for field
 
 - 
getValue
Get the java object representation of the field. For example, text would be String, number would be an Integer, Date would a ContentDate.- Returns:
 - String representation of value for field
 
 - 
toString
String representation of the field for debugging purposes, which includes the type. 
 -