gate.gui.ontology
Class PropertyValue

java.lang.Object
  extended by gate.gui.ontology.PropertyValue

public class PropertyValue
extends Object

There are various types of properties (e.g. RDF/Object/Datatype/Annotation etc). Resources with different properties have different types of property values (e.g. Instances for Object properties, string values for annotation/datatype and so on). This class represents a property value and its type.

Author:
niraj

Field Summary
protected  RDFProperty property
          The instance of property for which the value is of type.
protected  Object value
          The actual value (it can be string or an instance of OResource)
 
Constructor Summary
PropertyValue(RDFProperty property, Object value)
          Constructor
 
Method Summary
 RDFProperty getProperty()
          Gets the associated property
 Object getValue()
          Gets the set value
 String toString()
          Returns the string representation (i.e. propertyURI("value")) which is used to show in the right hand side panel of the Ontology Editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

property

protected RDFProperty property
The instance of property for which the value is of type.


value

protected Object value
The actual value (it can be string or an instance of OResource)

Constructor Detail

PropertyValue

public PropertyValue(RDFProperty property,
                     Object value)
Constructor

Parameters:
property -
value -
Method Detail

getProperty

public RDFProperty getProperty()
Gets the associated property


getValue

public Object getValue()
Gets the set value


toString

public String toString()
Returns the string representation (i.e. propertyURI("value")) which is used to show in the right hand side panel of the Ontology Editor.

Overrides:
toString in class Object