com.unitesk.requality.nodetypes
Class Location
java.lang.Object
com.unitesk.requality.core.TreeNode
com.unitesk.requality.nodetypes.Location
public class Location
- extends TreeNode
Fields inherited from class com.unitesk.requality.core.TreeNode |
id |
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 |
Location
public Location()
Location
public Location(TreeDB db,
java.util.UUID uid)
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 directorybase
- 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