java.lang.Object
org.apache.wicket.util.diff.ToString
org.apache.wicket.util.diff.Delta
org.apache.wicket.util.diff.ChangeDelta
Holds an change-delta between to revisions of a text.
- Version:
- $Id: ChangeDelta.java,v 1.1 2006/03/12 00:24:21 juanca Exp $
- Author:
- Juanco Anez
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RevisionVisitor visitor) Accepts a visitor.voidApplies this delta as a patch to the given text.voidtoRCSString(StringBuilder s, String EOL) Converts this delta into its RCS style string representation.voidConverts this delta into its Unix diff style string representation.voidVerifies 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, toRCSStringMethods inherited from class org.apache.wicket.util.diff.ToString
arrayToString, arrayToString, stringToArray, toString
-
Constructor Details
-
ChangeDelta
Construct.- Parameters:
orig-rev-
-
-
Method Details
-
verify
Description copied from class:DeltaVerifies that this delta can be used to patch the given text.- Specified by:
verifyin classDelta- Parameters:
target- the text to patch.- Throws:
PatchFailedException- if the patch cannot be applied.
-
applyTo
Description copied from class:DeltaApplies this delta as a patch to the given text. -
toString
Description copied from class:DeltaConverts this delta into its Unix diff style string representation.- Overrides:
toStringin classDelta- Parameters:
s- aStringBufferto which the string representation will be appended.
-
toRCSString
Description copied from class:DeltaConverts this delta into its RCS style string representation.- Specified by:
toRCSStringin classDelta- Parameters:
s- aStringBufferto which the string representation will be appended.EOL- the string to use as line separator.
-
accept
Description copied from class:DeltaAccepts a visitor.See the Visitor pattern in "Design Patterns" by the GOF4.
-