org.topbraid.forms.config
Class FormsConfigPlugin
java.lang.Object
org.topbraid.core.config.AbstractConfigPlugin
org.topbraid.forms.config.FormsConfigPlugin
- All Implemented Interfaces:
- IConfigPlugin
public class FormsConfigPlugin
- extends AbstractConfigPlugin
Synchronizes the forms metadata with changes in the model.
- Author:
- Holger Knublauch
|
Method Summary |
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). |
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 |
FormsConfigPlugin
public FormsConfigPlugin()
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- Overrides:
configLoaded in class AbstractConfigPlugin
- 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
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- Overrides:
getSystemModels in class AbstractConfigPlugin
- Returns:
- optional system models or null
setPrefixes
public void setPrefixes(com.hp.hpl.jena.rdf.model.Model configModel)
- Specified by:
setPrefixes in interface IConfigPlugin- Overrides:
setPrefixes in class AbstractConfigPlugin