org.topbraid.core.config
Class AbstractConfigPlugin
java.lang.Object
org.topbraid.core.config.AbstractConfigPlugin
- All Implemented Interfaces:
- IConfigPlugin
- Direct Known Subclasses:
- DiagramsConfigPlugin, FormsConfigPlugin, GraphConfigPlugin, InferenceConfigPlugin
public abstract class AbstractConfigPlugin
- extends java.lang.Object
- implements IConfigPlugin
|
Method Summary |
void |
changeOperationPerformed(ChangeOperation operation,
boolean undone,
com.hp.hpl.jena.rdf.model.Model configModel,
java.net.URI baseURI)
|
boolean |
configLoaded(java.net.URI baseURI,
com.hp.hpl.jena.rdf.model.Model configModel)
Called immediately after a config file has been loaded (or
an empty config has been created). |
void |
configSaved(java.net.URI baseURI,
com.hp.hpl.jena.rdf.model.Model configModel)
|
com.hp.hpl.jena.rdf.model.Model[] |
getSystemModels()
Gets (optional) global models with system classes etc. |
void |
setPrefixes(com.hp.hpl.jena.rdf.model.Model configModel)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractConfigPlugin
public AbstractConfigPlugin()
changeOperationPerformed
public void changeOperationPerformed(ChangeOperation operation,
boolean undone,
com.hp.hpl.jena.rdf.model.Model configModel,
java.net.URI baseURI)
- Specified by:
changeOperationPerformed in interface IConfigPlugin
configLoaded
public boolean configLoaded(java.net.URI baseURI,
com.hp.hpl.jena.rdf.model.Model configModel)
- Description copied from interface:
IConfigPlugin
- Called immediately after a config file has been loaded (or
an empty config has been created). This can be used to load
additional files that are referenced from the configuration
file, e.g. external form files.
- Specified by:
configLoaded in interface IConfigPlugin
- Parameters:
baseURI - the base URIconfigModel - the new configuration model
- Returns:
- true if the method has had side effects (such as deleting
legacy files) so that the tbc file should be saved immediately
configSaved
public void configSaved(java.net.URI baseURI,
com.hp.hpl.jena.rdf.model.Model configModel)
- Specified by:
configSaved in interface IConfigPlugin
getSystemModels
public com.hp.hpl.jena.rdf.model.Model[] getSystemModels()
- Description copied from interface:
IConfigPlugin
- Gets (optional) global models with system classes etc. Example include
the forms meta-ontology that shall be included in each config model
at run-time.
Note that each config plugin should reuse the same Model instance
as a static entity to minimize load time. Also note that plugins must
bundle any files that are loaded because TopBraid cannot assume anything
about the network connection and workspace files.
- Specified by:
getSystemModels in interface IConfigPlugin
- Returns:
- optional system models or null
setPrefixes
public void setPrefixes(com.hp.hpl.jena.rdf.model.Model configModel)
- Specified by:
setPrefixes in interface IConfigPlugin