org.eclipse.emf.mwe.utils
Class Reader

java.lang.Object
  extended by org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent
      extended by org.eclipse.emf.mwe.core.lib.WorkflowComponentWithModelSlot
          extended by org.eclipse.emf.mwe.utils.AbstractEMFWorkflowComponent
              extended by org.eclipse.emf.mwe.utils.Reader
All Implemented Interfaces:
WorkflowComponent, WorkflowComponentWithID, IWorkflowComponent

public class Reader
extends AbstractEMFWorkflowComponent


Field Summary
 
Fields inherited from class org.eclipse.emf.mwe.utils.AbstractEMFWorkflowComponent
resourceSet, uri
 
Constructor Summary
Reader()
           
 
Method Summary
 void checkConfiguration(Issues issues)
          Called by the container after configuration so the component can validate the configuration before invocation.
 java.lang.String getComponentName()
          Returns the component's name.
 java.lang.String getLogMessage()
          Returns the log message,
 void invokeInternal(WorkflowContext ctx, ProgressMonitor monitor, Issues issues)
          Internal method for component execution.
static java.lang.Object load(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, java.lang.String uri, boolean firstElementOnly)
           
static java.lang.Object load(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, java.lang.String uri, boolean firstElementOnly, boolean ignoreMissingModel)
           
 void setFirstElementOnly(boolean firstElementOnly)
           
 void setIgnoreMissingModel(boolean ignoreMissingModel)
           
 void setMakeEPackagesGlobal(boolean makeEPackagesGlobal)
           
 
Methods inherited from class org.eclipse.emf.mwe.utils.AbstractEMFWorkflowComponent
getResourceSet, getUri, setResourceSet, setUri, setUseSingleGlobalResourceSet
 
Methods inherited from class org.eclipse.emf.mwe.core.lib.WorkflowComponentWithModelSlot
getModelSlot, setModelSlot
 
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

Reader

public Reader()
Method Detail

invokeInternal

public void invokeInternal(WorkflowContext ctx,
                           ProgressMonitor monitor,
                           Issues issues)
Description copied from class: AbstractWorkflowComponent
Internal method for component execution.

Specified by:
invokeInternal in class AbstractWorkflowComponent
Parameters:
ctx - the workflow context
monitor - the progress monitor
issues - container of execution issues

checkConfiguration

public void checkConfiguration(Issues issues)
Description copied from interface: WorkflowComponent
Called by the container after configuration so the component can validate the configuration before invocation.

Specified by:
checkConfiguration in interface WorkflowComponent
Overrides:
checkConfiguration in class WorkflowComponentWithModelSlot
Parameters:
issues - implementors should report configuration issues to this.
See Also:
WorkflowComponent.checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues)

load

public static java.lang.Object load(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                                    java.lang.String uri,
                                    boolean firstElementOnly)

load

public static java.lang.Object load(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                                    java.lang.String uri,
                                    boolean firstElementOnly,
                                    boolean ignoreMissingModel)

setFirstElementOnly

public void setFirstElementOnly(boolean firstElementOnly)

setMakeEPackagesGlobal

public void setMakeEPackagesGlobal(boolean makeEPackagesGlobal)

setIgnoreMissingModel

public void setIgnoreMissingModel(boolean ignoreMissingModel)

getLogMessage

public java.lang.String getLogMessage()
Description copied from interface: WorkflowComponentWithID
Returns the log message,

Specified by:
getLogMessage in interface WorkflowComponentWithID
Overrides:
getLogMessage in class AbstractWorkflowComponent
Returns:
the log message
See Also:
AbstractWorkflowComponent.getLogMessage()

getComponentName

public java.lang.String getComponentName()
Description copied from class: AbstractWorkflowComponent
Returns the component's name. Overridable by custom components.

Specified by:
getComponentName in interface WorkflowComponent
Overrides:
getComponentName in class AbstractWorkflowComponent
Returns:
simple class name by default
See Also:
AbstractWorkflowComponent.getComponentName()