org.sourcejammer.project.view
Class Branch

java.lang.Object
  |
  +--org.sourcejammer.project.view.Branch
All Implemented Interfaces:
Node

public class Branch
extends java.lang.Object
implements Node

Title: $FileName: Branch.java$

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

$Description: A "viewable" representation of BranchNode. If a Branch is returned by the server, this is the top leve branch and is equivelent to a MasterFile.$
$KeyWordsOff: $

Field Summary
private  java.util.ArrayList children
           
private  long fileID
           
private  java.lang.String identifier
           
private  long initialVersionID
           
 
Constructor Summary
Branch()
           
 
Method Summary
 int childCount()
          Returns count of number of child of this Node.
 java.util.ArrayList getChildArrayList()
           
 long getFileID()
          Returns the fileID.
 java.lang.String getIdentifier()
          Returns the identifier.
 long getInitialVersionID()
          Returns the initialVersionID.
 java.lang.String getNodeName()
          Returns same as getIdentifier.
 long getUniqueID()
          Returns same as getFileID().
 boolean isShared()
          Always false.
 void setChildArrayList(java.util.ArrayList children)
           
 void setFileID(long fileID)
          Sets the fileID.
 void setIdentifier(java.lang.String identifier)
          Sets the identifier.
 void setInitialVersionID(long initialVersionID)
          Sets the initialVersionID.
 
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
Constructor Detail

Branch

public Branch()
Method Detail

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

childCount

public int childCount()
Description copied from interface: Node
Returns count of number of child of this Node.

Specified by:
childCount in interface Node
See Also:
Node.childCount()

getNodeName

public java.lang.String getNodeName()
Returns same as getIdentifier.

Specified by:
getNodeName in interface Node

getUniqueID

public long getUniqueID()
Returns same as getFileID().

Specified by:
getUniqueID in interface Node

isShared

public boolean isShared()
Always false.

Specified by:
isShared in interface Node

setChildArrayList

public void setChildArrayList(java.util.ArrayList children)

getChildArrayList

public java.util.ArrayList getChildArrayList()


Copyright © 2003 Soucejammer project.