Enum Class Transformation.Action

java.lang.Object
java.lang.Enum<Transformation.Action>
org.xwiki.tool.xar.Transformation.Action
All Implemented Interfaces:
Serializable, Comparable<Transformation.Action>, Constable
Enclosing class:
Transformation

public static enum Transformation.Action extends Enum<Transformation.Action>
The action to apply.
Since:
9.5RC1
Version:
$Id: 80c5aa5f49b4b41b3b09bab83cfda7aacd6bb39b $
  • Enum Constant Details

    • REPLACE

      public static final Transformation.Action REPLACE
      Replace the found node with passed XML.
    • REMOVE

      public static final Transformation.Action REMOVE
      Remove the found node.
    • INSERT_CHILD

      public static final Transformation.Action INSERT_CHILD
      Add passed XML as child of the found node.
    • INSERT_TEXT

      public static final Transformation.Action INSERT_TEXT
      Add content of the text file as child-text of the found node.
      Since:
      11.4RC1
    • INSERT_ATTACHMENT_CONTENT

      public static final Transformation.Action INSERT_ATTACHMENT_CONTENT
      Add content of the binary base64-encoded as child of the found node.
      Since:
      11.4RC1
  • Method Details

    • values

      public static Transformation.Action[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Transformation.Action valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null