Tree node attribute. More...
Public Member Functions | |
void | SetFather (in AttributeTreeNode father) |
Assigns the father tree node to this tree node. More... | |
boolean | HasFather () |
Checks if father tree node attribute is set for this tree node. More... | |
AttributeTreeNode | GetFather () |
Returns the father tree node of this tree node. More... | |
void | SetPrevious (in AttributeTreeNode sibling) |
Assigns the previous sibling tree node to this tree node. More... | |
boolean | HasPrevious () |
Checks if previous sibling tree node attribute is set for this tree node. More... | |
AttributeTreeNode | GetPrevious () |
Returns the previous sibling tree node of this tree node. More... | |
void | SetNext (in AttributeTreeNode sibling) |
Assigns the next sibling tree node to this tree node. More... | |
boolean | HasNext () |
Checks if next sibling tree node attribute is set for this tree node. More... | |
AttributeTreeNode | GetNext () |
Returns the next sibling tree node of this tree node. More... | |
void | SetFirst (in AttributeTreeNode child) |
Sets the specified tree node as a first child of this tree node. More... | |
boolean | HasFirst () |
Checks if first child tree node attribute is set for this tree node. More... | |
AttributeTreeNode | GetFirst () |
Returns the first child tree node of this tree node. More... | |
void | SetTreeID (in string ID) |
Sets identifier of the parent tree to this tree node. More... | |
string | GetTreeID () |
Returns identifier of the parent tree. More... | |
void | Append (in AttributeTreeNode child) |
Appends specified tree node to the end of the children list of this tree node. More... | |
void | Prepend (in AttributeTreeNode child) |
Puts specified tree node to the beginning of the children list of this tree node. More... | |
void | InsertBefore (in AttributeTreeNode child) |
Insert specified tree node as a previous child in the parent tree node's children list. More... | |
void | InsertAfter (in AttributeTreeNode child) |
Insert specified tree node as a next child in the parent tree node's children list. More... | |
void | Remove () |
Removes this tree node. More... | |
long | Depth () |
Returns the depth of the tree node in the tree structure. The resulting value it equal to the number of the fathers of this tree node. More... | |
boolean | IsRoot () |
Checks if the tree node is a root of the tree. More... | |
boolean | IsDescendant (in AttributeTreeNode other) |
Checks if the tree node is a descendant of the specified tree node. More... | |
boolean | IsFather (in AttributeTreeNode other) |
Checks if this tree node is a parent of the specified tree node other. More... | |
boolean | IsChild (in AttributeTreeNode other) |
Checks if this tree node is a child of the specified tree node other. More... | |
string | Label () |
Returns string identifier of the owner SObject (e.g. "0:1:2"). More... | |
void | CheckLocked () raises (LockProtection) |
Method CheckLocked. More... | |
string | Type () |
Get Type. More... | |
string | GetClassType () |
Get the class type. More... | |
SObject | GetSObject () |
Get SObject. More... | |
long long | GetLocalImpl (in string theHostname, in long thePID, out boolean isLocal) |
Private method, returns an implementation of this GenericAttribute. More... | |
void | Register () |
Increase the reference count (mark as used by another object). More... | |
void | UnRegister () |
Decrease the reference count (release by another object). More... | |
void | Destroy () |
Obsolete, left for compatibility reasons only. Use UnRegister() instead. More... | |
Tree node attribute.
By specifying the tree node attributes for the SObjects it is possible to create internal auxillary object tree with its own structure and identifier.
Since each such tree is specfied by the unique identifier, it is possible to create as many trees as it is required.
See example18 for an example of usage of this attribute in batchmode of SALOME application.
void SALOMEDS::AttributeTreeNode::SetFather | ( | in AttributeTreeNode | father | ) |
Assigns the father tree node to this tree node.
father | tree node attribute being set as a parent of this tree node |
boolean SALOMEDS::AttributeTreeNode::HasFather | ( | ) |
Checks if father tree node attribute is set for this tree node.
true
if father tree node attribute is defined or false
otherwise AttributeTreeNode SALOMEDS::AttributeTreeNode::GetFather | ( | ) |
Returns the father tree node of this tree node.
void SALOMEDS::AttributeTreeNode::SetPrevious | ( | in AttributeTreeNode | sibling | ) |
Assigns the previous sibling tree node to this tree node.
sibling | tree node attribute being set as a previous sibling of this tree node |
boolean SALOMEDS::AttributeTreeNode::HasPrevious | ( | ) |
Checks if previous sibling tree node attribute is set for this tree node.
true
if previous sibling tree node attribute is defined or false
otherwise AttributeTreeNode SALOMEDS::AttributeTreeNode::GetPrevious | ( | ) |
Returns the previous sibling tree node of this tree node.
void SALOMEDS::AttributeTreeNode::SetNext | ( | in AttributeTreeNode | sibling | ) |
Assigns the next sibling tree node to this tree node.
sibling | tree node attribute being set as a next sibling of this tree node |
boolean SALOMEDS::AttributeTreeNode::HasNext | ( | ) |
Checks if next sibling tree node attribute is set for this tree node.
true
if next sibling tree node attribute is defined or false
otherwise AttributeTreeNode SALOMEDS::AttributeTreeNode::GetNext | ( | ) |
Returns the next sibling tree node of this tree node.
void SALOMEDS::AttributeTreeNode::SetFirst | ( | in AttributeTreeNode | child | ) |
Sets the specified tree node as a first child of this tree node.
child | tree node attribute being set filrst child of this tree node |
boolean SALOMEDS::AttributeTreeNode::HasFirst | ( | ) |
Checks if first child tree node attribute is set for this tree node.
true
if first child tree node attribute is defined or false
otherwise AttributeTreeNode SALOMEDS::AttributeTreeNode::GetFirst | ( | ) |
Returns the first child tree node of this tree node.
void SALOMEDS::AttributeTreeNode::SetTreeID | ( | in string | ID | ) |
Sets identifier of the parent tree to this tree node.
ID | identifier (arbitrary non-empty string) being set for this tree node |
string SALOMEDS::AttributeTreeNode::GetTreeID | ( | ) |
Returns identifier of the parent tree.
void SALOMEDS::AttributeTreeNode::Append | ( | in AttributeTreeNode | child | ) |
Appends specified tree node to the end of the children list of this tree node.
child | tree node being added to the list of children |
void SALOMEDS::AttributeTreeNode::Prepend | ( | in AttributeTreeNode | child | ) |
Puts specified tree node to the beginning of the children list of this tree node.
child | tree node being added to the list of children |
void SALOMEDS::AttributeTreeNode::InsertBefore | ( | in AttributeTreeNode | child | ) |
Insert specified tree node as a previous child in the parent tree node's children list.
child | tree node being inserted to the parent tree node |
void SALOMEDS::AttributeTreeNode::InsertAfter | ( | in AttributeTreeNode | child | ) |
Insert specified tree node as a next child in the parent tree node's children list.
child | tree node being inserted to the parent tree node |
void SALOMEDS::AttributeTreeNode::Remove | ( | ) |
Removes this tree node.
long SALOMEDS::AttributeTreeNode::Depth | ( | ) |
Returns the depth of the tree node in the tree structure. The resulting value it equal to the number of the fathers of this tree node.
boolean SALOMEDS::AttributeTreeNode::IsRoot | ( | ) |
Checks if the tree node is a root of the tree.
true
if it is a root tree node or false
otherwise boolean SALOMEDS::AttributeTreeNode::IsDescendant | ( | in AttributeTreeNode | other | ) |
Checks if the tree node is a descendant of the specified tree node.
other | tree node that is tested for being ancestor of this tree node |
true
if this node is descendant of the other node or false
otherwise boolean SALOMEDS::AttributeTreeNode::IsFather | ( | in AttributeTreeNode | other | ) |
Checks if this tree node is a parent of the specified tree node other.
other | tree node that is tested for being father of this tree node |
true
if this node is father of the other node or false
otherwise boolean SALOMEDS::AttributeTreeNode::IsChild | ( | in AttributeTreeNode | other | ) |
Checks if this tree node is a child of the specified tree node other.
other | tree node that is tested for being child of this tree node |
true
if this node is child of the other node or false
otherwise string SALOMEDS::AttributeTreeNode::Label | ( | ) |
|
inherited |
Method CheckLocked.
Checks whether the Study is protected for modifications.
|
inherited |
Get Type.
|
inherited |
Get the class type.
|
inherited |
Private method, returns an implementation of this GenericAttribute.
theHostname | is a hostname of the caller |
thePID | is a process ID of the caller |
isLocal | is set True if the GenericAttribute is launched locally with the caller |
|
inherited |
Increase the reference count (mark as used by another object).
|
inherited |
Decrease the reference count (release by another object).
|
inherited |
Obsolete, left for compatibility reasons only. Use UnRegister() instead.