public interface IGramarPlatform
Modifier and Type | Method and Description |
---|---|
void |
addPluginSource(IPluginSource source) |
void |
addTemplatingExtension(ITemplatingExtension extension)
Caches the given extension for later use
|
IGramarApplicationStatus |
apply(IModel model,
IGramar gramar) |
IGramarApplicationStatus |
apply(IModel model,
IGramar gramar,
IFileStore fileStore) |
IGramarApplicationStatus |
apply(IModel model,
String gramarId) |
IGramarApplicationStatus |
apply(IModel model,
String gramarId,
IFileStore fileStore) |
IFileStore |
getDefaultFileStore() |
IFileStore |
getFileStore(String fileStoreId)
Searches all known plugin sources for an extension that provides a filestore with the given
filestore ID.
|
IGramar |
getGramar(String gramarId) |
IGramar[] |
getKnownGramars()
Returns aa array of all Gramars known to any PluginSource
|
ITemplatingExtension |
getTemplatingExtension(String extensionId)
If not already cached, searches the known plugin sources for the extension, caches it, then returns it.
|
GramarScore[] |
scoreKnownGramars(IModel proposedModel) |
void |
setDefaultFileStore(IFileStore fileStore) |
void addPluginSource(IPluginSource source)
IGramar getGramar(String gramarId) throws NoSuchGramarException, InvalidGramarException
IFileStore getDefaultFileStore()
void setDefaultFileStore(IFileStore fileStore)
IFileStore getFileStore(String fileStoreId) throws NoSuchFileStoreException
fileStoreId
- NoSuchFileStoreException
void addTemplatingExtension(ITemplatingExtension extension)
ITemplatingExtension getTemplatingExtension(String extensionId) throws NoSuchTemplatingExtensionException, InvalidTemplateExtensionException
IGramarApplicationStatus apply(IModel model, IGramar gramar) throws GramarException
GramarException
IGramarApplicationStatus apply(IModel model, String gramarId) throws GramarException
GramarException
IGramarApplicationStatus apply(IModel model, IGramar gramar, IFileStore fileStore) throws GramarException
GramarException
IGramarApplicationStatus apply(IModel model, String gramarId, IFileStore fileStore) throws GramarException
GramarException
IGramar[] getKnownGramars()
GramarScore[] scoreKnownGramars(IModel proposedModel)
Copyright © 2015. All rights reserved.