Class PomModifications.Deletion
java.lang.Object
org.technologybrewery.baton.util.pom.PomModifications.Modification
org.technologybrewery.baton.util.pom.PomModifications.Deletion
- All Implemented Interfaces:
Comparable<PomModifications.Modification>
- Enclosing class:
- PomModifications
Advances 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. I.e., any content on the first line before the
start of the location, and any content on the last line after the end of the location, is written to the output
writer.
-
Constructor Summary
ConstructorsConstructorDescriptionDeletion(org.apache.maven.model.InputLocation start, org.apache.maven.model.InputLocation end) Constructor to delete content between the given start and end parameters. -
Method Summary
Methods inherited from class org.technologybrewery.baton.util.pom.PomModifications.Modification
compareTo, getStart
-
Constructor Details
-
Deletion
public Deletion(org.apache.maven.model.InputLocation start, org.apache.maven.model.InputLocation end) Constructor to delete content between the given start and end parameters.- Parameters:
start- the location to begin deleting POM file content (inclusive).end- the location to stop deleting POM file content (exclusive).- See Also:
-
InputLocation
-
-
Method Details
-
getEnd
public org.apache.maven.model.InputLocation getEnd() -
apply
- Specified by:
applyin classPomModifications.Modification- Throws:
IOException
-
equals
- Overrides:
equalsin classPomModifications.Modification
-