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

Title: $FileName: NodeInfo.java$

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

$Description: $
$KeyWordsOff: $ 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  java.lang.String changedFrom
           
private  java.lang.String fileName
           
private  boolean isShared
           
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
           
private  int versionType
           
 
Constructor Summary
NodeInfo()
           
 
Method Summary
 int childCount()
          Returns count of number of child of this Node.
protected  java.lang.Object clone()
           
 NodeInfo cloneNodeInfo()
           
 int compareTo(java.lang.Object o)
           
private  java.lang.String fixedStringLength(java.lang.String s, int length)
           
 java.lang.String getChangedFrom()
          Returns the changedFrom.
 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()
           
 java.lang.String getFileName()
          Returns the fileName.
 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.
 int getVersionType()
          Returns the versionType.
 boolean isCheckedOut()
           
 boolean isPlaceHolder()
           
 boolean isShared()
          Returns true if the Node is shared to another location in the archive.
 void setChangedFrom(java.lang.String changedFrom)
          Sets the changedFrom.
 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 setFileName(java.lang.String fileName)
          Sets the fileName.
 void setFileType(int i)
           
 void setHasChildren(boolean b)
           
 void setIsShared(boolean isShared)
          Sets the isShared.
 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)
           
 void setVersionType(int versionType)
          Sets the versionType.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
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

isShared

private boolean isShared

versionType

private int versionType

changedFrom

private java.lang.String changedFrom

fileName

private java.lang.String fileName
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

getChangedFrom

public java.lang.String getChangedFrom()
Returns the changedFrom.

Returns:
String

getVersionType

public int getVersionType()
Returns the versionType.

Returns:
int

setChangedFrom

public void setChangedFrom(java.lang.String changedFrom)
Sets the changedFrom.

Parameters:
changedFrom - The changedFrom to set

setIsShared

public void setIsShared(boolean isShared)
Sets the isShared.

Parameters:
isShared - The isShared to set

setVersionType

public void setVersionType(int versionType)
Sets the versionType.

Parameters:
versionType - The versionType to set

getFileName

public java.lang.String getFileName()
Returns the fileName.

Returns:
String

setFileName

public void setFileName(java.lang.String fileName)
Sets the fileName.

Parameters:
fileName - The fileName to set

cloneNodeInfo

public NodeInfo cloneNodeInfo()

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
java.lang.CloneNotSupportedException
See Also:
Object.clone()


Copyright © 2003 Soucejammer project.