Interface MetisFieldItem.MetisFieldDef
- All Known Subinterfaces:
MetisFieldItem.MetisFieldVersionedDef
- All Known Implementing Classes:
MetisField,MetisFieldVersioned,PrometheusEncryptedField
- Enclosing interface:
MetisFieldItem
public static interface MetisFieldItem.MetisFieldDef
Field interface.
-
Method Summary
Modifier and TypeMethodDescriptionGet the dataType of the field.Obtain the id of the field.getFieldValue(Object pObject) Obtain the value of a field.<X> XgetFieldValue(Object pObject, Class<X> pClazz) Obtain the value of a field cast to a particular class.Get the maximum length.booleanIs the field calculated?
-
Method Details
-
getFieldId
MetisDataItem.MetisDataFieldId getFieldId()Obtain the id of the field.- Returns:
- the name of the field.
-
getDataType
MetisDataType getDataType()Get the dataType of the field.- Returns:
- the dataType
-
getMaxLength
Integer getMaxLength()Get the maximum length.- Returns:
- the maxLength
-
isCalculated
boolean isCalculated()Is the field calculated?- Returns:
- true/false
-
getFieldValue
Obtain the value of a field.- Parameters:
pObject- the object- Returns:
- the value
-
getFieldValue
Obtain the value of a field cast to a particular class.- Type Parameters:
X- the value type- Parameters:
pObject- the objectpClazz- the class of the value- Returns:
- the value
-