public class DeleteDelta extends Delta
Delta
,
Diff
,
Chunk
Constructor and Description |
---|
DeleteDelta(Chunk orig)
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(RevisionVisitor visitor)
Accepts a visitor.
|
void |
applyTo(List<Object> target)
Applies this delta as a patch to the given text.
|
void |
toRCSString(StringBuilder s,
String EOL)
Converts this delta into its RCS style string representation.
|
void |
toString(StringBuilder s)
Converts this delta into its Unix diff style string representation.
|
void |
verify(List<Object> target)
Verifies that this delta can be used to patch the given text.
|
getOriginal, getRevised, init, newDelta, patch, toRCSString
arrayToString, arrayToString, stringToArray, toString
public DeleteDelta(Chunk orig)
orig
- public void verify(List<Object> target) throws PatchFailedException
Delta
verify
in class Delta
target
- the text to patch.PatchFailedException
- if the patch cannot be applied.Delta.verify(java.util.List)
public void applyTo(List<Object> target)
Delta
applyTo
in class Delta
target
- the text to patch.Delta.applyTo(java.util.List)
public void toString(StringBuilder s)
Delta
toString
in class Delta
s
- a StringBuffer
to which the string representation will be
appended.Delta.toString(java.lang.StringBuilder)
public void toRCSString(StringBuilder s, String EOL)
Delta
toRCSString
in class Delta
s
- a StringBuffer
to which the string representation will be
appended.EOL
- the string to use as line separator.Delta.toRCSString(java.lang.StringBuilder, java.lang.String)
public void accept(RevisionVisitor visitor)
Delta
See the Visitor pattern in "Design Patterns" by the GOF4.
accept
in class Delta
visitor
- The visitor.Delta.accept(org.apache.wicket.util.diff.RevisionVisitor)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.