public class ChangeDelta extends Delta
Delta,
Diff,
Chunk| Constructor and Description |
|---|
ChangeDelta(Chunk orig,
Chunk rev)
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, toRCSStringarrayToString, arrayToString, stringToArray, toStringpublic void verify(List<Object> target) throws PatchFailedException
Deltaverify in class Deltatarget - the text to patch.PatchFailedException - if the patch cannot be applied.Delta.verify(java.util.List)public void applyTo(List<Object> target)
DeltaapplyTo in class Deltatarget - the text to patch.Delta.applyTo(java.util.List)public void toString(StringBuilder s)
DeltatoString in class Deltas - a StringBuffer to which the string representation will be
appended.org.apache.wicket.util.diff.Delta#toString(java.lang.StringBuffer)public void toRCSString(StringBuilder s, String EOL)
DeltatoRCSString in class Deltas - a StringBuffer to which the string representation will be
appended.EOL - the string to use as line separator.org.apache.wicket.util.diff.Delta#toRCSString(java.lang.StringBuffer, java.lang.String)public void accept(RevisionVisitor visitor)
DeltaSee the Visitor pattern in "Design Patterns" by the GOF4.
accept in class Deltavisitor - The visitor.Delta.accept(org.apache.wicket.util.diff.RevisionVisitor)Copyright © 2006–2014 Apache Software Foundation. All rights reserved.