edu.lehigh.swat.hawk.storage.simplememory
Class OntObject

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.simplememory.SerializableClass
      extended by edu.lehigh.swat.hawk.storage.simplememory.OntObject
All Implemented Interfaces:
OntObject, java.io.Serializable
Direct Known Subclasses:
Individual, OntClass, OntObject, OntProperty

public class OntObject
extends SerializableClass
implements OntObject

A simple implementation of core.OntObject in memory.

See Also:
Serialized Form

Constructor Summary
OntObject()
          Constructor
 
Method Summary
 void addDescription(java.lang.String des)
          Set the description, comment, etc.
 void deleteDescription(java.lang.String des)
          Delete a description.
 java.util.Iterator getAllDescriptions()
          Get all the descriptions.
 java.lang.String getDescription()
          Get the description, comment, etc.
 ObjectId getID()
          get the uri of this object
 java.lang.String getLabel()
          Get the label.
 Ontology getOntology()
          get the ontology that this object belongs to
 Document getSource()
          Get the source document.
 void setID(ObjectId oid)
          set the uri of this object
 void setLabel(java.lang.String l)
          Set the label.
 void setOntology(Ontology o)
          set the ontology that this object belongs to
 void setSource(Document d)
          Set the source document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OntObject

public OntObject()
Constructor

Method Detail

getID

public ObjectId getID()
get the uri of this object

Specified by:
getID in interface OntObject

setID

public void setID(ObjectId oid)
set the uri of this object

Specified by:
setID in interface OntObject

setOntology

public void setOntology(Ontology o)
set the ontology that this object belongs to

Specified by:
setOntology in interface OntObject

getOntology

public Ontology getOntology()
get the ontology that this object belongs to

Specified by:
getOntology in interface OntObject

setSource

public void setSource(Document d)
Set the source document.

Specified by:
setSource in interface OntObject

getSource

public Document getSource()
Get the source document.

Specified by:
getSource in interface OntObject

getDescription

public java.lang.String getDescription()
Get the description, comment, etc.

Specified by:
getDescription in interface OntObject

getAllDescriptions

public java.util.Iterator getAllDescriptions()
Get all the descriptions.

Specified by:
getAllDescriptions in interface OntObject

addDescription

public void addDescription(java.lang.String des)
Set the description, comment, etc.

Specified by:
addDescription in interface OntObject

deleteDescription

public void deleteDescription(java.lang.String des)
Delete a description.

Specified by:
deleteDescription in interface OntObject

getLabel

public java.lang.String getLabel()
Get the label.

Specified by:
getLabel in interface OntObject

setLabel

public void setLabel(java.lang.String l)
Set the label.

Specified by:
setLabel in interface OntObject