|
SourceJammer 1.3.0 November 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 | +--org.sourcejammer.project.controller.ProjectNode
Contains information about a Project, including the project's name, and links to it's parent and children.
Constructor Summary | |
ProjectNode()
|
Method Summary | |
void |
addChildNode(long lChildID,
int iChildNodeType,
java.lang.String sChildName,
long key)
|
void |
addChildNode(Node nd,
long key)
Adds a new child node to this ProjectNode. |
int |
childCount()
Returns count of number of child of this Node. |
void |
deleteChildList(long key)
|
ProjectChild |
getChildNode(java.lang.String name)
Returns the child node with the specified name. |
java.lang.String |
getChildNodeName(long uniqueID,
int nodeType)
|
java.util.Enumeration |
getChildrenInfo()
Returns an Enumeration for iterating through of all of the children (ProjectChild objects) of this ProjectNode. |
long |
getParentID()
|
ProjectNode |
getProjectParent()
Deprecated. |
ProjectChild |
getRemovedChildInfo(int index)
|
java.util.Vector |
getRemovedChildren()
Returns a Vector of removed Nodes. |
ProjectChild |
permanentlyDeleteRemovedChildNode(int index,
ArchiveInfoFlex info,
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 |
setParentID(long l,
long key)
|
void |
setProjectParent(ProjectNode parent,
long key)
Convenience method for setting parent as ProjectNode. |
void |
setRemovedChildren(java.util.Vector vec)
Sets removed children vector. |
Methods inherited from class org.sourcejammer.project.controller.ControllerNode |
checkKey, compareTo, equals, getCreatedDate, getNodeName, getParent, getRootParent, getShareParent, getUniqueID, isCorrectKey, isLocked, isShared, lock, setCreatedDate, setNodeName, setParent, setShared, setShareParent, setUniqueID, store, toString, unlock |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ProjectNode()
Method Detail |
public void setParentID(long l, long key)
public long getParentID()
public ProjectNode getProjectParent()
null
if this is the root node of an Archive.public void setProjectParent(ProjectNode parent, long key)
parent
- -- parent ProjectNode.public java.util.Enumeration getChildrenInfo()
public void addChildNode(Node nd, long key) throws NodeExistsException
child
- -- a new child . Must have a unique name.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 NodeExistsException
public ProjectChild removeChildNode(java.lang.String name, long key) throws NodeDoesNotExistException
name
- -- name of the child node to be removed.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 NodeDoesNotExistException
name
- -- name of the child node to be removed.addToRemovedList
- -- adds to removed list if true.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 NodeExistsException, NodeDoesNotExistException, SecurityException
public java.util.Vector getRemovedChildren()
public void setRemovedChildren(java.util.Vector vec)
public ProjectChild permanentlyDeleteRemovedChildNode(int index, ArchiveInfoFlex info, long key) throws NodeDoesNotExistException, FileAccessException
public ProjectChild getChildNode(java.lang.String name) throws NodeDoesNotExistException
name
- -- name of the child node to be returned.NodeDoesNotExistException
- if the this does
not have a child with the specified name.public java.lang.String getChildNodeName(long uniqueID, int nodeType) throws NodeDoesNotExistException
public ProjectChild getRemovedChildInfo(int index) throws NodeDoesNotExistException
public void renameChild(long uniqueID, int nodeType, java.lang.String newName, long key) throws NodeExistsException
public int childCount()
Node
childCount
in class ControllerNode
public void deleteChildList(long key)
|
SourceJammer 1.3.0 November 20, 2002 Copyright (c) 2001, 2002 Robert MacGrogan |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |