Class PomModifications
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.TreeSet<PomModifications.Modification>
-
- org.technologybrewery.baton.util.pom.PomModifications
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<PomModifications.Modification>,Collection<PomModifications.Modification>,NavigableSet<PomModifications.Modification>,Set<PomModifications.Modification>,SortedSet<PomModifications.Modification>
public final class PomModifications extends TreeSet<PomModifications.Modification>
Tracks and applies modifications to a Maven POM file "in-place" to preserve formatting.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPomModifications.DeletionAdvances the input reader to the line at the specified end location, writing only the content that is not between the start location and the end location to the output writer.static classPomModifications.FinalA class to iteratively apply a series of POM file modifications.static classPomModifications.InsertionInserts the produced content at the specified start line and before the existing content on that line.static classPomModifications.ModificationThe abstract class by which all POM file modifications inherit from.static classPomModifications.ReplacementReplaces the content between the start and end locations with the produced content.
-
Constructor Summary
Constructors Constructor Description PomModifications()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PomModifications.FinalfinalizeMods()Returns an instance of the Final class configure with an iterable of all loaded POM file modifications.-
Methods inherited from class java.util.TreeSet
add, addAll, ceiling, clear, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, remove, size, spliterator, subSet, subSet, tailSet, tailSet
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
finalizeMods
public PomModifications.Final finalizeMods()
Returns an instance of the Final class configure with an iterable of all loaded POM file modifications.- See Also:
PomModifications.Final
-
-