org.sourcejammer.project.controller
Class ControllerUtil
java.lang.Object
|
+--org.sourcejammer.project.controller.ControllerUtil
- public class ControllerUtil
- extends java.lang.Object
Title: SourceJammer v 0.1.0
Description:
Copyright: Copyright (c) 2001
Company:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControllerUtil
public ControllerUtil()
buildProjectChildList
public static NodeList buildProjectChildList(ProjectNode projectNode,
NodeLibrary lib)
throws FileAccessException,
ProjectDoesNotExistException,
FileDoesNotExistException,
SecurityException
- Builds a NodeList of NodeInfo objects of a ProjectNode's
children. This NodeList is for setting the child nodes property
of a Project object.
- Parameters:
projectNode
- -- the project node to retrieve the children from.- Returns:
- a NodeList object of NodeInfo objects of the children of projectNode
buildFileVersionList
public static NodeList buildFileVersionList(FileNode fileNode)
- Builds a NodeList of NodeInfo objects of a FileNode's version
children. This NodeList is for setting the child nodes property
of a File object.
- Parameters:
fileNode
- -- the file node to retrieve the children from.- Returns:
- a NodeList object of NodeInfo objects of the children of fileNode
getNodeInfoFromNode
public static NodeInfo getNodeInfoFromNode(Node node)
- Builds a NodeInfo object based on the contents of the passed-in
Node object. Add appropriate properties for FileNode, VersionNode,
and ProjectNode
- Parameters:
node
- -- the node object to build NodeInfo from.- Returns:
- a NodeInfo object with info about node.
- Throws:
BadMethodArgumentException
- (runtime) if
the Node cannot be cast to FileNode, ProjectNode, or
VersionNode.
getUniqueIDFromPath
public static long getUniqueIDFromPath(long parentID,
java.lang.String path,
NodeLibrary library)
throws FileAccessException,
ProjectDoesNotExistException,
NodeDoesNotExistException,
SecurityException
- Converts a string path and parent project id into the id of a node.