|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.project.controller.ControllerNode | +--org.sourcejammer.project.controller.ProjectNode
Title: $FileName: ProjectNode.java$
Field Summary | |
(package private) java.lang.String |
fullPath
|
private static java.lang.String |
INDEX_SEP
|
(package private) java.util.Hashtable |
mhshChildren
|
(package private) java.util.Hashtable |
mhshChildrenByName
|
(package private) java.util.Hashtable |
mhshNamesByChild
|
(package private) long |
mlParentID
|
(package private) java.util.Vector |
mvecRemovedChildren
|
Fields inherited from class org.sourcejammer.project.controller.ControllerNode |
lightweightView |
Constructor Summary | |
ProjectNode()
|
Method Summary | |
void |
addChildNode(long lChildID,
int iChildNodeType,
java.lang.String sChildName,
long key)
|
void |
addChildNode(org.sourcejammer.project.Node nd,
long key)
Adds a new child node to this ProjectNode. |
private java.lang.String |
buildChildIndexKey(long uniqueID,
int nodeType)
|
int |
childCount()
|
ProjectChild |
getChildNode(java.lang.String name)
Returns the child node with the specified name. |
java.util.Enumeration |
getChildrenInfo()
Returns an Enumeration for iterating through of all of the children (ProjectChild objects) of this ProjectNode. |
java.lang.String |
getFullPath()
Returns the fullPath. |
long |
getParentID()
|
ProjectChild |
getRemovedChildInfo(int index)
|
java.util.Vector |
getRemovedChildren()
Returns a Vector of removed Nodes. |
ProjectChild |
permanentlyDeleteRemovedChildNode(int index,
long key)
Permanently delete a removed node from this cache and from the storage system. |
ProjectChild |
removeChildNode(java.lang.String name,
long key)
Removes the child node with the specified name and adds it to removed children list. |
ProjectChild |
removeChildNode(java.lang.String name,
long key,
boolean addToRemovedList)
Removes the child node with the specified name and adds it to removed children list if addToRemovedList is true. |
void |
renameChild(long uniqueID,
int nodeType,
java.lang.String newName,
long key)
|
ProjectChild |
restoreRemovedChildNode(int index,
java.lang.String newName,
long key)
Restores the specified removed node using a new name as the node name. |
void |
setFullPath(java.lang.String fullPath,
long key)
Sets the fullPath. |
void |
setParentID(long l,
long key)
|
void |
setRemovedChildren(java.util.Vector vec)
Sets removed children vector. |
Methods inherited from class org.sourcejammer.project.controller.ControllerNode |
checkKey, compareTo, equals, getCreatedDate, getLightweightView, getLightweightViewString, getNodeName, getUniqueID, isLocked, isShared, lock, setCreatedDate, setNodeName, setUniqueID, store, toString, unlock, updateLightweightViewString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
java.util.Vector mvecRemovedChildren
java.util.Hashtable mhshChildren
java.util.Hashtable mhshChildrenByName
java.util.Hashtable mhshNamesByChild
java.lang.String fullPath
long mlParentID
private static final java.lang.String INDEX_SEP
Constructor Detail |
public ProjectNode()
Method Detail |
public void setParentID(long l, long key)
public long getParentID()
public java.util.Enumeration getChildrenInfo()
public void addChildNode(org.sourcejammer.project.Node nd, long key) throws org.sourcejammer.project.NodeExistsException
nd
- -- a new child . Must have a unique name.
org.sourcejammer.project.NodeExistsException
- -- if this ProjectNode already has
a child with the same name as child.getNodeName();public void addChildNode(long lChildID, int iChildNodeType, java.lang.String sChildName, long key) throws org.sourcejammer.project.NodeExistsException
org.sourcejammer.project.NodeExistsException
public ProjectChild removeChildNode(java.lang.String name, long key) throws org.sourcejammer.project.NodeDoesNotExistException
name
- -- name of the child node to be removed.
org.sourcejammer.project.NodeDoesNotExistException
- if the this does
not have a child with the specified name.public ProjectChild removeChildNode(java.lang.String name, long key, boolean addToRemovedList) throws org.sourcejammer.project.NodeDoesNotExistException
name
- -- name of the child node to be removed.addToRemovedList
- -- adds to removed list if true.
org.sourcejammer.project.NodeDoesNotExistException
- if the this does
not have a child with the specified name.public ProjectChild restoreRemovedChildNode(int index, java.lang.String newName, long key) throws org.sourcejammer.project.NodeExistsException, org.sourcejammer.project.NodeDoesNotExistException, SecurityException
org.sourcejammer.project.NodeExistsException
org.sourcejammer.project.NodeDoesNotExistException
SecurityException
public java.util.Vector getRemovedChildren()
public void setRemovedChildren(java.util.Vector vec)
public ProjectChild permanentlyDeleteRemovedChildNode(int index, long key) throws org.sourcejammer.project.NodeDoesNotExistException, FileAccessException
org.sourcejammer.project.NodeDoesNotExistException
FileAccessException
public ProjectChild getChildNode(java.lang.String name) throws org.sourcejammer.project.NodeDoesNotExistException
name
- -- name of the child node to be returned.
org.sourcejammer.project.NodeDoesNotExistException
- if the this does
not have a child with the specified name.public ProjectChild getRemovedChildInfo(int index) throws org.sourcejammer.project.NodeDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException
public void renameChild(long uniqueID, int nodeType, java.lang.String newName, long key) throws org.sourcejammer.project.NodeExistsException
org.sourcejammer.project.NodeExistsException
public int childCount()
childCount
in interface org.sourcejammer.project.Node
childCount
in class ControllerNode
private java.lang.String buildChildIndexKey(long uniqueID, int nodeType)
public java.lang.String getFullPath()
public void setFullPath(java.lang.String fullPath, long key) throws SecurityException
fullPath
- The fullPath to set
SecurityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |