org.eclipse.xtend.util.stdlib
Class SlotPrinter
java.lang.Object
org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
org.eclipse.xtend.util.stdlib.SlotPrinter
- All Implemented Interfaces:
- org.eclipse.emf.mwe.core.WorkflowComponent, org.eclipse.emf.mwe.core.WorkflowComponentWithID, org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent
public class SlotPrinter
- extends org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
This component prints a workflow context slot content to the log.
Properties
Property |
Type |
Mandatory |
Description |
slotName |
String |
yes |
The name of a slot whose content should be dumped. |
message |
String |
no |
An optional message that will be prefixed to the log output. |
level |
String |
no |
The log level for the message. Valid values are
TRACE, DEBUG, INFO, WARN. |
Method Summary |
protected void |
checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
|
java.lang.String |
getComponentName()
|
protected void |
invokeInternal(org.eclipse.emf.mwe.core.WorkflowContext ctx,
org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
org.eclipse.emf.mwe.core.issues.Issues issues)
|
void |
setLevel(java.lang.String lvl)
Sets the log level |
void |
setMessage(java.lang.String msg)
Sets the message. |
void |
setSlotName(java.lang.String name)
Sets the slot name. |
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, getLogMessage, 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 |
SlotPrinter
public SlotPrinter()
setMessage
public void setMessage(java.lang.String msg)
- Sets the message.
- Parameters:
msg
- the message
setSlotName
public void setSlotName(java.lang.String name)
- Sets the slot name.
- Parameters:
name
- name of slot
setLevel
public void setLevel(java.lang.String lvl)
- Sets the log level
- Parameters:
lvl
- The log level (TRACE, DEBUG, INFO, WARN, ERROR, FATAL).
checkConfigurationInternal
protected void checkConfigurationInternal(org.eclipse.emf.mwe.core.issues.Issues issues)
- Overrides:
checkConfigurationInternal
in class org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent2
invokeInternal
protected void invokeInternal(org.eclipse.emf.mwe.core.WorkflowContext ctx,
org.eclipse.emf.mwe.core.monitor.ProgressMonitor monitor,
org.eclipse.emf.mwe.core.issues.Issues issues)
- Specified by:
invokeInternal
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
- See Also:
AbstractWorkflowComponent.getComponentName()