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
           
static java.lang.String TYPE_NAME
           
 
Fields inherited from class com.unitesk.requality.core.TreeNode
ATTR_BASE_NODES, ATTR_DESCRIPTION, ATTR_NAME, ATTR_PREDICATE, ATTR_TYPE, id, index
 
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)
           
 Document[] getDocuments()
           
static Document[] getDocumentsFor(TreeDB db, java.util.UUID locQId)
           
static java.io.File getRelativeFile(java.io.File target, java.io.File base)
          Returns the path of one File relative to another.
 Requirement[] getRequirements()
           
static Requirement[] getRequirementsFor(TreeDB db, java.lang.String locQId)
           
 boolean isHidden()
           
protected  java.util.List<java.lang.String> possibleChildren()
           
protected  java.util.List<java.lang.String> possibleParents()
           
 void resetLabel()
           
 void setHidden(boolean hidden)
           
 java.lang.String toString()
           
 
Methods inherited from class com.unitesk.requality.core.TreeNode
addBaseNode, canAddCopyOf, canBeChildOf, canBeCopiedTo, canBeDeleted, canBeParentOf, canBeParentOf, createChild, createChild, createCopyIn, delete, deleteResource, equals, findChild, getAttribute, getAttributeKeys, getAttributes, getAttributeValue, getAttributeValue, getBaseNodes, getBooleanAttributeValue, getBooleanAttributeValue, getChild, getChildrenUUIds, getDescription, getDescription, getFloatAttributeValue, getFloatAttributeValue, getId, getIndex, getIntAttributeValue, getIntAttributeValue, getListAttributeValue, getParent, getParentUUId, getPossibleChildTypes, getPossibleParentTypes, getPredicate, getQualifiedId, getResourceContent, getResourcesPath, getSortedChildren, getSortedChildren, getSortedChildren, getStringAttributeValue, getStringAttributeValue, getTreeDB, getType, getUserFriendlyName, getUUId, isCopyable, isDisposed, isResourceExists, isValidFileName, isValidId, isValidId, isValidId, processResourcesPath, putAttribute, removeAttribute, removeBaseNode, removeChild, saveAttributes, setDescription, setDisposed, setId, setIndex, setParent, setPredicate, setResourceContent, setResourceContent, setType, sizeChildren, toNodeDesc, toNodeDesc, updateTreeNodes
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final java.lang.String TYPE_NAME
See Also:
Constant Field Values

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()

getRequirementsFor

public static Requirement[] getRequirementsFor(TreeDB db,
                                               java.lang.String locQId)

getDocuments

public Document[] getDocuments()

getDocumentsFor

public static Document[] getDocumentsFor(TreeDB db,
                                         java.util.UUID locQId)

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()

setHidden

public void setHidden(boolean hidden)

resetLabel

public void resetLabel()

possibleParents

protected java.util.List<java.lang.String> possibleParents()
Overrides:
possibleParents in class TreeNode

possibleChildren

protected java.util.List<java.lang.String> possibleChildren()
Overrides:
possibleChildren in class TreeNode