com.unitesk.requality.nodetypes
Class Location

java.lang.Object
  extended by com.unitesk.requality.core.TreeNode
      extended by com.unitesk.requality.nodetypes.Location

public class Location
extends TreeNode


Field Summary
 
Fields inherited from class com.unitesk.requality.core.TreeNode
id
 
Constructor Summary
Location()
           
Location(TreeDB db, java.util.UUID uid)
           
 
Method Summary
 java.lang.String getDescription(java.lang.String basePath)
           
 java.lang.String getDescription(java.lang.String prefix, java.lang.String postfix, java.lang.String basePath)
           
static java.io.File getRelativeFile(java.io.File target, java.io.File base)
          Returns the path of one File relative to another.
 Requirement[] getRequirements()
           
 java.lang.String toString()
           
 
Methods inherited from class com.unitesk.requality.core.TreeNode
addBaseNode, createChild, createChild, delete, equals, findChild, getAttribute, getAttributeKeys, getAttributeValue, getAttributeValue, getBaseNodes, getChild, getDescription, getId, getParent, getParentUUId, getPredicate, getQualifiedId, getSortedChildren, getSortedChildren, getSortedChildren, getTreeDB, getType, getUUId, putAttribute, removeAttribute, removeBaseNode, removeChild, saveAttributes, setDescription, setId, setParent, setPredicate, setType, sizeChildren
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location()

Location

public Location(TreeDB db,
                java.util.UUID uid)
Method Detail

getDescription

public java.lang.String getDescription(java.lang.String basePath)

getRequirements

public Requirement[] getRequirements()

getDescription

public java.lang.String getDescription(java.lang.String prefix,
                                       java.lang.String postfix,
                                       java.lang.String basePath)

toString

public java.lang.String toString()
Overrides:
toString in class TreeNode

getRelativeFile

public static java.io.File getRelativeFile(java.io.File target,
                                           java.io.File base)
                                    throws java.io.IOException
Returns the path of one File relative to another.

Parameters:
target - the target directory
base - the base directory
Returns:
target's path relative to the base directory
Throws:
java.io.IOException - if an error occurs while resolving the files' canonical names