org.sourcejammer.project.controller
Class ControllerUtil

java.lang.Object
  |
  +--org.sourcejammer.project.controller.ControllerUtil

public class ControllerUtil
extends java.lang.Object

Title: $FileName: ControllerUtil.java$

Version:
$VerNum: 3$
Author:
$AuthorName: Rob MacGrogan$

$Description: $
$KeyWordsOff: $


Field Summary
private static java.lang.String PARENT_PROJECT
           
 
Constructor Summary
ControllerUtil()
           
 
Method Summary
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

PARENT_PROJECT

private static final java.lang.String PARENT_PROJECT
See Also:
Constant Field Values
Constructor Detail

ControllerUtil

public ControllerUtil()
Method Detail

getPathFromProject

public static java.lang.String getPathFromProject(ProjectNode project,
                                                  NodeLibrary library)
                                           throws FileAccessException,
                                                  ProjectDoesNotExistException,
                                                  SecurityException
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. oNameObject.setParent(buildNodeNameObject(oParentNode)); } return oNameObject; }

FileAccessException
ProjectDoesNotExistException
SecurityException

getUniqueIDFromPath

public static long getUniqueIDFromPath(long parentID,
                                       java.lang.String path,
                                       NodeLibrary library)
                                throws FileAccessException,
                                       ProjectDoesNotExistException,
                                       org.sourcejammer.project.NodeDoesNotExistException,
                                       SecurityException
Converts a string path and parent project id into the id of a node.

FileAccessException
ProjectDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException
SecurityException


Copyright © 2003 Soucejammer project.