|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISession
An interface representing a user's session. The session object can provide a context for various user interface components and model operations. In a "single user per JVM" environment like TopBraid Composer, there is only a single ISession instance at any time, while in a client/server environment there may be multiple sessions going on at the same time.
| Method Summary | |
|---|---|
com.hp.hpl.jena.rdf.model.Model |
ensureBaseModelExists(java.net.URI baseURI)
Manually ensures that a Model has been instantiated and registered for a given base URI/Graph combination. |
com.hp.hpl.jena.rdf.model.Model |
getBaseModel(com.hp.hpl.jena.graph.Graph graph)
Gets the base model used for a given graph in this session. |
com.hp.hpl.jena.rdf.model.Model |
getBaseModel(java.net.URI baseURI)
Gets the current base Model for a given base URI, if one is loaded. |
IChangeEngine |
getChangeEngine()
Gets the session's change engine. |
java.lang.String |
getNodeId(com.hp.hpl.jena.rdf.model.RDFNode node)
|
com.hp.hpl.jena.ontology.OntModel |
getOntModel(java.net.URI baseURI)
Gets the OntModel that has been associated with a given base URI in this session. |
java.lang.Object |
getRuntimeObject(java.lang.String key)
Gets a runtime object that has been attached to this session using setRuntimeObject(). |
boolean |
isDeletable(com.hp.hpl.jena.rdf.model.Statement s)
Checks whether a given Statement can be deleted, i.e. |
boolean |
isEditable(java.net.URI baseURI)
|
boolean |
isVisible(com.hp.hpl.jena.rdf.model.Resource resource)
Checks if a given Resource is visible for this session. |
void |
setRuntimeObject(java.lang.String key,
java.lang.Object value)
Sets a runtime object; an arbitrary name/value pair. |
| Methods inherited from interface org.topbraid.core.session.IModelSelection |
|---|
addModelSelectionListener, getSelectedBaseModel, getSelectedBaseURI, getSelectedOntModel, isFastModelSelected, removeModelSelectionListener, setSelectedBaseURI |
| Methods inherited from interface org.topbraid.core.session.IResourceSelection |
|---|
addResourceSelectionListener, getPreviouslySelectedResource, getSelectedResource, removeResourceSelectionListener, setSelectedResource |
| Method Detail |
|---|
com.hp.hpl.jena.rdf.model.Model ensureBaseModelExists(java.net.URI baseURI)
baseURI - the base URI to register
com.hp.hpl.jena.rdf.model.Model getBaseModel(com.hp.hpl.jena.graph.Graph graph)
graph -
com.hp.hpl.jena.rdf.model.Model getBaseModel(java.net.URI baseURI)
baseURI - the URI to get the Model for
IChangeEngine getChangeEngine()
java.lang.String getNodeId(com.hp.hpl.jena.rdf.model.RDFNode node)
com.hp.hpl.jena.ontology.OntModel getOntModel(java.net.URI baseURI)
baseURI - the base URI
java.lang.Object getRuntimeObject(java.lang.String key)
key - the key to get the object for
boolean isDeletable(com.hp.hpl.jena.rdf.model.Statement s)
s - the statement to check
boolean isEditable(java.net.URI baseURI)
boolean isVisible(com.hp.hpl.jena.rdf.model.Resource resource)
resource - the resource to test
void setRuntimeObject(java.lang.String key,
java.lang.Object value)
key - the key to set the object forvalue - the value to set or null to delete an existing value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||