Package org.codehaus.cargo.util
Enum XmlReplacement.ReplacementBehavior
- java.lang.Object
-
- java.lang.Enum<XmlReplacement.ReplacementBehavior>
-
- org.codehaus.cargo.util.XmlReplacement.ReplacementBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<XmlReplacement.ReplacementBehavior>
- Enclosing class:
- XmlReplacement
public static enum XmlReplacement.ReplacementBehavior extends Enum<XmlReplacement.ReplacementBehavior>
Define how the XmlReplacement behaves XPath expression doesn't match anything.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_MISSING_NODES
Add missing nodes, if the XPath only matches on any upper levelIGNORE_IF_NON_EXISTING
Continue, if the XPath can't be foundTHROW_EXCEPTION
Throw exception, if the XPath can't be found
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XmlReplacement.ReplacementBehavior
valueOf(String name)
Returns the enum constant of this type with the specified name.static XmlReplacement.ReplacementBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IGNORE_IF_NON_EXISTING
public static final XmlReplacement.ReplacementBehavior IGNORE_IF_NON_EXISTING
Continue, if the XPath can't be found
-
THROW_EXCEPTION
public static final XmlReplacement.ReplacementBehavior THROW_EXCEPTION
Throw exception, if the XPath can't be found
-
ADD_MISSING_NODES
public static final XmlReplacement.ReplacementBehavior ADD_MISSING_NODES
Add missing nodes, if the XPath only matches on any upper level
-
-
Method Detail
-
values
public static XmlReplacement.ReplacementBehavior[] 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 (XmlReplacement.ReplacementBehavior c : XmlReplacement.ReplacementBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XmlReplacement.ReplacementBehavior 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
-
-