|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(java.util.List target)
Applies this delta as a patch to the given text. |
void |
toRCSString(java.lang.StringBuffer s,
java.lang.String EOL)
Converts this delta into its RCS style string representation. |
void |
toString(java.lang.StringBuffer s)
Converts this delta into its Unix diff style string representation. |
void |
verify(java.util.List 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(java.util.List 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(java.util.List target)
Delta
applyTo
in class Delta
target
- the text to patch.Delta.applyTo(java.util.List)
public void toString(java.lang.StringBuffer s)
Delta
toString
in class Delta
s
- a StringBuffer
to which the string representation will be
appended.Delta.toString(java.lang.StringBuffer)
public void toRCSString(java.lang.StringBuffer s, java.lang.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.StringBuffer, 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |