Package org.l2x6.cq
Interface PomTransformer.Transformation
-
- Enclosing class:
- PomTransformer
public static interface PomTransformer.TransformationA transformation of a DOM
-
-
Method Summary
-
-
-
Method Detail
-
addModule
static PomTransformer.Transformation addModule(String module)
-
addProperty
static PomTransformer.Transformation addProperty(String name, String value)
-
addOrSetProperty
static PomTransformer.Transformation addOrSetProperty(String name, String value)
-
addContainerElementsIfNeeded
static PomTransformer.Transformation addContainerElementsIfNeeded(String elementName, String... furtherNames)
-
removeContainerElementIfEmpty
static PomTransformer.Transformation removeContainerElementIfEmpty(boolean removePrecedingComments, boolean removePrecedingWhitespace, boolean onlyIfEmpty, String elementName, String... furtherNames)
-
addManagedDependency
static PomTransformer.Transformation addManagedDependency(String groupId, String artifactId, String version)
-
addManagedDependency
static PomTransformer.Transformation addManagedDependency(Gavtcs gavtcs)
-
addDependencyIfNeeded
static PomTransformer.Transformation addDependencyIfNeeded(Gavtcs gavtcs, Comparator<Gavtcs> comparator)
-
updateMappedDependencies
static PomTransformer.Transformation updateMappedDependencies(Predicate<Gavtcs> isSubsetMember, Function<Gavtcs,Optional<Gavtcs>> dependencyMapper, Comparator<Gavtcs> comparator, String initialComment)
-
updateDependencySubset
static PomTransformer.Transformation updateDependencySubset(Predicate<Gavtcs> isSubsetMember, Collection<Gavtcs> newSubset, Comparator<Gavtcs> comparator, String initialComment)
-
removeModule
static PomTransformer.Transformation removeModule(boolean removePrecedingComments, boolean removePrecedingWhitespace, String module)
-
removeProperty
static PomTransformer.Transformation removeProperty(boolean removePrecedingComments, boolean removePrecedingWhitespace, String propertyName)
-
setParent
static PomTransformer.Transformation setParent(String artifactId, String relativePath)
-
addManagedPlugin
static PomTransformer.Transformation addManagedPlugin(org.apache.maven.model.Plugin plugin)
-
perform
void perform(Document document, PomTransformer.TransformationContext context)
Perform thisPomTransformer.Transformationon the givendocument- Parameters:
document- theDocumentto transformcontext- the currentPomTransformer.TransformationContext
-
-