SourceJammer 1.2.0.1 May 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan

org.sourcejammer.project.view
Class NodeInfo

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

public class NodeInfo
extends java.lang.Object
implements Node

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.


Constructor Summary
NodeInfo()
           
 
Method Summary
 int childCount()
          Returns count of number of child of this Node.
 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()
           
 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 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
 

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

SourceJammer 1.2.0.1 May 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan