Class PomModifications.Modification
java.lang.Object
org.technologybrewery.baton.util.pom.PomModifications.Modification
- All Implemented Interfaces:
Comparable<PomModifications.Modification>
- Direct Known Subclasses:
PomModifications.Deletion,PomModifications.Insertion,PomModifications.Replacement
- Enclosing class:
- PomModifications
public abstract static class PomModifications.Modification
extends Object
implements Comparable<PomModifications.Modification>
The abstract class by which all POM file modifications inherit from.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModification(org.apache.maven.model.InputLocation start) The constructor accepts an InputLocation type representing the line and column of the file where modifications will start being applied. -
Method Summary
Modifier and TypeMethodDescriptionabstract intapply(BufferedReader in, Writer out, String currentLine) intbooleanorg.apache.maven.model.InputLocationgetStart()
-
Constructor Details
-
Modification
protected Modification(org.apache.maven.model.InputLocation start) The constructor accepts an InputLocation type representing the line and column of the file where modifications will start being applied.- Parameters:
start- the location to begin modifying the content.- See Also:
-
InputLocation
-
-
Method Details
-
getStart
public org.apache.maven.model.InputLocation getStart() -
apply
- Throws:
IOException
-
compareTo
- Specified by:
compareToin interfaceComparable<PomModifications.Modification>
-
equals
-