Package io.quarkus.maven.utilities
Class PomTransformer.TransformationContext
java.lang.Object
io.quarkus.maven.utilities.PomTransformer.TransformationContext
- Enclosing class:
PomTransformer
A context of a set of
PomTransformer.Transformations.-
Constructor Summary
ConstructorsConstructorDescriptionTransformationContext(Path pomXmlPath, Document document, String indentationString, XPath xPath) -
Method Summary
Modifier and TypeMethodDescriptiongetXPath()indent(int indentCount) textElement(String elementName, String value)
-
Constructor Details
-
TransformationContext
-
-
Method Details
-
getPomXmlPath
- Returns:
- the path to the
pom.xmlfile that is being transformed
-
getXPath
- Returns:
- an
XPathinstance that can be used for querying the DOM of the transformedpom.xmlfile
-
getIndentationString
- Returns:
- an indentation string (without newline characters) as it was autodetected using
PomTransformer.detectIndentation(Node, XPath)
-
indent
- Parameters:
indentCount-- Returns:
- a new indentation node containing a newline and
indentCounttimes concatenatedindentationString
-
textElement
-