| org.apache.commons.jrcs.rcs.Node org.apache.commons.jrcs.rcs.BranchNode
BranchNode | class BranchNode extends Node (Code) | | Represents a branch node in a version control archive.
This class is NOT thread safe.
A
BranchNode 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
Node.rcsnext rcsnext field of a BranchNode points to
the next revision in the branch.
See Also: Node See Also: Archive author: Juanco Anez version: $Id: BranchNode.java 2967 2005-10-26 10:52:33Z ian@caret.cam.ac.uk $ |
BranchNode | BranchNode(Version vernum, BranchNode next)(Code) | | Create a BranchNode with the given version number.
The next field in a Branch node points to the next higher
revision on the same branch.
Parameters: vernum - the version number for the node Parameters: next - the next node in the logical RCS hierarchy. |
getLeafNode | public BranchNode getLeafNode()(Code) | | Return the last (leaf) node in the branch this node belongs to.
The leaf node. |
setRCSNext | public void setRCSNext(Node node)(Code) | | Set the next node in the RCS logical hierarcy.
Update the _parent and _child node accordingly.
For BranchNodes, the RCS-next is a child, that is,
a node with a larger version number.
|
Methods inherited from org.apache.commons.jrcs.rcs.Node | public void addBranch(BranchNode node) throws InvalidVersionNumberException(Code)(Java Doc) public int compareTo(Object other)(Code)(Java Doc) abstract public Node deltaRevision()(Code)(Java Doc) final public String getAuthor()(Code)(Java Doc) public BranchNode getBranch(int no)(Code)(Java Doc) final public TreeMap getBranches()(Code)(Java Doc) final public Node getChild()(Code)(Java Doc) final public Date getDate()(Code)(Java Doc) final public String getLocker()(Code)(Java Doc) final public String getLog()(Code)(Java Doc) final public Node getParent()(Code)(Java Doc) public Phrases getPhrases()(Code)(Java Doc) public Node getRCSNext()(Code)(Java Doc) final public String getState()(Code)(Java Doc) final public Object[] getText()(Code)(Java Doc) public List getTextLines()(Code)(Java Doc) public List getTextLines(int from, int to)(Code)(Java Doc) public List getTextLines(List lines)(Code)(Java Doc) public List getTextLines(List lines, int from, int to)(Code)(Java Doc) final public Version getVersion()(Code)(Java Doc) public boolean isGhost()(Code)(Java Doc) public Version newBranchVersion()(Code)(Java Doc) static Node newNode(Version vernum, Node rcsnext) throws InvalidVersionNumberException(Code)(Java Doc) static Node newNode(Version vernum) throws InvalidVersionNumberException(Code)(Java Doc) abstract public Node nextInPathTo(Version vernum, boolean soft) throws NodeNotFoundException(Code)(Java Doc) public Version nextVersion()(Code)(Java Doc) public void patch(List original) throws InvalidFileFormatException, PatchFailedException(Code)(Java Doc) public void patch(List original, boolean annotate) throws InvalidFileFormatException, org.apache.commons.jrcs.diff.PatchFailedException(Code)(Java Doc) public Path pathTo(Version vernum) throws NodeNotFoundException(Code)(Java Doc) public Path pathTo(Version vernum, boolean soft) throws NodeNotFoundException(Code)(Java Doc) public Node root()(Code)(Java Doc) public void setAuthor(String user)(Code)(Java Doc) public void setDate(int[] value)(Code)(Java Doc) public void setLocker(String user)(Code)(Java Doc) public void setLog(String value)(Code)(Java Doc) public void setRCSNext(Node node)(Code)(Java Doc) public void setState(String value)(Code)(Java Doc) public void setText(String value)(Code)(Java Doc) public void setText(Object[] value)(Code)(Java Doc) public void toString(StringBuffer s)(Code)(Java Doc) public void toString(StringBuffer s, String EOL)(Code)(Java Doc) public String toText()(Code)(Java Doc) public void toText(StringBuffer s, String EOL)(Code)(Java Doc)
|
|
|