Package org.xwiki.tool.xar
Enum Class Transformation.Action
- All Implemented Interfaces:
Serializable
,Comparable<Transformation.Action>
,Constable
- Enclosing class:
- Transformation
The action to apply.
- Since:
- 9.5RC1
- Version:
- $Id: 80c5aa5f49b4b41b3b09bab83cfda7aacd6bb39b $
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdd content of the binary base64-encoded as child of the found node.Add passed XML as child of the found node.Add content of the text file as child-text of the found node.Remove the found node.Replace the found node with passed XML. -
Method Summary
Modifier and TypeMethodDescriptionstatic Transformation.Action
Returns the enum constant of this class with the specified name.static Transformation.Action[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REPLACE
Replace the found node with passed XML. -
REMOVE
Remove 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.- Since:
- 11.4RC1
-
INSERT_ATTACHMENT_CONTENT
Add content of the binary base64-encoded as child of the found node.- Since:
- 11.4RC1
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-