class Path
extends java.lang.Object
Archive,
Node| Constructor and Description |
|---|
Path()
Creates an empty Path
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Node node)
Add a node to the Path.
|
Node |
last()
Return the last node in the path or null if the path is empty.
|
java.util.List |
newpatch(java.util.List<Line> lines,
boolean annotate) |
java.util.List |
patch()
Returns the text that corresponds to applying the patches
in the list of nodes in the Path.
|
java.util.List |
patch(boolean annotate)
Returns the text that corresponds to applying the patches
in the list of nodes in the Path.
|
java.util.List |
patch(java.util.List lines)
Returns the text that corresponds to applying the patches
in the list of nodes in the Path.
|
java.util.List |
patch(java.util.List lines,
boolean annotate)
Returns the text that corresponds to applying the patches
in the list of nodes in the Path.
|
int |
size()
The size of the Path.
|
private java.util.List<Node> path
public void add(Node node)
node - The Node to add.public int size()
public Node last()
public java.util.List patch()
throws InvalidFileFormatException,
PatchFailedException,
NodeNotFoundException
InvalidFileFormatExceptionPatchFailedExceptionNodeNotFoundExceptionpublic java.util.List patch(boolean annotate)
throws InvalidFileFormatException,
PatchFailedException,
NodeNotFoundException
annotate - if true, then each text line is a
Line with the original text annotated with
the revision in which it was last changed or added.InvalidFileFormatExceptionPatchFailedExceptionNodeNotFoundExceptionpublic java.util.List patch(java.util.List lines)
throws InvalidFileFormatException,
PatchFailedException,
NodeNotFoundException
lines - The list to where the text must be added and the
patches applied.
Line with the original text annotated with
the revision in which it was last changed or added.InvalidFileFormatExceptionPatchFailedExceptionNodeNotFoundExceptionpublic java.util.List patch(java.util.List lines,
boolean annotate)
throws InvalidFileFormatException,
PatchFailedException,
NodeNotFoundException
lines - The list to where the text must be added and the
patches applied.annotate - if true, then each text line is a
Line with the original text annotated with
the revision in which it was last changed or added.InvalidFileFormatExceptionPatchFailedExceptionNodeNotFoundExceptionpublic java.util.List newpatch(java.util.List<Line> lines, boolean annotate) throws InvalidFileFormatException, PatchFailedException
Copyright 2002 the Apache Software Foundation
Copyright ? 1999-2001 Juancarlo A?ez, Caracas, Venezuela.
All rights reserved
. http://www.suigeneris.org/jrcs