com.unitesk.requality.nodetypes
Class Requirement

java.lang.Object
  extended by com.unitesk.requality.core.TreeNode
      extended by com.unitesk.requality.nodetypes.Requirement
All Implemented Interfaces:
java.lang.Comparable<TreeNode>

public class Requirement
extends TreeNode
implements java.lang.Comparable<TreeNode>


Field Summary
 
Fields inherited from class com.unitesk.requality.core.TreeNode
id
 
Constructor Summary
Requirement()
           
Requirement(TreeDB db, java.util.UUID uuid)
           
 
Method Summary
 void addLocation(java.lang.String nodeQId)
           
 int compareTo(TreeNode o)
           
 Location getLocation(java.lang.String QId)
           
 java.util.List<java.lang.String> getLocationQIds()
           
 java.util.List<Location> getLocations()
           
 java.lang.String getName()
           
static java.lang.String getTypeRootQId()
           
 java.lang.String getUserFriendlyName()
           
 boolean removeLocation(java.lang.String nodeQId)
           
 void setId(java.lang.String id)
           
 void setName(java.lang.String name)
           
 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, setParent, setPredicate, setType, sizeChildren
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Requirement

public Requirement()

Requirement

public Requirement(TreeDB db,
                   java.util.UUID uuid)
Method Detail

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

getName

public java.lang.String getName()

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>

getUserFriendlyName

public java.lang.String getUserFriendlyName()