Method Summary |
|
public void | addBranch(BranchNode node) Adds a branch node to the current node. |
public int | compareTo(Object other) Compares the version number of this node to that of another node.
Parameters: other - The node to compare two. |
abstract public Node | deltaRevision() Returns the Node with the version number that corresponds to
the revision to be obtained after the deltas in the current node
are applied. |
final public String | getAuthor() |
public BranchNode | getBranch(int no) Retrieve the branch node identified with
the given numer.
Parameters: no - The branch number. |
final public TreeMap | getBranches() |
final public Node | getChild() |
final public Date | getDate() |
final public String | getLocker() |
final public String | getLog() |
final public Node | getParent() |
public Phrases | getPhrases() |
public Node | getRCSNext() Return the next node in the RCS logical hierarchy. |
final public String | getState() |
final public Object[] | getText() |
public List | getTextLines() Return a list with the lines of the node's text. |
public List | getTextLines(int from, int to) Return a list with a subset of the lines of the node's text.
Parameters: from - The offset of the first line to retrieve. Parameters: to - The offset of the line after the last one to retrieve. |
public List | getTextLines(List lines) Add a subset of the lines of the node's text to the given list. |
public List | getTextLines(List lines, int from, int to) Add a subset of the lines of the node's text to the given list.
Parameters: from - The offset of the first line to retrieve. Parameters: to - The offset of the line after the last one to retrieve. |
final public Version | getVersion() |
public boolean | isGhost() Returns true if the node is a "ghost" node.
Ghost nodes have no associated text ot deltas. |
public Version | newBranchVersion() Returns the version number that should correspond to a newly
created branch of this node. |
static Node | newNode(Version vernum, Node rcsnext) Creates a new node of the adequate type for the given version number.
Parameters: vernum - The version number for the node. Parameters: rcsnext - The next node in the RCS logical hierarchy. |
static Node | newNode(Version vernum) Creates a new node of the adequate type for the given version number.
Parameters: vernum - The version number for the node. |
abstract public Node | nextInPathTo(Version vernum, boolean soft) Returns the next node in the path from the current node to the node
identified by the given version.
Parameters: vernum - The version number of the last node in the path. Parameters: soft - If true, no error is thrown if a node with the givenversion doesn't exist. |
public Version | nextVersion() Returns the version number that should correspond to
the revision folowing this node. |
public void | patch(List original) Apply the deltas in the current node to the given text. |
public void | patch(List original, boolean annotate) Apply the deltas in the current node to the given text. |
public Path | pathTo(Version vernum) Returns the path from the current node to the node
identified by the given version.
Parameters: vernum - The version number of the last node in the path. |
public Path | pathTo(Version vernum, boolean soft) Returns the path from the current node to the node
identified by the given version.
Parameters: vernum - The version number of the last node in the path. Parameters: soft - If true, no error is thrown if a node with the givenversion doesn't exist. |
public Node | root() Return the root node of the node hierarchy. |
public void | setAuthor(String user) Set the author of the node's revision. |
public void | setDate(int[] value) Set the date of the node's revision. |
public void | setLocker(String user) Set the locker. |
public void | setLog(String value) Sets the log message for the node's revision. |
public void | setRCSNext(Node node) Sets the next node in the RCS logical hierarchy. |
public void | setState(String value) Sets the state of the node's revision.
Parameters: value - A symbol that identifies the state. |
public void | setText(String value) Sets the text for the node's revision. |
public void | setText(Object[] value) Sets the text for the node's revision. |
public void | toString(StringBuffer s) Conver the current node and all of its branches
to their RCS string representation and
add it to the given StringBuffer. |
public void | toString(StringBuffer s, String EOL) Conver the current node and all of its branches
to their RCS string representation and
add it to the given StringBuffer using the given marker as
line separator. |
public String | toText() Conver the urrent node to its RCS string representation. |
public void | toText(StringBuffer s, String EOL) Conver the urrent node to its RCS string representation and
add it to the given StringBuffer using the given marker as
line separator. |