org.daml.rdf.jena.mem
Class DynamicStoreMem

java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.StoreCom
        |
        +--org.daml.rdf.jena.mem.StoreMem
              |
              +--org.daml.rdf.jena.mem.DynamicStoreMem
All Implemented Interfaces:
DynamicStore, com.hp.hpl.mesa.rdf.jena.common.Store

public class DynamicStoreMem
extends StoreMem
implements DynamicStore

Implementation of a DynamicStore.


Nested Class Summary
 
Nested classes inherited from class org.daml.rdf.jena.mem.StoreMem
StoreMem.NodeMap
 
Field Summary
protected  boolean dynamicLoadp
          Flag that indicates if dynamic loading is enabled.
protected  DynamicModel model
          A DynamicModel used to read in dynamically loaded files
 
Constructor Summary
DynamicStoreMem()
           
DynamicStoreMem(DynamicModel model)
           
 
Method Summary
 com.hp.hpl.mesa.rdf.jena.model.Property createProperty(java.lang.String uri, com.hp.hpl.mesa.rdf.jena.model.Model m)
           
 com.hp.hpl.mesa.rdf.jena.model.Property createProperty(java.lang.String namespace, java.lang.String localPart, com.hp.hpl.mesa.rdf.jena.model.Model m)
           
 com.hp.hpl.mesa.rdf.jena.model.Resource createResource(com.hp.hpl.mesa.rdf.jena.model.Model m)
           
 com.hp.hpl.mesa.rdf.jena.model.Resource createResource(java.lang.String uri, com.hp.hpl.mesa.rdf.jena.model.Model m)
           
 boolean dynamicLoad()
          Returns true if dynamic loading is enabled.
 DynamicModel getModel()
          Return the model for this store.
 com.hp.hpl.mesa.rdf.jena.model.Property getProperty(java.lang.String uri, com.hp.hpl.mesa.rdf.jena.model.Model m)
           
 com.hp.hpl.mesa.rdf.jena.model.Property getProperty(java.lang.String namespace, java.lang.String localPart, com.hp.hpl.mesa.rdf.jena.model.Model m)
           
 boolean setDynamicLoad(boolean dynamicp)
          Enable or disable dynamic loading.
 void setModel(DynamicModel model)
          Set the model for this store.
 
Methods inherited from class org.daml.rdf.jena.mem.StoreMem
add, contains, contains, getProperty, getResource, list, list, listByObject, listByPredicate, listBySubject, listNameSpaces, listSubjects, remove, size
 
Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.StoreCom
close, createAlt, createAlt, createBag, createBag, createSeq, createSeq, createStatement, getAlt, getAlt, getBag, getBag, getSeq, getSeq, getStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.mesa.rdf.jena.common.Store
add, close, contains, contains, createAlt, createAlt, createBag, createBag, createSeq, createSeq, createStatement, getAlt, getAlt, getBag, getBag, getProperty, getResource, getSeq, getSeq, getStatement, list, list, listByObject, listByPredicate, listBySubject, listNameSpaces, listSubjects, remove, size
 

Field Detail

model

protected DynamicModel model
A DynamicModel used to read in dynamically loaded files


dynamicLoadp

protected boolean dynamicLoadp
Flag that indicates if dynamic loading is enabled.

Constructor Detail

DynamicStoreMem

public DynamicStoreMem(DynamicModel model)

DynamicStoreMem

public DynamicStoreMem()
Method Detail

setDynamicLoad

public boolean setDynamicLoad(boolean dynamicp)
Enable or disable dynamic loading. The dynamicStore must have a model in order to enable dynamic loading.

Specified by:
setDynamicLoad in interface DynamicStore

dynamicLoad

public boolean dynamicLoad()
Returns true if dynamic loading is enabled.

Specified by:
dynamicLoad in interface DynamicStore

setModel

public void setModel(DynamicModel model)
Set the model for this store. The model is used to execute the dynamic loading.

Specified by:
setModel in interface DynamicStore

getModel

public DynamicModel getModel()
Return the model for this store.

Specified by:
getModel in interface DynamicStore

createResource

public com.hp.hpl.mesa.rdf.jena.model.Resource createResource(com.hp.hpl.mesa.rdf.jena.model.Model m)
                                                       throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Specified by:
createResource in interface com.hp.hpl.mesa.rdf.jena.common.Store
Overrides:
createResource in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException

createResource

public com.hp.hpl.mesa.rdf.jena.model.Resource createResource(java.lang.String uri,
                                                              com.hp.hpl.mesa.rdf.jena.model.Model m)
                                                       throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Specified by:
createResource in interface com.hp.hpl.mesa.rdf.jena.common.Store
Overrides:
createResource in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException

createProperty

public com.hp.hpl.mesa.rdf.jena.model.Property createProperty(java.lang.String uri,
                                                              com.hp.hpl.mesa.rdf.jena.model.Model m)
                                                       throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Specified by:
createProperty in interface com.hp.hpl.mesa.rdf.jena.common.Store
Overrides:
createProperty in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException

createProperty

public com.hp.hpl.mesa.rdf.jena.model.Property createProperty(java.lang.String namespace,
                                                              java.lang.String localPart,
                                                              com.hp.hpl.mesa.rdf.jena.model.Model m)
                                                       throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Specified by:
createProperty in interface com.hp.hpl.mesa.rdf.jena.common.Store
Overrides:
createProperty in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException

getProperty

public com.hp.hpl.mesa.rdf.jena.model.Property getProperty(java.lang.String uri,
                                                           com.hp.hpl.mesa.rdf.jena.model.Model m)
                                                    throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Specified by:
getProperty in interface com.hp.hpl.mesa.rdf.jena.common.Store
Overrides:
getProperty in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException

getProperty

public com.hp.hpl.mesa.rdf.jena.model.Property getProperty(java.lang.String namespace,
                                                           java.lang.String localPart,
                                                           com.hp.hpl.mesa.rdf.jena.model.Model m)
                                                    throws com.hp.hpl.mesa.rdf.jena.model.RDFException
Specified by:
getProperty in interface com.hp.hpl.mesa.rdf.jena.common.Store
Overrides:
getProperty in class com.hp.hpl.mesa.rdf.jena.common.StoreCom
com.hp.hpl.mesa.rdf.jena.model.RDFException