Class Action

java.lang.Object
com.almis.awe.model.entities.actions.Action
All Implemented Interfaces:
Copyable, XMLNode, Serializable

public class Action extends Object implements XMLNode, Copyable
Action Class Used to parse the Actions.xml file with XStream This class is used to parse a single action inside the file
Author:
Pablo GARCIA - 25/JUN/2010
See Also:
  • Constructor Details

    • Action

      public Action()
  • Method Details

    • getAnswer

      public Answer getAnswer(AnswerType type) throws AWException
      Returns an answer given its type
      Parameters:
      type - answer type
      Returns:
      List of action answers
      Throws:
      AWException - AWE exception
    • getAnswer

      public Answer getAnswer(String type) throws AWException
      Returns an answer given its type
      Parameters:
      type - type
      Returns:
      List of action answers
      Throws:
      AWException - AWE exception
    • getElementKey

      public String getElementKey()
      Specified by:
      getElementKey in interface XMLNode
      Returns:
      the elementKey
    • copy

      public Action copy()
      Description copied from interface: Copyable
      Get a copy of this element
      Specified by:
      copy in interface Copyable
      Returns:
      element copy