org.eclipse.xtend.check
Class CheckComponent

java.lang.Object
  extended by org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
      extended by org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
          extended by org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent
              extended by org.eclipse.xtend.check.CheckComponent
All Implemented Interfaces:
org.eclipse.emf.mwe.core.WorkflowComponent, org.eclipse.emf.mwe.core.WorkflowComponentWithID, org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent

public class CheckComponent
extends AbstractExpressionsUsingWorkflowComponent


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent
AbstractExpressionsUsingWorkflowComponent.Debug, AbstractExpressionsUsingWorkflowComponent.GlobalVar, AbstractExpressionsUsingWorkflowComponent.GlobalVarDef
 
Field Summary
 
Fields inherited from class org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent
_advice, callback, exceptionHandler, exceptionsOnNullEvaluation, log, metaModels
 
Constructor Summary
CheckComponent()
           
 
Method Summary
 void addCheckFile(java.lang.String checkFile)
          Adds a check file.
protected  void checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
           
 java.util.List<java.lang.String> getCheckFiles()
           
 java.lang.String getComponentName()
          
 java.lang.String getEmfAllChildrenSlot()
           
 java.lang.String getExpression()
           
protected  java.util.Collection<?> getExpressionResult(ExecutionContext exeCtx, org.eclipse.emf.mwe.core.WorkflowContext context, java.lang.String expression2)
           
 java.lang.String getLogMessage()
          
protected  void invokeInternal2(org.eclipse.emf.mwe.core.WorkflowContext ctx, org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor, org.eclipse.emf.mwe.core.issues.Issues issues)
           
 boolean isAbortOnError()
           
 boolean isWarnIfNothingChecked()
           
 void setAbortOnError(boolean abortOnError)
          Sets if execution should be aborted on error.
 void setEmfAllChildrenSlot(java.lang.String childExpression)
          Sets the expression for the emfAllChildren property.
 void setExpression(java.lang.String expression)
          Sets the expression to check.
 void setWarnIfNothingChecked(boolean warn)
          Sets if a warning should be issued if nothing has been checked.
 
Methods inherited from class org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent
addAdvice, addAdvices, addDebug, addExtensionAdvice, addExtensionAdvices, addGlobalVar, addGlobalVarDef, addMetaModel, getExecutionContext, getGlobalVars, getNullEvaluationHandler, getResourceManager, invokeInternal, setCallback, setDumpContext, setExceptionHandler, setExceptionsOnNullEvaluation, setResourceManager, setVetoableCallback, toString
 
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
checkConfiguration
 
Methods inherited from class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
checkRequiredConfigProperty, getBridge, getContainer, getId, getLocation, invoke, invoke, postInvoke, preInvoke, setContainer, setId, setLocation, setSkipOnErrors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckComponent

public CheckComponent()
Method Detail

setAbortOnError

public void setAbortOnError(boolean abortOnError)
Sets if execution should be aborted on error.

Parameters:
abortOnError - If true, the execution is aborted on error, otherwise, the execution is continued normally.

isAbortOnError

public boolean isAbortOnError()
Since:
1.4

addCheckFile

public void addCheckFile(java.lang.String checkFile)
Adds a check file.

Parameters:
checkFile - the check file

getCheckFiles

public java.util.List<java.lang.String> getCheckFiles()
Since:
1.4

setExpression

public void setExpression(java.lang.String expression)
Sets the expression to check. This property only works for non-EMF based models. For EMF based models, use setEmfAllChildrenSlot(String).

Parameters:
expression - the expression to check

getExpression

public java.lang.String getExpression()
Since:
1.4

setWarnIfNothingChecked

public void setWarnIfNothingChecked(boolean warn)
Sets if a warning should be issued if nothing has been checked.

Parameters:
warn - If true, a warning is issued in case nothing has been checked, otherwise no warning is issued.

isWarnIfNothingChecked

public boolean isWarnIfNothingChecked()
Since:
1.4

setEmfAllChildrenSlot

public void setEmfAllChildrenSlot(java.lang.String childExpression)
Sets the expression for the emfAllChildren property. This property only works for EMF based models. For all other kinds of models use setExpression(String).

Parameters:
childExpression - the expression

getEmfAllChildrenSlot

public java.lang.String getEmfAllChildrenSlot()
Since:
1.4

getLogMessage

public java.lang.String getLogMessage()

Specified by:
getLogMessage in interface org.eclipse.emf.mwe.core.WorkflowComponentWithID
Overrides:
getLogMessage in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent

getComponentName

public java.lang.String getComponentName()

Specified by:
getComponentName in interface org.eclipse.emf.mwe.core.WorkflowComponent
Overrides:
getComponentName in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent

invokeInternal2

protected void invokeInternal2(org.eclipse.emf.mwe.core.WorkflowContext ctx,
                               org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
                               org.eclipse.emf.mwe.core.issues.Issues issues)
Overrides:
invokeInternal2 in class AbstractExpressionsUsingWorkflowComponent

checkConfigurationInternal

protected void checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
Overrides:
checkConfigurationInternal in class AbstractExpressionsUsingWorkflowComponent

getExpressionResult

protected java.util.Collection<?> getExpressionResult(ExecutionContext exeCtx,
                                                      org.eclipse.emf.mwe.core.WorkflowContext context,
                                                      java.lang.String expression2)
Since:
1.4