Class AttributeEditor
java.lang.Object
com.aquima.interactions.framework.handler.profile.editors.AttributeEditor
This class contains the implementation of the various actions that can be performed on an attribute.
- Since:
- 5.0
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeEditor
(EntityValue instance, String attribute) Constructs the editor with the required parameters. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the name of the attribute the action is defined for.void
This method executes the action on the profile.void
prepareAddValue
(String strValue) This method initializes the editor for an add value action.void
This method initialized the editor for a clear action.void
prepareSetValue
(String strValue) This method initializes the editor for a set value action.void
This method resets the editor, clearing any action information that was previously set.
-
Constructor Details
-
AttributeEditor
Constructs the editor with the required parameters.- Parameters:
instance
- The ID of instance containing the attribute.attribute
- The attribute the action should be performed on.
-
-
Method Details
-
getAttributeName
This method returns the name of the attribute the action is defined for.- Returns:
- the name of the attribute the action is defined for.
-
prepareClearValue
public void prepareClearValue()This method initialized the editor for a clear action. -
prepareSetValue
This method initializes the editor for a set value action.- Parameters:
strValue
- The value that should be set in the attribute.
-
prepareAddValue
This method initializes the editor for an add value action.- Parameters:
strValue
- The value that should be added.
-
resetAction
public void resetAction()This method resets the editor, clearing any action information that was previously set. -
perform
This method executes the action on the profile.- Parameters:
profile
- The profile that should be used to perform the action on.- Throws:
AppException
- This exception is thrown when the action could not be performed.
-