Package org.eclipse.epsilon.egl
Class EglTemplate
- java.lang.Object
-
- org.eclipse.epsilon.egl.EglTemplate
-
- Direct Known Subclasses:
EglPersistentTemplate
public class EglTemplate extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Collection<ITemplateExecutionListener>
listeners
protected IEglModule
module
protected java.lang.String
name
protected Template
template
-
Constructor Summary
Constructors Constructor Description EglTemplate(EglTemplateSpecification spec, IEglContext context)
-
Method Summary
-
-
-
Field Detail
-
module
protected final IEglModule module
-
name
protected final java.lang.String name
-
template
protected final Template template
-
listeners
protected final java.util.Collection<ITemplateExecutionListener> listeners
-
-
Constructor Detail
-
EglTemplate
public EglTemplate(EglTemplateSpecification spec, IEglContext context) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
getName
public java.lang.String getName()
-
populate
public void populate(java.lang.String name, java.lang.Object value)
-
process
public java.lang.String process() throws EglRuntimeException
- Throws:
EglRuntimeException
-
merge
public java.lang.String merge(java.lang.String existing) throws EglRuntimeException
- Throws:
EglRuntimeException
-
addProtectedRegionWarning
protected void addProtectedRegionWarning(ProtectedRegionWarning warning)
-
getContents
protected java.lang.String getContents()
-
isProcessed
protected boolean isProcessed()
-
getFormatter
public Formatter getFormatter()
-
setFormatter
public void setFormatter(Formatter formatter)
-
getIncrementalitySettings
public IncrementalitySettings getIncrementalitySettings()
-
setIncrementalitySettings
public void setIncrementalitySettings(IncrementalitySettings incrementalitySettings)
-
setFormatters
public void setFormatters(Formatter... formatters)
-
setFormatters
public void setFormatters(java.util.Collection<Formatter> formatters)
-
getTemplate
public Template getTemplate()
-
getModule
public IEglModule getModule()
-
getParseProblems
public java.util.List<ParseProblem> getParseProblems()
-
getDeclaredModelDefinitions
public java.util.List<ModelDeclaration> getDeclaredModelDefinitions()
-
getDeclaredOperations
public OperationList getDeclaredOperations()
-
getImports
public java.util.List<Import> getImports()
-
getModelDefinitions
public java.util.Set<ModelDeclaration> getModelDefinitions()
-
getOperations
public OperationList getOperations()
-
printWarning
protected void printWarning(java.lang.String message)
-
reset
public void reset()
-
-