Package de.uka.ipd.sdq.workflow.mdsd.oaw
Class XpandGeneratorJob
- java.lang.Object
-
- de.uka.ipd.sdq.workflow.mdsd.oaw.AbstractOAWWorkflowJobBridge<org.eclipse.xpand2.Generator>
-
- de.uka.ipd.sdq.workflow.mdsd.oaw.XpandGeneratorJob
-
- All Implemented Interfaces:
IJob
public class XpandGeneratorJob extends AbstractOAWWorkflowJobBridge<org.eclipse.xpand2.Generator>
Job which creates, configures and runs an XPand generator.
-
-
Field Summary
-
Fields inherited from class de.uka.ipd.sdq.workflow.mdsd.oaw.AbstractOAWWorkflowJobBridge
oawJob
-
-
Constructor Summary
Constructors Constructor Description XpandGeneratorJob(HashMap<String,Object> slotContents, EPackage[] ePackages, org.eclipse.xpand2.output.Outlet[] outlets, String expandExpression)
Creates a new XPand generator job without global variables.XpandGeneratorJob(HashMap<String,Object> slotContents, EPackage[] ePackages, org.eclipse.xpand2.output.Outlet[] outlets, String expandExpression, org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.GlobalVarDef[] globalVarDefs)
Creates a new XPand generator job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAdvices()
Gets the advices.String
getExpandExpression()
Gets the expand expression.String
getFileEncoding()
Gets the file encoding.boolean
isBeautifyCode()
Checks if is beautify code.boolean
isCheckProtectedRegions()
Checks if is check protected regions.void
setBeautifyCode(boolean beautifyCode)
Sets the beautify code.void
setCheckProtectedRegions(boolean checkProtectedRegions)
Sets the check protected regions.void
setFileEncoding(String fileEncoding)
Sets the file encoding.protected void
setupOAWJob(org.eclipse.xpand2.Generator generatorJob)
Template method in which hiers can add logic to configure their specific oAW jobs.-
Methods inherited from class de.uka.ipd.sdq.workflow.mdsd.oaw.AbstractOAWWorkflowJobBridge
cleanup, execute, getName, setupContext
-
-
-
-
Constructor Detail
-
XpandGeneratorJob
public XpandGeneratorJob(HashMap<String,Object> slotContents, EPackage[] ePackages, org.eclipse.xpand2.output.Outlet[] outlets, String expandExpression, org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.GlobalVarDef[] globalVarDefs)
Creates a new XPand generator job.- Parameters:
slotContents
- Slots and their content.ePackages
- EMF Meta-models which can be used by the generator.outlets
- Outlets.expandExpression
- Initial generation expression.globalVarDefs
- Definitions for global Variables.
-
XpandGeneratorJob
public XpandGeneratorJob(HashMap<String,Object> slotContents, EPackage[] ePackages, org.eclipse.xpand2.output.Outlet[] outlets, String expandExpression)
Creates a new XPand generator job without global variables.- Parameters:
slotContents
- Slots and their content.ePackages
- EMF Meta-models which can be used by the generator.outlets
- Outlets.expandExpression
- Initial generation expression.
-
-
Method Detail
-
setupOAWJob
protected void setupOAWJob(org.eclipse.xpand2.Generator generatorJob)
Description copied from class:AbstractOAWWorkflowJobBridge
Template method in which hiers can add logic to configure their specific oAW jobs.- Specified by:
setupOAWJob
in classAbstractOAWWorkflowJobBridge<org.eclipse.xpand2.Generator>
- Parameters:
generatorJob
- The job to be set up
-
isCheckProtectedRegions
public boolean isCheckProtectedRegions()
Checks if is check protected regions.- Returns:
- true, if is check protected regions
-
setCheckProtectedRegions
public void setCheckProtectedRegions(boolean checkProtectedRegions)
Sets the check protected regions.- Parameters:
checkProtectedRegions
- the new check protected regions
-
getFileEncoding
public String getFileEncoding()
Gets the file encoding.- Returns:
- the file encoding
-
setFileEncoding
public void setFileEncoding(String fileEncoding)
Sets the file encoding.- Parameters:
fileEncoding
- the new file encoding
-
getExpandExpression
public String getExpandExpression()
Gets the expand expression.- Returns:
- the expand expression
-
isBeautifyCode
public boolean isBeautifyCode()
Checks if is beautify code.- Returns:
- true, if is beautify code
-
setBeautifyCode
public void setBeautifyCode(boolean beautifyCode)
Sets the beautify code.- Parameters:
beautifyCode
- the new beautify code
-
-