public interface IGramar
Modifier and Type | Method and Description |
---|---|
void |
free()
Free any cached resources
|
String |
getId() |
String |
getLabel() |
String |
getMainProductionId()
Answers the current relative path into the gramar of the gramar's primary production
|
String |
getProvider() |
IModel |
getSampleModel(String name) |
List<ISampleModel> |
getSamples() |
ITemplate |
getTemplate(String id,
IGramarContext context) |
InputStream |
getTemplateBinary(String src) |
String |
getTemplateSource(String id) |
Double |
scoreApplicability(IModel proposedModel)
Estimates the applicability of the receiving gramar to the specified
proposed model.
|
void |
setPrimaryProductionId(String newId)
Sets the relative path of the gramar production that will be processed when the gramar
is applied to the model.
|
String getId()
String getLabel()
String getProvider()
String getMainProductionId()
void setPrimaryProductionId(String newId)
newId
- ITemplate getTemplate(String id, IGramarContext context) throws GramarException
GramarException
String getTemplateSource(String id) throws NoSuchResourceException
id
- NoSuchResourceException
InputStream getTemplateBinary(String src) throws NoSuchResourceException
src
- NoSuchResourceException
List<ISampleModel> getSamples()
IModel getSampleModel(String name)
name
- void free()
Double scoreApplicability(IModel proposedModel)
proposedModel
- Copyright © 2015. All rights reserved.