|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContext
The interface to Context datastructure
Method Summary | |
---|---|
java.lang.String |
getAllNodeNames(java.lang.String separator)
Returns string of the labels of all the nodes in the context. |
java.util.Vector<INode> |
getAllNodes()
Returns all the nodes in the tree The returned list is ordered as in depth first traversal |
IContextData |
getContextData()
Returns an interface to context metadata |
IMatchingContext |
getMatchingContext()
returns interface to context level functionalities of matching engine |
INode |
getNode(java.lang.String conceptId)
This method can be used to find a concept in the hierarchy using its Concept Id |
INode |
getRoot()
returns the root of the context |
void |
moveNode(java.lang.String NodeId,
java.lang.String newFatherNodeId)
removes node to the other place in the tree |
java.lang.String |
newNode(java.lang.String NodeLabel,
java.lang.String fatherId)
inserts a new node in the context |
void |
removeNode(java.lang.String NodeId)
This method can be used to remove a given Node from the Node hierarchy. |
java.lang.String |
renameNode(java.lang.String NodeId,
java.lang.String newLabel)
change the name of the node with given id |
void |
setRoot(INode root)
Sets a new root for the context |
Method Detail |
---|
IContextData getContextData()
IMatchingContext getMatchingContext()
java.util.Vector<INode> getAllNodes()
void setRoot(INode root)
root
- INode getRoot()
java.lang.String newNode(java.lang.String NodeLabel, java.lang.String fatherId)
NodeLabel
- label of the nodefatherId
- id of the father node
java.lang.String renameNode(java.lang.String NodeId, java.lang.String newLabel)
NodeId
- newLabel
-
void moveNode(java.lang.String NodeId, java.lang.String newFatherNodeId)
NodeId
- newFatherNodeId
- void removeNode(java.lang.String NodeId)
NodeId
- The identifier of the Node to be removedINode getNode(java.lang.String conceptId)
java.lang.String getAllNodeNames(java.lang.String separator)
separator
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |