|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jrcs.util.ToString
org.apache.commons.jrcs.rcs.Node
org.apache.commons.jrcs.rcs.BranchNode
class BranchNode
Represents a branch node in a version control archive. This class is NOT thread safe.
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
,
Archive
Field Summary |
---|
Fields inherited from class org.apache.commons.jrcs.rcs.Node |
---|
author, branches, child, date, dateFormat, dateFormat2K, dateFormatter, endWithNewLine, locker, log, parent, phrases, rcsnext, state, text, version |
Constructor Summary | |
---|---|
BranchNode(Version vernum,
BranchNode next)
Create a BranchNode with the given version number. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.commons.jrcs.rcs.Node |
---|
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, toText |
Methods inherited from class org.apache.commons.jrcs.util.ToString |
---|
arrayToString, arrayToString, stringToArray, stringToArraya, stringToArrayold, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
BranchNode(Version vernum, BranchNode next)
vernum
- the version number for the nodenext
- the next node in the logical RCS hierarchy.Method Detail |
---|
public BranchNode getLeafNode()
public void setRCSNext(Node node)
setRCSNext
in class Node
node
- The next node in the RCS logical hierarchy.public Node deltaRevision()
Node
For 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 Node
public Node nextInPathTo(Version vernum, boolean soft) throws NodeNotFoundException
Node
nextInPathTo
in class Node
vernum
- 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.Path
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |