Class ActionUnknownTagCreate

All Implemented Interfaces:
IAction, IRuntimeAction

public class ActionUnknownTagCreate extends ActionUnknownTag
  • Constructor Details

    • ActionUnknownTagCreate

      public ActionUnknownTagCreate(UnknownTag theTag)
  • Method Details

    • apply

      public void apply()
      Description copied from interface: IAction
      Applies the action, executing all code necessary.
    • validate

      public boolean validate(org.apache.logging.log4j.Logger logger)
      Description copied from interface: IAction
      Validates the action, ensuring no erroneous information is present.

      Implementations should validate all action information and log errors using the provided Logger if anything is incorrect. It is highly suggested to specify exactly what is wrong in the most precise yet brief way possible, to ensure script writers know why their actions are not being applied.

      If validation fails for whatever reason, IAction.apply() will not be called.

      Specified by:
      validate in interface IAction
      Overrides:
      validate in class ActionTag<UnknownTag,UnknownTagManager>
      Parameters:
      logger - Logger object on which to log errors or warnings.
      Returns:
      Whether the action is valid (true) or not (false).
    • describe

      public String describe()
      Description copied from interface: IAction
      Gets a human-readable description of the action.

      This message is used for logging and to surface information to the user when something goes wrong. It is thus customary to describe the action as accurately as possible without being too verbose.

      It is not allowed to return a null or otherwise empty description for the action: doing so will raise an error at runtime.

      Returns:
      A description of the current action.