edu.lehigh.swat.hawk.storage
Class StorageModel

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.StorageModel
Direct Known Subclasses:
PersistentStorageModel, SimpleMemoryStorage

public abstract class StorageModel
extends java.lang.Object

Title: StorageModel.java

Description: a general representation of storage model. implementations depend on different storage approaches


Constructor Summary
StorageModel()
           
 
Method Summary
abstract  void addDocument(Document d)
          Add a document to this model.
abstract  Document createDocument()
          Create an Document object.
abstract  Ontology createOntology()
          Create an Ontology object.
abstract  Document getDocument(java.lang.String url)
          Get the specified document.
abstract  java.util.Iterator getDocumentIterator()
          Get all the documents in the model.
abstract  void pushImports(Ontology ont)
          Add imports objects to ontology, for the use of memory-based storage model.
abstract  void setImplictImports(boolean imp)
          Set whether or not include implictly imported documents.
abstract  void updateDocument(Document d)
          Update a document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageModel

public StorageModel()
Method Detail

addDocument

public abstract void addDocument(Document d)
Add a document to this model.


getDocument

public abstract Document getDocument(java.lang.String url)
Get the specified document.


updateDocument

public abstract void updateDocument(Document d)
Update a document.


getDocumentIterator

public abstract java.util.Iterator getDocumentIterator()
Get all the documents in the model.


setImplictImports

public abstract void setImplictImports(boolean imp)
Set whether or not include implictly imported documents.


createOntology

public abstract Ontology createOntology()
Create an Ontology object.


createDocument

public abstract Document createDocument()
Create an Document object.


pushImports

public abstract void pushImports(Ontology ont)
Add imports objects to ontology, for the use of memory-based storage model.