|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topbraid.core.session.AbstractSession
public abstract class AbstractSession
An abstract base implementation of ISession.
| Field Summary | |
|---|---|
protected java.net.URI |
baseURI
|
| Constructor Summary | |
|---|---|
AbstractSession()
|
|
| Method Summary | |
|---|---|
void |
addModelSelectionListener(IModelSelectionListener l)
Adds an IModelSelectionListener to receive events whenever the session's global model selection changes. |
void |
addResourceSelectionListener(IResourceSelectionListener l)
Adds an IResourceSelectionListener to receive events whenever the resource selection changes. |
com.hp.hpl.jena.rdf.model.RDFNode |
getNode(java.lang.String id)
|
java.lang.String |
getNodeId(com.hp.hpl.jena.rdf.model.RDFNode node)
|
NodeIdMap |
getNodeIdMap()
|
java.net.URI |
getPreviouslySelectedBaseURI()
|
com.hp.hpl.jena.rdf.model.Resource |
getPreviouslySelectedResource()
|
com.hp.hpl.jena.rdf.model.Resource |
getResource(java.lang.String id)
|
java.lang.Object |
getRuntimeObject(java.lang.String key)
Gets a runtime object that has been attached to this session using setRuntimeObject(). |
com.hp.hpl.jena.rdf.model.Model |
getSelectedBaseModel()
Gets the currently selected base model. |
java.net.URI |
getSelectedBaseURI()
|
com.hp.hpl.jena.ontology.OntModel |
getSelectedOntModel()
Gets the currently selected OntModel. |
com.hp.hpl.jena.rdf.model.Resource |
getSelectedResource()
Gets the currently selected Resource. |
boolean |
isFastModelSelected()
Checks if the current model is a "fast" model with only memory access (unlike database mode). |
void |
notifyModelSelectionListeners()
|
void |
removeModelSelectionListener(IModelSelectionListener l)
Removes a previously added IModelSelectionListener. |
void |
removeResourceSelectionListener(IResourceSelectionListener l)
Removes an IResourceSelectionListener that was previously added. |
void |
setRuntimeObject(java.lang.String key,
java.lang.Object value)
Sets a runtime object; an arbitrary name/value pair. |
void |
setSelectedBaseURI(java.net.URI baseURI)
Switches the selection to a different base URI. |
void |
setSelectedBaseURI(java.net.URI baseURI,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
protected void |
setSelectedOntModel(java.net.URI baseURI,
com.hp.hpl.jena.ontology.OntModel ontModel)
|
void |
setSelectedResource(com.hp.hpl.jena.rdf.model.Resource resource)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.topbraid.core.session.ISession |
|---|
ensureBaseModelExists, getBaseModel, getBaseModel, getChangeEngine, getOntModel, isDeletable, isEditable, isVisible |
| Field Detail |
|---|
protected java.net.URI baseURI
| Constructor Detail |
|---|
public AbstractSession()
| Method Detail |
|---|
public void addModelSelectionListener(IModelSelectionListener l)
IModelSelection
addModelSelectionListener in interface IModelSelectionl - the IModelSelectionListener to addpublic void addResourceSelectionListener(IResourceSelectionListener l)
IResourceSelection
addResourceSelectionListener in interface IResourceSelectionl - the listener to addpublic java.lang.String getNodeId(com.hp.hpl.jena.rdf.model.RDFNode node)
getNodeId in interface ISessionpublic com.hp.hpl.jena.rdf.model.RDFNode getNode(java.lang.String id)
public NodeIdMap getNodeIdMap()
public java.net.URI getPreviouslySelectedBaseURI()
public com.hp.hpl.jena.rdf.model.Resource getPreviouslySelectedResource()
getPreviouslySelectedResource in interface IResourceSelectionpublic com.hp.hpl.jena.rdf.model.Resource getResource(java.lang.String id)
public java.lang.Object getRuntimeObject(java.lang.String key)
ISession
getRuntimeObject in interface ISessionkey - the key to get the object for
public com.hp.hpl.jena.rdf.model.Model getSelectedBaseModel()
IModelSelection
getSelectedBaseModel in interface IModelSelectionpublic java.net.URI getSelectedBaseURI()
getSelectedBaseURI in interface IModelSelectionpublic com.hp.hpl.jena.ontology.OntModel getSelectedOntModel()
IModelSelection
getSelectedOntModel in interface IModelSelectionpublic com.hp.hpl.jena.rdf.model.Resource getSelectedResource()
IResourceSelection
getSelectedResource in interface IResourceSelectionpublic boolean isFastModelSelected()
isFastModelSelected in interface IModelSelectionpublic void notifyModelSelectionListeners()
public void removeModelSelectionListener(IModelSelectionListener l)
IModelSelection
removeModelSelectionListener in interface IModelSelectionl - the IModelSelectionListener to removepublic void removeResourceSelectionListener(IResourceSelectionListener l)
IResourceSelection
removeResourceSelectionListener in interface IResourceSelectionl - the listener to remove
public void setRuntimeObject(java.lang.String key,
java.lang.Object value)
ISession
setRuntimeObject in interface ISessionkey - the key to set the object forvalue - the value to set or null to delete an existing valuepublic void setSelectedBaseURI(java.net.URI baseURI)
setSelectedBaseURI in interface IModelSelectionbaseURI - the new base URI
public void setSelectedBaseURI(java.net.URI baseURI,
org.eclipse.core.runtime.IProgressMonitor monitor)
protected void setSelectedOntModel(java.net.URI baseURI,
com.hp.hpl.jena.ontology.OntModel ontModel)
public void setSelectedResource(com.hp.hpl.jena.rdf.model.Resource resource)
setSelectedResource in interface IResourceSelection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||