org.sourcejammer.project.controller
Class BranchNode

java.lang.Object
  |
  +--org.sourcejammer.project.controller.BranchNode
Direct Known Subclasses:
MasterFileNode

public class BranchNode
extends java.lang.Object

Title: $FileName: BranchNode.java$

Version:
$VerNum: 7$
Author:
$AuthorName: Rob MacGrogan$

$Description: $
$KeyWordsOff: $

Field Summary
private  java.util.ArrayList children
           
private  long fileID
           
private  java.lang.String identifier
           
private  long initialVersionID
           
private  BranchNode parent
           
 
Constructor Summary
BranchNode()
           
 
Method Summary
 void addBranchNode(BranchNode node, long key)
           
protected  void applyIndex(BranchNode branch)
           
 void checkKey(long key)
           
 BranchNode getBranchNode(int index)
           
 org.sourcejammer.project.view.Branch getBranchView()
           
 long getFileID()
          Returns the fileID.
 java.lang.String getIdentifier()
          Returns the identifier.
 long getInitialVersionID()
          Returns the initialVersionID.
protected  boolean isIdentifierUnique(java.lang.String identifier)
           
 void setFileID(long fileID)
          Sets the fileID.
 void setIdentifier(java.lang.String identifier)
          Sets the identifier.
 void setInitialVersionID(long initialVersionID)
          Sets the initialVersionID.
protected  void setParent(BranchNode node)
           
 java.util.Iterator subBranches()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifier

private java.lang.String identifier

fileID

private long fileID

initialVersionID

private long initialVersionID

children

private java.util.ArrayList children

parent

private BranchNode parent
Constructor Detail

BranchNode

public BranchNode()
Method Detail

getBranchView

public org.sourcejammer.project.view.Branch getBranchView()

applyIndex

protected void applyIndex(BranchNode branch)

addBranchNode

public void addBranchNode(BranchNode node,
                          long key)
                   throws org.sourcejammer.project.NodeExistsException
org.sourcejammer.project.NodeExistsException

checkKey

public void checkKey(long key)

subBranches

public java.util.Iterator subBranches()

setParent

protected void setParent(BranchNode node)

isIdentifierUnique

protected boolean isIdentifierUnique(java.lang.String identifier)

getBranchNode

public BranchNode getBranchNode(int index)
                         throws org.sourcejammer.project.NodeDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException

getFileID

public long getFileID()
Returns the fileID.

Returns:
long

getIdentifier

public java.lang.String getIdentifier()
Returns the identifier.

Returns:
String

getInitialVersionID

public long getInitialVersionID()
Returns the initialVersionID.

Returns:
long

setFileID

public void setFileID(long fileID)
Sets the fileID.

Parameters:
fileID - The fileID to set

setIdentifier

public void setIdentifier(java.lang.String identifier)
Sets the identifier.

Parameters:
identifier - The identifier to set

setInitialVersionID

public void setInitialVersionID(long initialVersionID)
Sets the initialVersionID.

Parameters:
initialVersionID - The initialVersionID to set


Copyright 2003 Soucejammer project.