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
Constructors Modifier Constructor Description protectedModification(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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intapply(BufferedReader in, Writer out, String currentLine)intcompareTo(PomModifications.Modification o)booleanequals(Object obj)org.apache.maven.model.InputLocationgetStart()
-
-
-
Constructor Detail
-
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 Detail
-
getStart
public org.apache.maven.model.InputLocation getStart()
-
apply
public abstract int apply(BufferedReader in, Writer out, String currentLine) throws IOException
- Throws:
IOException
-
compareTo
public int compareTo(PomModifications.Modification o)
- Specified by:
compareToin interfaceComparable<PomModifications.Modification>
-
-