Package ro.sync.ecss.extensions.api
Interface AuthorXPathExpressionBuilder
-
@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface AuthorXPathExpressionBuilder
Generates an XPath expression for an XML node.- Since:
- 24
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthorXPathExpressionBuilder
avoidNamespacePrefixes()
Do not generate namespace prefixes.java.lang.String
getXpathExpresion()
Get the XPath expression for the specified node.AuthorXPathExpressionBuilder
processChanges(boolean processChanges)
-
-
-
Method Detail
-
processChanges
AuthorXPathExpressionBuilder processChanges(boolean processChanges)
- Parameters:
processChanges
- Iftrue
the delete changes will be ignored.- Returns:
- This instance for chaining.
-
avoidNamespacePrefixes
AuthorXPathExpressionBuilder avoidNamespacePrefixes()
Do not generate namespace prefixes.For example, intead of generating an expression like the one below that uses namespace prefixes
/db:article/db:sect1
Generate an expression that use the full namespace URI for the element.
/*[namespace-uri()='http://docbook.org/ns/docbook' and local-name()='article']/*[namespace-uri()='http://docbook.org/ns/docbook' and local-name()='sect1'][1]
- Returns:
- this instance for chaining.
-
getXpathExpresion
java.lang.String getXpathExpresion()
Get the XPath expression for the specified node.- Returns:
- XPath expression of the element for the current Node. Empty string if no XPath expression could be computed.
-
-