|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topbraid.core.TB
public class TB
The singleton entry object into the TopBraid data structures.
Any TopBraid application must call init(org.topbraid.core.session.ISessionProvider, org.topbraid.core.registry.IOntModelRegistry, org.eclipse.core.runtime.Preferences) to connect to TopBraid.
| Field Summary | |
|---|---|
static java.lang.String |
TBC_VERSION
The current TBC version (number with digits only) |
| Constructor Summary | |
|---|---|
TB()
|
|
| Method Summary | |
|---|---|
static IFileRegistry |
getFileRegistry()
Gets the global file registry. |
static IGraphRegistry |
getGraphRegistry()
Gets the global graph registry. |
static IOntModelRegistry |
getOntModelRegistry()
Gets the global OntModel registry, which maintains all currently open OntModels (for all sessions). |
static org.eclipse.core.runtime.Preferences |
getPreferences()
Gets the global Preferences object that is available to store global user options. |
static ISession |
getSession()
Gets the current session, using the associated ISessionProvider. |
static ISessionProvider |
getSessionProvider()
Gets the ISessionProvider that has been specified in the init(org.topbraid.core.session.ISessionProvider, org.topbraid.core.registry.IOntModelRegistry, org.eclipse.core.runtime.Preferences) call. |
static void |
init(ISessionProvider sessionProvider,
IOntModelRegistry ontModelRegistry,
org.eclipse.core.runtime.Preferences preferences)
Initializes the TopBraid platform. |
static void |
initFileRegistry(IFileRegistry fileRegistry)
|
static void |
initGraphRegistry(IGraphRegistry graphRegistry)
|
static boolean |
isInitialized()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TBC_VERSION
| Constructor Detail |
|---|
public TB()
| Method Detail |
|---|
public static IFileRegistry getFileRegistry()
initFileRegistry(IFileRegistry) as long as the init(org.topbraid.core.session.ISessionProvider, org.topbraid.core.registry.IOntModelRegistry, org.eclipse.core.runtime.Preferences)
method has not been called.
The default value is an instanceof of FileRegistry.
initFileRegistry(org.topbraid.core.registry.IFileRegistry)public static IGraphRegistry getGraphRegistry()
GraphRegistry
initGraphRegistry(org.topbraid.core.registry.IGraphRegistry)public static IOntModelRegistry getOntModelRegistry()
init(org.topbraid.core.session.ISessionProvider, org.topbraid.core.registry.IOntModelRegistry, org.eclipse.core.runtime.Preferences) method.
init(org.topbraid.core.session.ISessionProvider, org.topbraid.core.registry.IOntModelRegistry, org.eclipse.core.runtime.Preferences)public static org.eclipse.core.runtime.Preferences getPreferences()
public static ISession getSession()
public static ISessionProvider getSessionProvider()
init(org.topbraid.core.session.ISessionProvider, org.topbraid.core.registry.IOntModelRegistry, org.eclipse.core.runtime.Preferences) call.
public static void init(ISessionProvider sessionProvider,
IOntModelRegistry ontModelRegistry,
org.eclipse.core.runtime.Preferences preferences)
sessionProvider - an ISessionProviderontModelRegistry - an IOntModelRegistrypreferences - a Preferences object or nullpublic static void initFileRegistry(IFileRegistry fileRegistry)
public static void initGraphRegistry(IGraphRegistry graphRegistry)
public static boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||