Package org.apache.wicket.util.diff
Class AddDelta
- java.lang.Object
-
- org.apache.wicket.util.diff.ToString
-
- org.apache.wicket.util.diff.Delta
-
- org.apache.wicket.util.diff.AddDelta
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
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
-
-
-
-
Method Detail
-
verify
public void verify(List<Object> target) throws PatchFailedException
Description copied from class:Delta
Verifies that this delta can be used to patch the given text.- Specified by:
verify
in classDelta
- Parameters:
target
- the text to patch.- Throws:
PatchFailedException
- if the patch cannot be applied.
-
applyTo
public void applyTo(List<Object> target)
Description copied from class:Delta
Applies this delta as a patch to the given text.
-
toString
public void toString(StringBuilder s)
Description copied from class:Delta
Converts this delta into its Unix diff style string representation.- Overrides:
toString
in classDelta
- Parameters:
s
- aStringBuffer
to which the string representation will be appended.
-
toRCSString
public void toRCSString(StringBuilder s, String EOL)
Description copied from class:Delta
Converts this delta into its RCS style string representation.- Specified by:
toRCSString
in classDelta
- Parameters:
s
- aStringBuffer
to which the string representation will be appended.EOL
- the string to use as line separator.
-
accept
public void accept(RevisionVisitor visitor)
Description copied from class:Delta
Accepts a visitor.See the Visitor pattern in "Design Patterns" by the GOF4.
-
-