public class DomXmlEnsure
extends org.camunda.commons.utils.EnsureUtil
| Constructor and Description |
|---|
DomXmlEnsure() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureChildElement(DomXmlElement parentElement,
DomXmlElement childElement)
Ensures that the element is child element of the parent element.
|
static void |
ensureNotDocumentRootExpression(java.lang.String expression)
Ensures that the expression is not the root expression '/'.
|
static void |
ensureXPathNotEmpty(org.w3c.dom.NodeList nodeList,
java.lang.String expression)
Ensure that the nodeList is either null or empty.
|
static void |
ensureXPathNotNull(org.w3c.dom.Node node,
java.lang.String expression)
Ensure that the node is not null.
|
public static void ensureChildElement(DomXmlElement parentElement, DomXmlElement childElement)
parentElement - the parent xml dom elementchildElement - the child elementSpinXmlElementException - if the element is not child of the parent elementpublic static void ensureNotDocumentRootExpression(java.lang.String expression)
expression - the expression to ensure to be not the root expression '/'SpinXPathException - if the expression is the root expression '/'public static void ensureXPathNotNull(org.w3c.dom.Node node,
java.lang.String expression)
node - the node to ensure to be not nullexpression - the expression was used to find the nodeSpinXPathException - if the node is nullpublic static void ensureXPathNotEmpty(org.w3c.dom.NodeList nodeList,
java.lang.String expression)
nodeList - the nodeList to ensure to be either null or emptyexpression - the expression was used to fine the nodeListSpinXPathException - if the nodeList is either null or emptyCopyright © 2014–2023 Camunda Services GmbH. All rights reserved.