com.unitesk.requality.nodetypes
Modifier and Type | Class and Description |
---|---|
static class |
Requirement.TransferStatus |
TreeNode.TreeNodeChildIterator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_LOCATIONS |
static java.lang.String |
ATTR_ORDER |
static java.lang.String |
ATTR_STATUS |
static java.lang.String |
ATTR_TRANSF_STATUS |
static java.lang.String |
TYPE_NAME |
ATTR_ATTRGENERATORS, ATTR_BASE_NODES, ATTR_DESCRIPTION, ATTR_ERROR, ATTR_LINKS, ATTR_NAME, ATTR_PREDICATE, ATTR_TYPE, ATTR_UNDEFINED, children, generatedValues, id, index, NODE_GROUP, NumberRegex, outchildren, SORT_BY_LOCATIONS
Constructor and Description |
---|
Requirement() |
Requirement(TreeDB db,
java.util.UUID uuid) |
Modifier and Type | Method and Description |
---|---|
void |
addLocation(java.lang.String nodeQId) |
int |
compareLocationIndexes(Requirement r) |
int |
compareTo(TreeNode o) |
static java.lang.String |
getFullName(TreeNode node,
TreeDB db) |
Location |
getLocation(java.lang.String QId) |
java.util.List<java.lang.String> |
getLocationQIds() |
java.util.List<Location> |
getLocations() |
static java.lang.String |
getTypeRootQId() |
java.lang.String |
getUserFriendlyName(boolean inner)
If element have 'name' attribute then return it, else return ParentUserFriendlyName/Id
Tends to be unique in project by agreement
|
boolean |
isNameDefined() |
boolean |
removeLocation(java.lang.String nodeQId) |
void |
setId(java.lang.String id)
Set identifier of element.
|
void |
setTransferProblem(Requirement.TransferStatus status) |
java.lang.String |
toString() |
void |
updateLocations(Requirement req) |
void |
updateTreeNodes(TreeNode req,
java.lang.String what)
Method to update Requirement id, name and corresponding Location nodes
|
addAttributeIterator, addAttributeIterator, addAttributeIterator, addBaseNode, addChangeListener, addChildUUID, addExistsAttributeIterator, addGuiChangeListener, buildDependencies, containsChildUUID, createChild, createChild, delete, deleteResource, equals, evaluatePredicateString, findChild, fireGUINodeAttributeChange, fireGUINodeAttributeChange, fireGUINodeDelete, fireNodeAttributeChange, fireNodeAttributeChange, fireNodeDelete, generateAttribute, getAttribute, getAttributeIterators, getAttributeKeys, getAttributes, getAttributesMap, getAttributeValue, getAttributeValue, getAvailableGenerators, getAvailableGeneratorsOnNode, getBaseNodes, getBooleanAttributeValue, getBooleanAttributeValue, getChangeListener, getChild, getChildrenUUIds, getDescription, getDescription, getDescription, getDescription, getError, getFloatAttributeValue, getFloatAttributeValue, getGeneratedAttribute, getGenerator, getGroup, getId, getIndex, getIntAttributeValue, getIntAttributeValue, getLinkedNodes, getListAttributeValue, getName, getNameOrId, getParent, getParent, getParentUUId, getParentUUId, getPredicate, getQualifiedId, getRawChild, getRawChildrenUUIDs, getResourceContent, getResourcesPath, getSortedChildren, getSortedChildren, getSortedChildren, getStringAttributeValue, getStringAttributeValue, getTreeDB, getType, getUpdatedAttribute, getUpdatedAttribute, getUserFriendlyName, getUUId, isDisposed, isResourceExists, isVirtual, iterator, join, listResources, processResourcesPath, putAttribute, rawPutAttribute, registerAttributeGenerator, removeAttribute, removeAttribute, removeBaseNode, removeChangeListener, removeChild, removeChildUUID, removeGuiChangeListener, removeIterator, saveAttributeIterators, saveAttributes, setChildrenUUIDs, setDescription, setDisposed, setIndex, setName, setParent, setPredicate, setPredicate, setResourceContent, setResourceContent, setType, sizeChildren, sizeRawChildren, toNodeDesc, toNodeDesc, updateDirectCloneChildren, updateGeneratedVars, updateGeneratedVars, updateGeneratedVars, updateGenerators, updateGenerators, updateLocalGenerator, virtualReplaceNames
public static final java.lang.String TYPE_NAME
public static final java.lang.String ATTR_LOCATIONS
public static final java.lang.String ATTR_STATUS
public static final java.lang.String ATTR_TRANSF_STATUS
public static final java.lang.String ATTR_ORDER
public Requirement()
public Requirement(TreeDB db, java.util.UUID uuid)
public static java.lang.String getTypeRootQId()
public java.util.List<java.lang.String> getLocationQIds()
public java.util.List<Location> getLocations()
public Location getLocation(java.lang.String QId)
public void addLocation(java.lang.String nodeQId)
public boolean removeLocation(java.lang.String nodeQId)
public void setId(java.lang.String id)
TreeNode
public void updateTreeNodes(TreeNode req, java.lang.String what)
TreeNode
updateTreeNodes
in class TreeNode
req
- requirement to updatewhat
- name of attribute to be updated(or "_id" for when identifier is updating)public void updateLocations(Requirement req)
public boolean isNameDefined()
isNameDefined
in class TreeNode
public int compareTo(TreeNode o)
compareTo
in interface java.lang.Comparable<TreeNode>
public java.lang.String getUserFriendlyName(boolean inner)
TreeNode
getUserFriendlyName
in class TreeNode
inner
- deprecated?public int compareLocationIndexes(Requirement r)
public void setTransferProblem(Requirement.TransferStatus status)