|
SourceJammer 1.2.0.1 May 20, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.project.controller.ControllerNode
Highest level Node for Controller Nodes.
Constructor Summary | |
ControllerNode()
|
Method Summary | |
void |
checkKey(long key)
This method throws BadMethodArgumentException (runtime) if the node is not locked or if the keys do not match. |
abstract int |
childCount()
Returns count of number of child of this Node. |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
java.util.Date |
getCreatedDate()
|
java.lang.String |
getNodeName()
Returns the name of the node. |
ControllerNode |
getParent()
Deprecated. |
ControllerNode |
getRootParent()
|
ControllerNode |
getShareParent()
If this ControllerNode is shared, this returns the "original" ControllerNode of the share, unless this IS the original ControllerNode, in which case this should be null. |
long |
getUniqueID()
Returns unique ID of this node. |
boolean |
isCorrectKey(long key)
Included to allow subclasses to check combination. |
boolean |
isLocked()
|
boolean |
isShared()
Returns true if the Node is shared to another location in the archive. |
void |
lock(long key)
Locks this node so that set methods can only be run if this combination is included. |
void |
setCreatedDate(java.util.Date d,
long key)
|
void |
setNodeName(java.lang.String s,
long key)
|
void |
setParent(ControllerNode nd,
long key)
Deprecated. |
void |
setShared(boolean b,
long key)
Note: When this property is set to false , if a
shareParent has previously been set, the shareParent will be
set to null. |
void |
setShareParent(ControllerNode nd,
long key)
If this ControllerNode is shared, this should be set to the the "original" ControllerNode of this share, unless this IS the original ControllerNode, in which case this should be null. |
void |
setUniqueID(long l,
long key)
|
abstract void |
store(long key,
ArchiveInfo info)
To be implemented by model implementation of this class for storing needed data from this node. |
java.lang.String |
toString()
Prints path up to this project node. |
void |
unlock(long key)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ControllerNode()
Method Detail |
public void lock(long key) throws SecurityException
public void unlock(long key) throws SecurityException
public boolean isCorrectKey(long key)
public void checkKey(long key)
public boolean isLocked()
public java.lang.String getNodeName()
Node
getNodeName
in interface Node
public void setNodeName(java.lang.String s, long key)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.util.Date getCreatedDate()
public void setCreatedDate(java.util.Date d, long key)
public boolean isShared()
Node
isShared
in interface Node
public void setShared(boolean b, long key)
false
, if a
shareParent has previously been set, the shareParent will be
set to null.public void setShareParent(ControllerNode nd, long key)
nd
- -- the "original" Controller node that this is a
share of.BadMethodArgmentException
- if shared property is not true.public ControllerNode getShareParent()
BadMethodArgmentException
- if shared property is not true.public abstract int childCount()
Node
childCount
in interface Node
public java.lang.String toString()
toString
in class java.lang.Object
public ControllerNode getRootParent()
public void setUniqueID(long l, long key)
public long getUniqueID()
Node
getUniqueID
in interface Node
public void setParent(ControllerNode nd, long key)
public ControllerNode getParent()
public abstract void store(long key, ArchiveInfo info) throws FileAccessException
|
SourceJammer 1.2.0.1 May 20, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |