gramarId, label, mainproduction, META_FILE_NAME, provider, sampleModels, taglibs
Constructor and Description |
---|
ClasspathGramar(String gramarId)
Construct a Gramar object representing the pattern with ID patternID
|
Modifier and Type | Method and Description |
---|---|
InputStream |
readTemplateBinary(String id) |
String |
readTemplateSource(String id)
Look for a file in the classpath with the package with the same name as the pattern
For example, the file "d/xyz.txt" for pattern ID a.b.c would be found at resource /a/b/c/d/xyz.txt
If such a resource is found, return its source contents.
|
free, getId, getLabel, getMainProductionId, getProperties, getProvider, getSampleModel, getSamples, getTaglibs, getTemplate, getTemplateBinary, getTemplateSource, loadMeta, scoreApplicability, setPrimaryProductionId, storeSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
free, getId, getLabel, getMainProductionId, getProvider, getSampleModel, getSamples, getTemplate, getTemplateBinary, getTemplateSource, scoreApplicability, setPrimaryProductionId
public ClasspathGramar(String gramarId) throws InvalidGramarException
InvalidGramarException
public String readTemplateSource(String id) throws NoSuchResourceException
readTemplateSource
in class Gramar
NoSuchResourceException
public InputStream readTemplateBinary(String id) throws NoSuchResourceException
readTemplateBinary
in class Gramar
NoSuchResourceException
Copyright © 2015. All rights reserved.