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
protected static java.lang.String ATTR_HIDDEN
           
 
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.lang.String getDescription(java.lang.String htmlFolderPath, java.lang.String description, 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()
           
 boolean isHidden()
           
 void isHidden(boolean hidden)
           
 void resetLabel()
           
 java.lang.String toString()
           
 
Methods inherited from class com.unitesk.requality.core.TreeNode
addBaseNode, createChild, createChild, delete, equals, findChild, getAttribute, getAttributeKeys, getAttributeValue, getAttributeValue, getBaseNodes, getBooleanAttributeValue, getBooleanAttributeValue, getChild, getDescription, getFloatAttributeValue, getFloatAttributeValue, getId, getIntAttributeValue, getIntAttributeValue, getListAttributeValue, getParent, getParentUUId, getPredicate, getQualifiedId, getSortedChildren, getSortedChildren, getSortedChildren, getStringAttributeValue, getStringAttributeValue, 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
 

Field Detail

ATTR_HIDDEN

protected static final java.lang.String ATTR_HIDDEN
See Also:
Constant Field Values
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 static java.lang.String getDescription(java.lang.String htmlFolderPath,
                                              java.lang.String description,
                                              java.lang.String prefix,
                                              java.lang.String postfix,
                                              java.lang.String basePath)

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

isHidden

public boolean isHidden()

isHidden

public void isHidden(boolean hidden)

resetLabel

public void resetLabel()