it.unitn.disi.smatch.data
Interface IContext

All Known Implementing Classes:
Context

public interface IContext

The interface to Context datastructure

Author:
Mikalai Yatskevich mikalai.yatskevich@comlab.ox.ac.uk, Aliaksandr Autayeu avtaev@gmail.com

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

getContextData

IContextData getContextData()
Returns an interface to context metadata

Returns:

getMatchingContext

IMatchingContext getMatchingContext()
returns interface to context level functionalities of matching engine

Returns:

getAllNodes

java.util.Vector<INode> getAllNodes()
Returns all the nodes in the tree The returned list is ordered as in depth first traversal

Returns:

setRoot

void setRoot(INode root)
Sets a new root for the context

Parameters:
root -

getRoot

INode getRoot()
returns the root of the context

Returns:

newNode

java.lang.String newNode(java.lang.String NodeLabel,
                         java.lang.String fatherId)
inserts a new node in the context

Parameters:
NodeLabel - label of the node
fatherId - id of the father node
Returns:

renameNode

java.lang.String renameNode(java.lang.String NodeId,
                            java.lang.String newLabel)
change the name of the node with given id

Parameters:
NodeId -
newLabel -
Returns:

moveNode

void moveNode(java.lang.String NodeId,
              java.lang.String newFatherNodeId)
removes node to the other place in the tree

Parameters:
NodeId -
newFatherNodeId -

removeNode

void removeNode(java.lang.String NodeId)
This method can be used to remove a given Node from the Node hierarchy. Note that if you remove a node that is not a leaf, all its children will be removed from the hierarchy.

Parameters:
NodeId - The identifier of the Node to be removed

getNode

INode getNode(java.lang.String conceptId)
This method can be used to find a concept in the hierarchy using its Concept Id


getAllNodeNames

java.lang.String getAllNodeNames(java.lang.String separator)
Returns string of the labels of all the nodes in the context. Labels are separated by separator The returned string is ordered as in depth first traversal Each name is followed by the specified separator

Parameters:
separator -
Returns:


© 2010 Knowdive @ DISI