|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.diff.ToString
org.apache.wicket.util.diff.Delta
org.apache.wicket.util.diff.AddDelta
public class AddDelta
Holds an add-delta between to revisions of a text.
Delta,
Diff,
Chunk| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.util.diff.Delta |
|---|
original, revised |
| Constructor Summary | |
|---|---|
AddDelta(int origpos,
Chunk rev)
Construct. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.wicket.util.diff.Delta |
|---|
getOriginal, getRevised, init, newDelta, patch, toRCSString |
| Methods inherited from class org.apache.wicket.util.diff.ToString |
|---|
arrayToString, arrayToString, stringToArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AddDelta(int origpos,
Chunk rev)
origpos - rev - | Method Detail |
|---|
public void verify(List<Object> target)
throws PatchFailedException
Delta
verify 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)
Delta
applyTo in class Deltatarget - the text to patch.Delta.applyTo(java.util.List)public void toString(StringBuilder s)
Delta
toString 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)
Delta
toRCSString 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||