hok.model
Class TreeElement

java.lang.Object
  extended by hok.model.ATreeModel
      extended by hok.model.TreeElement
All Implemented Interfaces:
ITreeListeners, ITreeNode, java.lang.Comparable<TreeElement>

public class TreeElement
extends ATreeModel
implements java.lang.Comparable<TreeElement>

The TreeElement is a JavaBean representing an owl individual or owl object property. It stores the identifier, the label and the comment of the owl element.

Author:
holger

Constructor Summary
TreeElement(ITreeNode parent)
          Constructor.
 
Method Summary
 int compareTo(TreeElement o)
          Compares the element attribute of two TreeElement objects.
 java.lang.String getComment()
          Returns the rdfs:Comment of the owl element.
 java.lang.String getElement()
          Returns the URI of the owl element.
 java.lang.String getLabel()
          Returns the rdfs:Label of the owl element.
 void setComment(java.lang.String comment)
          Sets the rdfs:Comment of the owl element.
 void setElement(java.lang.String element)
          Sets the URI of the owl element.
 void setLabel(java.lang.String label)
          Sets the rdfs:Label of the owl element.
 
Methods inherited from class hok.model.ATreeModel
addChild, addListener, getChildren, getParent, hasChildren, removeChild, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeElement

public TreeElement(ITreeNode parent)
Constructor. Sets the parent ITreeNode element if there is one, or null if this is the root element.

Parameters:
parent - the parent element to set.
Method Detail

getElement

public java.lang.String getElement()
Returns the URI of the owl element.

Returns:
the String representation of the owl URI.

setElement

public void setElement(java.lang.String element)
Sets the URI of the owl element.

Parameters:
element - the String representation of the owl URI to set.

getComment

public java.lang.String getComment()
Returns the rdfs:Comment of the owl element.

Returns:
the String representation of the rdfs:Comment to set.

setComment

public void setComment(java.lang.String comment)
Sets the rdfs:Comment of the owl element.

Parameters:
comment - the String representation of the rdfs:Comment to set.

getLabel

public java.lang.String getLabel()
Returns the rdfs:Label of the owl element.

Returns:
the String representation of the rdfs:Label of the owl element.

setLabel

public void setLabel(java.lang.String label)
Sets the rdfs:Label of the owl element.

Parameters:
label - the String representation of the rdfs:Label to set.

compareTo

public int compareTo(TreeElement o)
Compares the element attribute of two TreeElement objects.

Specified by:
compareTo in interface java.lang.Comparable<TreeElement>
Parameters:
o - the object to compare.