|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.sourcejammer.project.controller.ControllerNode
Highest level Node for Controller Nodes.
| Field Summary | |
protected org.sourcejammer.project.view.NodeInfo |
lightweightView
|
private java.lang.String |
lightweightViewString
|
private boolean |
mbLocked
|
private boolean |
mbShared
|
private java.util.Date |
mdCreatedDate
|
private long |
mlKey
|
private long |
mlUniqueID
|
private java.lang.String |
msNodeName
|
private ControllerNode |
parent
|
private ControllerNode |
shareParent
|
| Constructor Summary | |
ControllerNode()
|
|
| Method Summary | |
private java.lang.StringBuffer |
buildStringValue()
If this object has a parent, call this method in parent first. |
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()
|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
java.util.Date |
getCreatedDate()
|
org.sourcejammer.project.view.NodeInfo |
getLightweightView()
Returns the lightweightView. |
java.lang.String |
getLightweightViewString()
Returns the lightweightViewString. |
java.lang.String |
getNodeName()
|
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()
|
boolean |
isCorrectKey(long key)
Included to allow subclasses to check combination. |
boolean |
isLocked()
|
boolean |
isShared()
|
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,
ArchiveInfoFlex 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)
|
void |
updateLightweightViewString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private boolean mbShared
private java.util.Date mdCreatedDate
private java.lang.String msNodeName
private ControllerNode shareParent
private ControllerNode parent
protected org.sourcejammer.project.view.NodeInfo lightweightView
private java.lang.String lightweightViewString
private long mlUniqueID
private boolean mbLocked
private long mlKey
| Constructor Detail |
public ControllerNode()
| Method Detail |
public void lock(long key)
throws SecurityException
SecurityException
public void unlock(long key)
throws SecurityException
SecurityExceptionpublic boolean isCorrectKey(long key)
public void checkKey(long key)
public boolean isLocked()
public java.lang.String getNodeName()
getNodeName in interface org.sourcejammer.project.Node
public void setNodeName(java.lang.String s,
long key)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.util.Date getCreatedDate()
public void setCreatedDate(java.util.Date d,
long key)
public boolean isShared()
isShared in interface org.sourcejammer.project.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()
childCount in interface org.sourcejammer.project.Nodepublic java.lang.String toString()
toString in class java.lang.Objectprivate java.lang.StringBuffer buildStringValue()
public ControllerNode getRootParent()
public void setUniqueID(long l,
long key)
public long getUniqueID()
getUniqueID in interface org.sourcejammer.project.Node
public void setParent(ControllerNode nd,
long key)
public ControllerNode getParent()
public abstract void store(long key,
ArchiveInfoFlex info)
throws FileAccessException
FileAccessExceptionpublic org.sourcejammer.project.view.NodeInfo getLightweightView()
public void updateLightweightViewString()
public java.lang.String getLightweightViewString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||