java.lang.Object
com.aquima.interactions.framework.handler.profile.editors.AttributeEditor

public class AttributeEditor extends Object
This class contains the implementation of the various actions that can be performed on an attribute.
Since:
5.0
Author:
Jon van Leuven
  • Constructor Details

    • AttributeEditor

      public AttributeEditor(EntityValue instance, String attribute)
      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

      public String 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

      public void prepareSetValue(String strValue)
      This method initializes the editor for a set value action.
      Parameters:
      strValue - The value that should be set in the attribute.
    • prepareAddValue

      public void prepareAddValue(String strValue)
      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

      public void perform(IProfile profile)
      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.