com.unitesk.requality.nodetypes
Class TestPurpose

java.lang.Object
  extended by com.unitesk.requality.core.TreeNode
      extended by com.unitesk.requality.nodetypes.TestPurpose

public class TestPurpose
extends TreeNode


Field Summary
static java.lang.String ATTR_AUTHOR
           
static java.lang.String ATTR_EXPECTED_RESULTS
           
static java.lang.String ATTR_NAME
           
static java.lang.String ATTR_STATUS
           
static java.lang.String ATTR_TEST_LOCATION
           
static java.lang.String ATTR_TEST_METHOD
           
static java.lang.String TYPE_NAME
           
 
Fields inherited from class com.unitesk.requality.core.TreeNode
ATTR_BASE_NODES, ATTR_DESCRIPTION, ATTR_PREDICATE, ATTR_TYPE, id, index
 
Constructor Summary
TestPurpose()
           
TestPurpose(TreeDB db, java.util.UUID id)
           
 
Method Summary
 boolean canBeChildOf(TreeNode parent)
          Check if target node can become parent of current node
 java.lang.String getDescription(java.lang.String def)
           
 java.lang.String getExpectedResults(boolean process)
           
 java.lang.String getTargetRequirementQId()
           
 java.lang.String getUserFriendlyName()
           
 boolean isCopyable()
           
protected  java.util.List<java.lang.String> possibleChildren()
           
protected  java.util.List<java.lang.String> possibleParents()
           
 void setExpectedResults(java.lang.String expectedResults)
           
 void setTargetRequirementQId(java.lang.String targetReqQId)
           
 java.lang.String toString()
           
 
Methods inherited from class com.unitesk.requality.core.TreeNode
addBaseNode, canAddCopyOf, 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, getUUId, 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_EXPECTED_RESULTS

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

ATTR_STATUS

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

ATTR_AUTHOR

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

ATTR_NAME

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

ATTR_TEST_METHOD

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

ATTR_TEST_LOCATION

public static final java.lang.String ATTR_TEST_LOCATION
See Also:
Constant Field Values
Constructor Detail

TestPurpose

public TestPurpose()

TestPurpose

public TestPurpose(TreeDB db,
                   java.util.UUID id)
Method Detail

getTargetRequirementQId

public java.lang.String getTargetRequirementQId()

setTargetRequirementQId

public void setTargetRequirementQId(java.lang.String targetReqQId)

getExpectedResults

public java.lang.String getExpectedResults(boolean process)

setExpectedResults

public void setExpectedResults(java.lang.String expectedResults)

getDescription

public java.lang.String getDescription(java.lang.String def)

toString

public java.lang.String toString()
Overrides:
toString in class TreeNode

possibleParents

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

canBeChildOf

public boolean canBeChildOf(TreeNode parent)
Description copied from class: TreeNode
Check if target node can become parent of current node

Overrides:
canBeChildOf in class TreeNode
Parameters:
parent - node to check possibility to set it as parent
Returns:
true if target node can be a parent of current node

possibleChildren

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

isCopyable

public boolean isCopyable()
Overrides:
isCopyable in class TreeNode

getUserFriendlyName

public java.lang.String getUserFriendlyName()
Overrides:
getUserFriendlyName in class TreeNode