|
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.ControllerUtil
Title: SourceJammer v 0.1.0 Description: Copyright: Copyright (c) 2001 Company:
Constructor Summary | |
ControllerUtil()
|
Method Summary | |
static NodeList |
buildFileVersionList(FileNode fileNode)
Builds a NodeList of NodeInfo objects of a FileNode's version children. |
static NodeList |
buildProjectChildList(ProjectNode projectNode,
NodeLibrary lib)
Builds a NodeList of NodeInfo objects of a ProjectNode's children. |
static NodeInfo |
getNodeInfoFromNode(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 |
Constructor Detail |
public ControllerUtil()
Method Detail |
public static NodeList buildProjectChildList(ProjectNode projectNode, NodeLibrary lib) throws FileAccessException, ProjectDoesNotExistException, FileDoesNotExistException, SecurityException
projectNode
- -- the project node to retrieve the children from.public static NodeList buildFileVersionList(FileNode fileNode)
fileNode
- -- the file node to retrieve the children from.public static NodeInfo getNodeInfoFromNode(Node node)
node
- -- the node object to build NodeInfo from.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
public static long getUniqueIDFromPath(long parentID, java.lang.String path, NodeLibrary library) throws FileAccessException, ProjectDoesNotExistException, NodeDoesNotExistException, SecurityException
|
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 |