org.sourcejammer.project.view
Class NodeInfo

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

public class NodeInfo
extends java.lang.Object
implements Node, java.lang.Comparable

Very thin class that just has info about a node. The purpose of this class is to be a child of a ViewNode, so some basic information about a Nodes children on the project hierarchy can be examined without passing the entire Node object.


Field Summary
private  long latestVerUniqueID
           
private  boolean mbCheckedOut
           
private  boolean mbHasChildren
           
private  boolean mbPlaceHolder
           
private  boolean mbShared
           
private  SJDate mdCheckedOutDate
           
private  SJDate mdCreatedDate
           
private  SJDate mdModifiedDate
           
private  int miFileType
           
private  int miNodeType
           
private  int miNumChildren
           
private  int miNumVersions
           
private  long mlID
           
private  long mlParentID
           
private  long mlSourceSize
           
private  java.lang.String msCheckedOutPath
           
private  java.lang.String msCheckedOutToUser
           
private  java.lang.String msCreatedUser
           
private  java.lang.String msNodeName
           
 
Constructor Summary
NodeInfo()
           
 
Method Summary
 int childCount()
          Returns count of number of child of this Node.
 int compareTo(java.lang.Object o)
           
private  java.lang.String fixedStringLength(java.lang.String s, int length)
           
 SJDate getCheckedOutDate()
           
 java.lang.String getCheckedOutToPath()
           
 java.lang.String getCheckedOutToUser()
           
 SJDate getCreatedDate()
          Returns the date the Node was added to the archive.
 java.lang.String getCreatedUser()
           
 int getFileType()
          Compare to org.sourcejammer.util.AppConfig.FileTypes
 boolean getHasChildren()
           
 long getLatestVerUniqueID()
          Returns the latestVerUniqueID.
 SJDate getModifiedDate()
           
 java.lang.String getNodeName()
          Returns the name of the node.
 int getNodeType()
          Returns the type (Project, File, Version full, or Version delta) of this node.
 int getNumVersions()
           
 long getParentID()
           
 long getSourceSizeInBytes()
           
 long getUniqueID()
          Returns unique ID of this node.
 boolean isCheckedOut()
           
 boolean isPlaceHolder()
           
 boolean isShared()
          Returns true if the Node is shared to another location in the archive.
 void setCheckedOut(boolean b)
           
 void setCheckedOutDate(SJDate d)
           
 void setCheckedOutToPath(java.lang.String s)
           
 void setCheckedOutToUser(java.lang.String s)
           
 void setChildCount(int i)
           
 void setCreatedDate(SJDate d)
           
 void setCreatedUser(java.lang.String s)
           
 void setFileType(int i)
           
 void setHasChildren(boolean b)
           
 void setLatestVerUniqueID(long latestVerUniqueID)
          Sets the latestVerUniqueID.
 void setModifiedDate(SJDate d)
           
 void setNodeName(java.lang.String s)
           
 void setNodeType(int i)
           
 void setNumVersions(int i)
           
 void setParentID(long l)
           
 void setPlaceHolder(boolean b)
           
 void setShared(boolean b)
           
 void setSourceSizeInBytes(long l)
           
 void setUniqueID(long l)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

msNodeName

private java.lang.String msNodeName

mdCreatedDate

private SJDate mdCreatedDate

mbShared

private boolean mbShared

miNodeType

private int miNodeType

mbCheckedOut

private boolean mbCheckedOut

mdCheckedOutDate

private SJDate mdCheckedOutDate

msCheckedOutPath

private java.lang.String msCheckedOutPath

msCheckedOutToUser

private java.lang.String msCheckedOutToUser

miNumVersions

private int miNumVersions

mbHasChildren

private boolean mbHasChildren

miNumChildren

private int miNumChildren

miFileType

private int miFileType

msCreatedUser

private java.lang.String msCreatedUser

mlID

private long mlID

mlSourceSize

private long mlSourceSize

latestVerUniqueID

private long latestVerUniqueID

mbPlaceHolder

private boolean mbPlaceHolder

mlParentID

private long mlParentID

mdModifiedDate

private SJDate mdModifiedDate
Constructor Detail

NodeInfo

public NodeInfo()
Method Detail

setUniqueID

public void setUniqueID(long l)

getUniqueID

public long getUniqueID()
Description copied from interface: Node
Returns unique ID of this node.

Specified by:
getUniqueID in interface Node

setCreatedUser

public void setCreatedUser(java.lang.String s)

getCreatedUser

public java.lang.String getCreatedUser()

isPlaceHolder

public boolean isPlaceHolder()

setPlaceHolder

public void setPlaceHolder(boolean b)

getNodeName

public java.lang.String getNodeName()
Description copied from interface: Node
Returns the name of the node.

Specified by:
getNodeName in interface Node

setNodeName

public void setNodeName(java.lang.String s)

getCreatedDate

public SJDate getCreatedDate()
Returns the date the Node was added to the archive.


setCreatedDate

public void setCreatedDate(SJDate d)

isShared

public boolean isShared()
Returns true if the Node is shared to another location in the archive.

Specified by:
isShared in interface Node

setShared

public void setShared(boolean b)

getNodeType

public int getNodeType()
Returns the type (Project, File, Version full, or Version delta) of this node. Compare to AppConfig.NodeTypes.


setNodeType

public void setNodeType(int i)

isCheckedOut

public boolean isCheckedOut()

setCheckedOut

public void setCheckedOut(boolean b)

getCheckedOutDate

public SJDate getCheckedOutDate()

setCheckedOutDate

public void setCheckedOutDate(SJDate d)

getCheckedOutToPath

public java.lang.String getCheckedOutToPath()

setCheckedOutToPath

public void setCheckedOutToPath(java.lang.String s)

getCheckedOutToUser

public java.lang.String getCheckedOutToUser()

setCheckedOutToUser

public void setCheckedOutToUser(java.lang.String s)

setNumVersions

public void setNumVersions(int i)

getNumVersions

public int getNumVersions()

getHasChildren

public boolean getHasChildren()

setHasChildren

public void setHasChildren(boolean b)

childCount

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

Specified by:
childCount in interface Node

setChildCount

public void setChildCount(int i)

getFileType

public int getFileType()
Compare to org.sourcejammer.util.AppConfig.FileTypes


setFileType

public void setFileType(int i)

getSourceSizeInBytes

public long getSourceSizeInBytes()

setSourceSizeInBytes

public void setSourceSizeInBytes(long l)

setParentID

public void setParentID(long l)

getParentID

public long getParentID()

setModifiedDate

public void setModifiedDate(SJDate d)

getModifiedDate

public SJDate getModifiedDate()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fixedStringLength

private java.lang.String fixedStringLength(java.lang.String s,
                                           int length)

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getLatestVerUniqueID

public long getLatestVerUniqueID()
Returns the latestVerUniqueID.

Returns:
long

setLatestVerUniqueID

public void setLatestVerUniqueID(long latestVerUniqueID)
Sets the latestVerUniqueID.

Parameters:
latestVerUniqueID - The latestVerUniqueID to set


Copyright 2003 Soucejammer project.