class BranchNode extends Node
A BranchNode stores the deltas between the previous revision
and the current revision; that is, when the deltas are applied
to the previous revision, the text of the current revision is obtained.
The rcsnext field of a BranchNode points to
the next revision in the branch.
Node,
Archiveauthor, branches, child, date, dateFormat, dateFormat2K, dateFormatter, endWithNewLine, locker, log, parent, phrases, rcsnext, state, text, version| Constructor and Description |
|---|
BranchNode(Version vernum,
BranchNode next)
Create a BranchNode with the given version number.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
BranchNode |
getLeafNode()
Return the last (leaf) node in the branch this node belongs to.
|
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.
|
void |
setRCSNext(Node node)
Set the next node in the RCS logical hierarcy.
|
addBranch, compareTo, getAuthor, getBranch, getBranches, getChild, getDate, getLocker, getLog, getParent, getPhrases, getRCSNext, getState, getText, getTextLines, getTextLines, getTextLines, getTextLines, getVersion, isGhost, newBranchVersion, newNode, newNode, newpatch, nextVersion, patch, patch, pathTo, pathTo, root, setAuthor, setDate, setLocker, setLog, setState, setText, setText, toString, toString, toText, toTextarrayToString, arrayToString, stringToArray, stringToArraya, stringToArrayold, toStringBranchNode(Version vernum, BranchNode next)
vernum - the version number for the nodenext - the next node in the logical RCS hierarchy.public BranchNode getLeafNode()
public void setRCSNext(Node node)
setRCSNext in class Nodenode - The next node in the RCS logical hierarchy.public Node deltaRevision()
NodeFor a BranchNode the deltaRevision is the
current revision; that is, after the deltas are applied, the text for
the current revision is obtained.
For a TrunkNode the deltaRevision is the
next revision; that is, after the deltas are applied, the text obtained
corresponds to the next revision in the chain.
deltaRevision in class Nodepublic Node nextInPathTo(Version vernum, boolean soft) throws NodeNotFoundException
NodenextInPathTo in class Nodevernum - The version number of the last node in the path.soft - If true, no error is thrown if a node with the given
version doesn't exist. Use soft=true to find a apth to where a new
node should be added.NodeNotFoundException - if a node with the given version number
is not reachable following the RCS-next chain from this node.
If soft=false the exception is also thrown if a node with the given
version number doesn't exist.PathCopyright 2002 the Apache Software Foundation
Copyright ? 1999-2001 Juancarlo A?ez, Caracas, Venezuela.
All rights reserved
. http://www.suigeneris.org/jrcs