Class XmlValidationUtils
java.lang.Object
org.citrusframework.validation.xml.XmlValidationUtils
- Since:
- 2.3
- Author:
- Christoph Deppisch
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAttributeIgnored(Node receivedElement, Node receivedAttribute, Node sourceAttribute, Set<String> ignoreMessageElements, NamespaceContext namespaceContext) Checks whether the current attribute is ignored either by global ignore placeholder in source attribute value or by xpath ignore expressions.static booleanisElementIgnored(Node received, Set<String> ignoreExpressions, NamespaceContext namespaceContext) Checks whether the node is ignored by node path expression or xpath expression.static booleanisElementIgnored(Node source, Node received, Set<String> ignoreExpressions, NamespaceContext namespaceContext) Checks if given element node is either on ignore list or contains @ignore@ tag inside control message
-
Method Details
-
isElementIgnored
public static boolean isElementIgnored(Node source, Node received, Set<String> ignoreExpressions, NamespaceContext namespaceContext) Checks if given element node is either on ignore list or contains @ignore@ tag inside control message- Parameters:
source-received-ignoreExpressions-namespaceContext-- Returns:
-
isElementIgnored
public static boolean isElementIgnored(Node received, Set<String> ignoreExpressions, NamespaceContext namespaceContext) Checks whether the node is ignored by node path expression or xpath expression.- Parameters:
received-ignoreExpressions-namespaceContext-- Returns:
-
isAttributeIgnored
public static boolean isAttributeIgnored(Node receivedElement, Node receivedAttribute, Node sourceAttribute, Set<String> ignoreMessageElements, NamespaceContext namespaceContext) Checks whether the current attribute is ignored either by global ignore placeholder in source attribute value or by xpath ignore expressions.- Parameters:
receivedElement-receivedAttribute-ignoreMessageElements-- Returns:
-