|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.project.controller.ControllerUtil
Title: SourceJammer v 0.1.0 Description: Copyright: Copyright (c) 2001 Company:
Field Summary | |
private static java.lang.String |
PARENT_PROJECT
|
Constructor Summary | |
ControllerUtil()
|
Method Summary | |
static org.sourcejammer.project.NodeList |
buildFileVersionList(FileNode fileNode)
Builds a NodeList of NodeInfo objects of a FileNode's version children. |
static org.sourcejammer.project.NodeList |
buildProjectChildList(ProjectNode projectNode,
NodeLibrary lib)
Builds a NodeList of NodeInfo objects of a ProjectNode's children. |
static org.sourcejammer.project.view.NodeInfo |
getNodeInfoFromNode(org.sourcejammer.project.Node node)
Builds a NodeInfo object based on the contents of the passed-in Node object. |
static java.lang.String |
getPathFromProject(ProjectNode project,
NodeLibrary library)
public static NodeName buildNodeNameObject(ControllerNode node){ if (node instanceof VersionNode){ throw new BadMethodArgumentException("Cannot call buildNodeNameObject() for VersionNode."); } NodeName oNameObject = new NodeName(); oNameObject.setName(node.getNodeName()); ControllerNode oParentNode = node.getParent(); if (oParentNode != null){ //Note reflexive call to this same method below. |
static long |
getUniqueIDFromPath(long parentID,
java.lang.String path,
NodeLibrary library)
Converts a string path and parent project id into the id of a node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String PARENT_PROJECT
Constructor Detail |
public ControllerUtil()
Method Detail |
public static org.sourcejammer.project.NodeList buildProjectChildList(ProjectNode projectNode, NodeLibrary lib) throws FileAccessException, ProjectDoesNotExistException, FileDoesNotExistException, SecurityException
projectNode
- -- the project node to retrieve the children from.
FileAccessException
ProjectDoesNotExistException
FileDoesNotExistException
SecurityException
public static org.sourcejammer.project.NodeList buildFileVersionList(FileNode fileNode)
fileNode
- -- the file node to retrieve the children from.
public static org.sourcejammer.project.view.NodeInfo getNodeInfoFromNode(org.sourcejammer.project.Node node)
node
- -- the node object to build NodeInfo from.
org.sourcejammer.util.BadMethodArgumentException
- (runtime) if
the Node cannot be cast to FileNode, ProjectNode, or
VersionNode.public static java.lang.String getPathFromProject(ProjectNode project, NodeLibrary library) throws FileAccessException, ProjectDoesNotExistException, SecurityException
FileAccessException
ProjectDoesNotExistException
SecurityException
public static long getUniqueIDFromPath(long parentID, java.lang.String path, NodeLibrary library) throws FileAccessException, ProjectDoesNotExistException, org.sourcejammer.project.NodeDoesNotExistException, SecurityException
FileAccessException
ProjectDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException
SecurityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |