Interface MultivalueDataHandler
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractMultivalueDataHandler
,MultivalueDateDataHandler
,MultivalueDoubleDataHandler
,MultivalueIntDataHandler
,MultivalueStringDataHandler
Handles data contained in a multivalue-InternalField.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears all values contained in the field.com.saperion.intf.SaPropertyValue
getText()
void
Reads the data from the text entered in the field.void
setObjectValue
(Object value) Sets the value of this field.void
setPropertyValue
(com.saperion.intf.SaPropertyValue value) Sets the value of this field.
-
Method Details
-
parseText
Reads the data from the text entered in the field. This methods throws an IllegalArgumentException when parsing the data failed.- Parameters:
text
- field's text
-
getText
String getText()- Returns:
- current data as string to be written to the field.
-
clear
void clear()Clears all values contained in the field. -
getObjectValue
Object getObjectValue()- Returns:
- the data handled by this datahandler as object. It will be a java.util.List.
-
setObjectValue
Sets the value of this field. Accepts a T or Collection<T>.- Parameters:
value
- to set
-
setPropertyValue
void setPropertyValue(com.saperion.intf.SaPropertyValue value) Sets the value of this field.- Parameters:
value
- property value to set
-
getPropertyValue
com.saperion.intf.SaPropertyValue getPropertyValue()- Returns:
- the values of this field as
SaPropertyValue
-