Package org.xmlunit.placeholder
Class IgnorePlaceholderHandler
- java.lang.Object
-
- org.xmlunit.placeholder.IgnorePlaceholderHandler
-
- All Implemented Interfaces:
PlaceholderHandler
public class IgnorePlaceholderHandler extends java.lang.Object implements PlaceholderHandler
Handler for the "ignore" placeholder keyword.This class and the whole module are considered experimental and any API may change between releases of XMLUnit.
Text nodes or attributes containing
${xmlunit.ignore}
will be ignored.- Since:
- 2.6.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
PLACEHOLDER_NAME_IGNORE
-
Constructor Summary
Constructors Constructor Description IgnorePlaceholderHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonResult
evaluate(java.lang.String testText)
Evaluate the test value when control contained the placeholder handled by this class.java.lang.String
getKeyword()
The placeholder keyword this handler is responsible for.
-
-
-
Field Detail
-
PLACEHOLDER_NAME_IGNORE
private static final java.lang.String PLACEHOLDER_NAME_IGNORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKeyword
public java.lang.String getKeyword()
Description copied from interface:PlaceholderHandler
The placeholder keyword this handler is responsible for.- Specified by:
getKeyword
in interfacePlaceholderHandler
-
evaluate
public ComparisonResult evaluate(java.lang.String testText)
Description copied from interface:PlaceholderHandler
Evaluate the test value when control contained the placeholder handled by this class.- Specified by:
evaluate
in interfacePlaceholderHandler
-
-