Package org.eclipse.epsilon.egl
Class EglFileGeneratingTemplateFactory
- java.lang.Object
-
- org.eclipse.epsilon.egl.EglTemplateFactory
-
- org.eclipse.epsilon.egl.EglFileGeneratingTemplateFactory
-
- Direct Known Subclasses:
CountingTemplateFactory
,VirtualTemplateFactory
public class EglFileGeneratingTemplateFactory extends EglTemplateFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected URI
outputRoot
protected String
outputRootPath
-
Fields inherited from class org.eclipse.epsilon.egl.EglTemplateFactory
context, root
-
-
Constructor Summary
Constructors Constructor Description EglFileGeneratingTemplateFactory()
EglFileGeneratingTemplateFactory(Path outputRoot)
EglFileGeneratingTemplateFactory(IEglContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EglTemplate
createTemplate(EglTemplateSpecification spec)
Creates a template from the given specification.String
getOutputRoot()
protected URI
getOutputRootOrRoot()
void
setOutputRoot(String path)
-
Methods inherited from class org.eclipse.epsilon.egl.EglTemplateFactory
copyState, getContext, getContextForNewTemplate, getDefaultIncrementalitySettings, getTemplateExecutionListeners, getTemplateRoot, handleFailedLoad, initialiseRoot, load, load, load, load, load, load, name, prepare, resolveRoot, resolveTemplate, setContext, setDefaultFormatter, setDefaultFormatters, setDefaultFormatters, setRoot, setTemplateRoot, toString
-
-
-
-
Constructor Detail
-
EglFileGeneratingTemplateFactory
public EglFileGeneratingTemplateFactory()
-
EglFileGeneratingTemplateFactory
public EglFileGeneratingTemplateFactory(IEglContext context)
-
EglFileGeneratingTemplateFactory
public EglFileGeneratingTemplateFactory(Path outputRoot) throws EglRuntimeException
- Parameters:
outputRoot
-- Throws:
EglRuntimeException
- Since:
- 1.6
-
-
Method Detail
-
getOutputRoot
public String getOutputRoot()
-
setOutputRoot
public void setOutputRoot(String path) throws EglRuntimeException
- Throws:
EglRuntimeException
-
createTemplate
protected EglTemplate createTemplate(EglTemplateSpecification spec) throws Exception
Description copied from class:EglTemplateFactory
Creates a template from the given specification. Subclasses may override to create different types of template.- Overrides:
createTemplate
in classEglTemplateFactory
- Throws:
Exception
-
getOutputRootOrRoot
protected URI getOutputRootOrRoot()
-
-