Class VirtualTemplateFactory
- java.lang.Object
-
- org.eclipse.epsilon.egl.EglTemplateFactory
-
- org.eclipse.epsilon.egl.EglFileGeneratingTemplateFactory
-
- org.eclipse.epsilon.egx.engine.test.acceptance.virtual.VirtualTemplateFactory
-
public class VirtualTemplateFactory extends EglFileGeneratingTemplateFactory
-
-
Field Summary
-
Fields inherited from class org.eclipse.epsilon.egl.EglFileGeneratingTemplateFactory
outputRoot, outputRootPath
-
Fields inherited from class org.eclipse.epsilon.egl.EglTemplateFactory
context, root
-
-
Constructor Summary
Constructors Constructor Description VirtualTemplateFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVirtualTemplate(java.lang.String path, java.lang.String code)
protected EglTemplate
createTemplate(EglTemplateSpecification spec)
Creates a template from the given specification.java.lang.Object
getContentFor(java.lang.String path)
java.util.Collection<java.lang.String>
getOutputFiles()
EglTemplate
load(java.net.URI resource)
Loads an EglTemplate for the EGL code stored in the given resource.-
Methods inherited from class org.eclipse.epsilon.egl.EglFileGeneratingTemplateFactory
getOutputRoot, getOutputRootOrRoot, setOutputRoot
-
Methods inherited from class org.eclipse.epsilon.egl.EglTemplateFactory
copyState, getContext, getContextForNewTemplate, getDefaultIncrementalitySettings, getTemplateExecutionListeners, getTemplateRoot, handleFailedLoad, initialiseRoot, load, load, load, load, load, name, prepare, resolveRoot, resolveTemplate, setContext, setDefaultFormatter, setDefaultFormatters, setDefaultFormatters, setRoot, setTemplateRoot, toString
-
-
-
-
Method Detail
-
addVirtualTemplate
public void addVirtualTemplate(java.lang.String path, java.lang.String code)
-
load
public EglTemplate load(java.net.URI resource) throws EglRuntimeException
Description copied from class:EglTemplateFactory
Loads an EglTemplate for the EGL code stored in the given resource. Subclasses should override#createTemplate(String, URI)
, rather than this method, unless they wish to alter the way in which a resource is transformed into an EglTemplateSpecification- Overrides:
load
in classEglTemplateFactory
- Throws:
EglRuntimeException
-
createTemplate
protected EglTemplate createTemplate(EglTemplateSpecification spec) throws java.lang.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 classEglFileGeneratingTemplateFactory
- Throws:
java.lang.Exception
-
getOutputFiles
public java.util.Collection<java.lang.String> getOutputFiles()
-
getContentFor
public java.lang.Object getContentFor(java.lang.String path)
-
-