com.unitesk.requality.nodetypes
Class Requirement
java.lang.Object
com.unitesk.requality.core.TreeNode
com.unitesk.requality.nodetypes.Requirement
- All Implemented Interfaces:
- java.lang.Comparable<TreeNode>
public class Requirement
- extends TreeNode
- implements java.lang.Comparable<TreeNode>
Methods inherited from class com.unitesk.requality.core.TreeNode |
addBaseNode, canAddCopyOf, canBeChildOf, canBeCopiedTo, 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, getUUId, isDisposed, isResourceExists, isValidFileName, isValidId, isValidId, isValidId, processResourcesPath, putAttribute, removeAttribute, removeBaseNode, removeChild, saveAttributes, setDescription, setDisposed, setIndex, setParent, setPredicate, setResourceContent, setResourceContent, setType, sizeChildren, toNodeDesc, toNodeDesc |
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_NAME
public static final java.lang.String ATTR_NAME
- See Also:
- Constant Field Values
ATTR_LOCATIONS
public static final java.lang.String ATTR_LOCATIONS
- See Also:
- Constant Field Values
ATTR_STATUS
public static final java.lang.String ATTR_STATUS
- See Also:
- Constant Field Values
ATTR_ORDER
public static final java.lang.String ATTR_ORDER
- See Also:
- Constant Field Values
Requirement
public Requirement()
Requirement
public Requirement(TreeDB db,
java.util.UUID uuid)
getTypeRootQId
public static java.lang.String getTypeRootQId()
getLocationQIds
public java.util.List<java.lang.String> getLocationQIds()
getLocations
public java.util.List<Location> getLocations()
getLocation
public Location getLocation(java.lang.String QId)
addLocation
public void addLocation(java.lang.String nodeQId)
removeLocation
public boolean removeLocation(java.lang.String nodeQId)
setName
public void setName(java.lang.String name)
setId
public void setId(java.lang.String id)
- Overrides:
setId
in class TreeNode
updateTreeNodes
public void updateTreeNodes(TreeNode req)
- Overrides:
updateTreeNodes
in class TreeNode
updateLocations
public void updateLocations(Requirement req)
isNameDefined
public boolean isNameDefined()
getNameOrId
public java.lang.String getNameOrId()
toString
public java.lang.String toString()
- Overrides:
toString
in class TreeNode
compareTo
public int compareTo(TreeNode o)
- Specified by:
compareTo
in interface java.lang.Comparable<TreeNode>
getFullName
public static java.lang.String getFullName(TreeNode node,
TreeDB db)
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
canBeParentOf
public boolean canBeParentOf(java.lang.String child)
- Overrides:
canBeParentOf
in class TreeNode
isCopyable
public boolean isCopyable()
- Overrides:
isCopyable
in class TreeNode
canBeDeleted
public boolean canBeDeleted()
- Overrides:
canBeDeleted
in class TreeNode
getName
public java.lang.String getName()
getUserFriendlyName
public java.lang.String getUserFriendlyName()
- Overrides:
getUserFriendlyName
in class TreeNode