org.eclipse.xtend.typesystem.xsd
Class XMLReader

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.xtend.typesystem.xsd.AbstractXMLWorkflowComponent
                  extended by org.eclipse.xtend.typesystem.xsd.XMLReader
All Implemented Interfaces:
org.eclipse.emf.mwe.core.WorkflowComponent, org.eclipse.emf.mwe.core.WorkflowComponentWithID, org.eclipse.emf.mwe2.runtime.workflow.IWorkflowComponent

public class XMLReader
extends AbstractXMLWorkflowComponent

This workflow component loads an XML file into a dynamic Ecore model. The XML format has to be specified via one or more XML Schemas. They are transformed into dynamic eEore packages which are then uses as metamodels.

Author:
Moritz Eysholdt - Initial contribution and API

Field Summary
 
Fields inherited from class org.eclipse.emf.mwe.utils.AbstractEMFWorkflowComponent
resourceSet, uri
 
Constructor Summary
XMLReader()
           
 
Method Summary
 void addOption(OptionsEntry entry)
           
 void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
           
 java.lang.String getComponentName()
           
 java.lang.String getLogMessage()
           
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 setUseDocumentRoot(boolean returnDocumentRoot)
          Specifies if the XML's DocumentRoot (which usually only contains namespace informations and the document's root element) itself or the root element should be stored to the model slot.
 
Methods inherited from class org.eclipse.xtend.typesystem.xsd.AbstractXMLWorkflowComponent
addMetaModel, getAllMetaModels, getMetaModel
 
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

XMLReader

public XMLReader()
Method Detail

addOption

public void addOption(OptionsEntry entry)

checkConfiguration

public void checkConfiguration(org.eclipse.emf.mwe.core.issues.Issues issues)
Specified by:
checkConfiguration in interface org.eclipse.emf.mwe.core.WorkflowComponent
Overrides:
checkConfiguration in class AbstractXMLWorkflowComponent

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

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

setUseDocumentRoot

public void setUseDocumentRoot(boolean returnDocumentRoot)
Specifies if the XML's DocumentRoot (which usually only contains namespace informations and the document's root element) itself or the root element should be stored to the model slot.

Parameters:
returnDocumentRoot -

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