ubiware.core.visualizer
Class SemanticStatementElementTreeModel

java.lang.Object
  extended by ubiware.core.visualizer.StringLiteralTreeModel
      extended by ubiware.core.visualizer.SemanticStatementElementTreeModel
All Implemented Interfaces:
javax.swing.tree.TreeModel, SubtreesTreeModel

public class SemanticStatementElementTreeModel
extends StringLiteralTreeModel

A specification of StringLiteralTreeModel in order to have indication about what exactly this string literal represents. This can be achieved by checking the type of an instance.

Author:
Nikos Mouchtaris
See Also:
SemanticStatementElementTreeModel.Type

Nested Class Summary
static class SemanticStatementElementTreeModel.Type
          The enumeration which describes the possible types that this tree model can have.
 
Constructor Summary
SemanticStatementElementTreeModel(javax.swing.tree.TreeModel root, java.lang.String value, SemanticStatementElementTreeModel.Type type)
          Creates a new instance of this tree model.
 
Method Summary
 SemanticStatementElementTreeModel.Type getType()
          Returns the SemanticStatementElementTreeModel.Type of this tree model.
 
Methods inherited from class ubiware.core.visualizer.StringLiteralTreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, toString, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SemanticStatementElementTreeModel

public SemanticStatementElementTreeModel(javax.swing.tree.TreeModel root,
                                         java.lang.String value,
                                         SemanticStatementElementTreeModel.Type type)
Creates a new instance of this tree model. The actual root of the whole tree (including other tree models that co-operate with this one) will be root. The literal string value of this tree with be value. Its type indicates whether it's a string literal for the subject, predicate or object of a SemanticStatement.

Parameters:
root - the actual tree of the whole tree structure
value - the literal string value of this tree model
type - the type of this tree model
Method Detail

getType

public SemanticStatementElementTreeModel.Type getType()
Returns the SemanticStatementElementTreeModel.Type of this tree model.

Returns:
the SemanticStatementElementTreeModel.Type of this tree model.