Package org.xwiki.tool.xar
Enum Transformation.Action
- java.lang.Object
-
- java.lang.Enum<Transformation.Action>
-
- org.xwiki.tool.xar.Transformation.Action
-
- All Implemented Interfaces:
Serializable
,Comparable<Transformation.Action>
- Enclosing class:
- Transformation
public static enum Transformation.Action extends Enum<Transformation.Action>
The action to apply.- Since:
- 9.5RC1
- Version:
- $Id: 80c5aa5f49b4b41b3b09bab83cfda7aacd6bb39b $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSERT_ATTACHMENT_CONTENT
Add content of the binary base64-encoded as child of the found node.INSERT_CHILD
Add passed XML as child of the found node.INSERT_TEXT
Add content of the text file as child-text of the found node.REMOVE
Remove the found node.REPLACE
Replace the found node with passed XML.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Transformation.Action
valueOf(String name)
Returns the enum constant of this type with the specified name.static Transformation.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static Transformation.Action[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Transformation.Action c : Transformation.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Transformation.Action valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-