com.unitesk.requality.nodetypes
Class Location
java.lang.Object
com.unitesk.requality.core.TreeNode
com.unitesk.requality.nodetypes.Location
public class Location
- extends TreeNode
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 |
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
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()
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 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
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