org.sourcejammer.project.controller
Class VersionNode

java.lang.Object
  |
  +--org.sourcejammer.project.controller.ControllerNode
        |
        +--org.sourcejammer.project.controller.VersionNode
All Implemented Interfaces:
java.lang.Comparable, org.sourcejammer.project.Node
Direct Known Subclasses:
VersionNodeFS

public abstract class VersionNode
extends ControllerNode

Title: SourceJammer v 0.1.0 Description: Copyright: Copyright (c) 2001 Company:

Version:
1.0
Author:
Robert MacGrogan

Field Summary
(package private)  int miSourceType
           
(package private)  long mlSourceSizeInBytes
           
(package private)  java.lang.String msCreatedUser
           
 
Fields inherited from class org.sourcejammer.project.controller.ControllerNode
lightweightView
 
Constructor Summary
VersionNode()
           
 
Method Summary
 int childCount()
          A VersionNode cannot have any children, so this always returns 0.
 java.lang.String getCreatedUser()
           
 long getSoruceSizeInBytes()
           
 int getSourceType()
          Returns whether this is a Delta or full file version.
 int getVersionNumber()
          Convenience method for getting nodeName as int.
 void setCreatedUser(java.lang.String s)
           
 void setNodeName(java.lang.String s, long key)
          Overriding setNodeName() to make sure nodeName is always an int.
 void setSourceSizeInBytes(long l, long key)
           
 void setSourceType(int i, long key)
          Sets whether this is a Delta or full file version.
 void setVersionNumber(int i, long key)
          Convenience method for setting the nodeName to an int value.
 
Methods inherited from class org.sourcejammer.project.controller.ControllerNode
checkKey, compareTo, equals, getCreatedDate, getLightweightView, getLightweightViewString, getNodeName, getParent, getRootParent, getShareParent, getUniqueID, isCorrectKey, isLocked, isShared, lock, setCreatedDate, setParent, setShared, setShareParent, setUniqueID, store, toString, unlock, updateLightweightViewString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

miSourceType

int miSourceType

mlSourceSizeInBytes

long mlSourceSizeInBytes

msCreatedUser

java.lang.String msCreatedUser
Constructor Detail

VersionNode

public VersionNode()
Method Detail

setCreatedUser

public void setCreatedUser(java.lang.String s)

getCreatedUser

public java.lang.String getCreatedUser()

setVersionNumber

public void setVersionNumber(int i,
                             long key)
Convenience method for setting the nodeName to an int value. This should be called in place of setNodeName();


getVersionNumber

public int getVersionNumber()
Convenience method for getting nodeName as int.


getSoruceSizeInBytes

public long getSoruceSizeInBytes()

setSourceSizeInBytes

public void setSourceSizeInBytes(long l,
                                 long key)

setNodeName

public void setNodeName(java.lang.String s,
                        long key)
Overriding setNodeName() to make sure nodeName is always an int.

Overrides:
setNodeName in class ControllerNode

childCount

public int childCount()
A VersionNode cannot have any children, so this always returns 0.

Specified by:
childCount in interface org.sourcejammer.project.Node
Specified by:
childCount in class ControllerNode

setSourceType

public void setSourceType(int i,
                          long key)
Sets whether this is a Delta or full file version. Use AppConfig.NodeTypes.

Throws:
org.sourcejammer.util.BadMethodArgumentException - if i is not VERSION_DELTA or VERSION_FULL_FILE.

getSourceType

public int getSourceType()
Returns whether this is a Delta or full file version. Compare against AppConfig.NodeTypes.



Copyright 2003 Soucejammer project.