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