com.unitesk.requality.nodetypes
TreeNode.TreeNodeChildIterator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_LOCATIONS |
static java.lang.String |
ATTR_NAME |
static java.lang.String |
ATTR_ORDER |
static java.lang.String |
ATTR_STATUS |
static java.lang.String |
TYPE_NAME |
ATTR_BASE_NODES, ATTR_DESCRIPTION, ATTR_ERROR, ATTR_LINKS, ATTR_PREDICATE, ATTR_TYPE, ATTR_UNDEFINED, id, index, NODE_GROUP, NumberRegex
Constructor and Description |
---|
Requirement() |
Requirement(TreeDB db,
java.util.UUID uuid) |
Modifier and Type | Method and Description |
---|---|
void |
addLocation(java.lang.String nodeQId) |
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() |
java.lang.String |
getName() |
java.lang.String |
getNameOrId() |
static java.lang.String |
getTypeRootQId() |
java.lang.String |
getUserFriendlyName(boolean inner) |
boolean |
isNameDefined() |
boolean |
removeLocation(java.lang.String nodeQId) |
void |
setId(java.lang.String id) |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
void |
updateLocations(Requirement req) |
void |
updateTreeNodes(TreeNode req,
java.lang.String what)
Update Requirement+ id\name, location update
|
addBaseNode, addChangeListener, addGuiChangeListener, createChild, createChild, delete, deleteResource, equals, findChild, fireGUINodeAttributeChange, fireGUINodeDelete, fireNodeAttributeChange, fireNodeDelete, getAttribute, getAttributeKeys, getAttributes, getAttributeValue, getAttributeValue, getBaseNodes, getBooleanAttributeValue, getBooleanAttributeValue, getChangeListener, getChild, getChildrenUUIds, getDescription, getDescription, getDescription, getDescription, getError, getFloatAttributeValue, getFloatAttributeValue, getGroup, getId, getIndex, getIntAttributeValue, getIntAttributeValue, getLinkedNodes, getListAttributeValue, getParent, getParentUUId, getPredicate, getQualifiedId, getResourceContent, getResourcesPath, getSortedChildren, getSortedChildren, getSortedChildren, getStringAttributeValue, getStringAttributeValue, getTreeDB, getType, getUserFriendlyName, getUUId, isDisposed, isResourceExists, iterator, listResources, processResourcesPath, putAttribute, removeAttribute, removeBaseNode, removeChangeListener, removeChild, removeGuiChangeListener, saveAttributes, setDescription, setDisposed, setIndex, setParent, setPredicate, setResourceContent, setResourceContent, setType, sizeChildren, toNodeDesc, toNodeDesc
public static final java.lang.String TYPE_NAME
public static final java.lang.String ATTR_NAME
public static final java.lang.String ATTR_LOCATIONS
public static final java.lang.String ATTR_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 setName(java.lang.String name)
public void updateTreeNodes(TreeNode req, java.lang.String what)
TreeNode
updateTreeNodes
in class TreeNode
req
- Requirement to update with subtreewhat
- Attribute name to be updated(or "_id" to
identificator update)public void updateLocations(Requirement req)
public boolean isNameDefined()
public java.lang.String getNameOrId()
public int compareTo(TreeNode o)
compareTo
in interface java.lang.Comparable<TreeNode>
public java.lang.String getName()
public java.lang.String getUserFriendlyName(boolean inner)
getUserFriendlyName
in class TreeNode