Author: DartPeng
Date: 2009-04-14 05:39:47 -0400 (Tue, 14 Apr 2009)
New Revision: 14731
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateEDIDocumentRoot_reader_EDIReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_EDIReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_EDIReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/EDIDocumentRoot.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/EDIReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-1.1.genmodel
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EDIDocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EDIReader.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EdiFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EdiPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EDIDocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EDIReaderImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EdiFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EdiPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EDIDocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EDIReaderItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/Edi1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiXMLProcessor.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MEdiFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MEdiPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MEdiFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MEdiPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/MEdiItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiXMLProcessor.java
Removed:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/EdiItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiXMLProcessor.java
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-message-mapping-1.0.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/Test.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/impl/CommonPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Component.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Delimiters.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Description.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/DocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiMap.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Field.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MappingNode.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Segment.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Segments.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/SubComponent.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/ComponentImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DelimitersImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DescriptionImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiMapImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/FieldImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MappingNodeImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SegmentImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SegmentsImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SubComponentImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/ComponentItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DelimitersItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DescriptionItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/EdiMapItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/FieldItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/MappingNodeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SegmentItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SegmentsItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SubComponentItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigurationFormPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/ComponentUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/DelimitersUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/DescriptionUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/FieldUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/MappingNodeUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/SegmentUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/SubComponentUICreator.java
Log:
JBIDE-4171
Add codes to parse EDI-1.1 xsd
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF 2009-04-14
09:24:00 UTC (rev 14730)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF 2009-04-14
09:39:47 UTC (rev 14731)
@@ -60,6 +60,10 @@
org.jboss.tools.smooks.model.json.impl,
org.jboss.tools.smooks.model.json.provider,
org.jboss.tools.smooks.model.json.util,
+ org.jboss.tools.smooks.model.medi,
+ org.jboss.tools.smooks.model.medi.impl,
+ org.jboss.tools.smooks.model.medi.provider,
+ org.jboss.tools.smooks.model.medi.util,
org.jboss.tools.smooks.model.smooks,
org.jboss.tools.smooks.model.smooks.impl,
org.jboss.tools.smooks.model.smooks.provider,
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateEDIDocumentRoot_reader_EDIReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateEDIDocumentRoot_reader_EDIReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_EDIReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_EDIReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_EDIReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_EDIReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/EDIDocumentRoot.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/EDIDocumentRoot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/EDIReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/EDIReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-1.1.ecore
(rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-1.1.ecore 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="edi"
+
nsURI="http://www.milyn.org/xsd/smooks/edi-1.1.xsd"
nsPrefix="edi">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks EDI Reader
Configuration"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EClass"
name="EDIDocumentRoot">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=""/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed"
unique="false" upperBound="-1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="elementWildcard"/>
+ <details key="name" value=":mixed"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference"
name="xMLNSPrefixMap" upperBound="-1"
+ eType="ecore:EClass
http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true"
resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xmlns:prefix"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference"
name="xSISchemaLocation" upperBound="-1"
+ eType="ecore:EClass
http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true"
resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xsi:schemaLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="reader"
upperBound="-2"
+ eType="#//EDIReader" volatile="true"
transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="

		 	EDI Reader Configuration
 		
	The EDI reader reads and validates a EDI stream and converts it to SAX events
that Smooks
 		 	can process.

		 	A mapping is used to map the EDI segments and fields to a SAX
event stream.
 		 	For more information about the
mapping model take a look at the
 		
	"http://www.milyn.org/schema/edi-message-mapping-1.0.xsd"
schema.
 		 "/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="reader"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation"
value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader"...
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="EDIReader"
eSuperTypes="smooks-1.1.ecore#//AbstractReader">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="EDI Reader"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="reader"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="encoding" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="UTF-8" unsettable="true">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="The character encoding.
Default "UTF-8""/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="encoding"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="mappingModel" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation"
value="
			 		 	The URI of
the EDI mapping model file of the EDI model.
			
		 	For more information about the mapping model take
a
			 		 	look at the
"http://www.milyn.org/schema/edi-message-mapping-1.0.xsd"
			
		 	schema.
			
		 "/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="mappingModel"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-1.1.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-1.1.genmodel
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-1.1.genmodel
(rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-1.1.genmodel 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+
xmlns:xmi="http://www.omg.org/XMI"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel"
modelDirectory="/edit-1.1-model/src"
+ modelPluginID="edit_1.1_model" modelName="Edi-1"
importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="6.0" copyrightFields="false">
+ <foreignModel>edi-1.1.ecore</foreignModel>
+ <genPackages prefix="Edi" resource="XML"
disposableProviderFactory="true" ecorePackage="edi-1.1.ecore#/">
+ <genClasses ecoreClass="edi-1.1.ecore#//EDIDocumentRoot">
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EAttribute
edi-1.1.ecore#//EDIDocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
edi-1.1.ecore#//EDIDocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
edi-1.1.ecore#//EDIDocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
edi-1.1.ecore#//EDIDocumentRoot/reader"/>
+ </genClasses>
+ <genClasses ecoreClass="edi-1.1.ecore#//EDIReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
edi-1.1.ecore#//EDIReader/encoding"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
edi-1.1.ecore#//EDIReader/mappingModel"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Smooks" resource="XML"
disposableProviderFactory="true"
ecorePackage="smooks-1.1.ecore#/">
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//AbstractReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//AbstractReader/targetProfile"/>
+ </genClasses>
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//AbstractResourceConfig"/>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionsType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ConditionsType/condition"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/evaluator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/idRef"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/abstractReader"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/abstractResourceConfig"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/condition"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/conditions"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/elementVisitor"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/features"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/handler"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/handlers"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/import"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/param"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/params"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/profile"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/profiles"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/reader"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/resource"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/resourceConfig"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/setOff"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/setOn"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/smooksResourceList"/>
+ </genClasses>
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//ElementVisitor">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ElementVisitor/condition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ElementVisitor/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//FeaturesType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//FeaturesType/setOn"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//FeaturesType/setOff"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlersType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//HandlersType/handler"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlerType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//HandlerType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ImportType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ImportType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ImportType/file"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamsType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ParamsType/param"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfilesType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ProfilesType/profile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfileType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/baseProfile"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/subProfiles"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ReaderType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/handlers"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/features"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/params"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ReaderType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceConfigType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/resource"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/condition"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/selector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/selectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOffType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SetOffType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOnType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SetOnType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SmooksResourceListType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/params"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/conditions"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/profiles"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/abstractReaderGroup"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/abstractReader"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfigGroup"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfig"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultConditionRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultSelector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultSelectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultTargetProfile"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Common" resource="XML"
disposableProviderFactory="true" ecorePackage="common.ecore#/">
+ <genClasses image="false"
ecoreClass="common.ecore#//AbstractAnyType">
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/getCDATA"/>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/setCDATA">
+ <genParameters
ecoreParameter="common.ecore#//AbstractAnyType/setCDATA/cdata"/>
+ </genOperations>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/getStringValue"/>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/setStringValue">
+ <genParameters
ecoreParameter="common.ecore#//AbstractAnyType/setStringValue/stringValue"/>
+ </genOperations>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-1.1.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-message-mapping-1.0.ecore
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-message-mapping-1.0.ecore 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/edi-message-mapping-1.0.ecore 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="edi"
-
nsURI="http://www.milyn.org/schema/edi-message-mapping-1.0.xsd"
nsPrefix="edi">
+
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="medi"
+
nsURI="http://www.milyn.org/schema/edi-message-mapping-1.0.xsd"
nsPrefix="medi">
<eClassifiers xsi:type="ecore:EClass" name="Component"
eSuperTypes="#//MappingNode">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="Component"/>
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-04-14 09:24:00
UTC (rev 14730)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-04-14 09:39:47
UTC (rev 14731)
@@ -356,3 +356,13 @@
_UI_Reader_keyWhitspaceReplacement_feature = Key Whitspace Replacement
_UI_Reader_nullValueReplacement_feature = Null Value Replacement
_UI_Reader_rootName_feature = Root Name
+
+# EDI Reader
+_UI_EDIDocumentRoot_type = EDI Document Root
+_UI_EDIReader_type = EDI Reader
+_UI_EDIDocumentRoot_mixed_feature = Mixed
+_UI_EDIDocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
+_UI_EDIDocumentRoot_xSISchemaLocation_feature = XSI Schema Location
+_UI_EDIDocumentRoot_reader_feature = Reader
+_UI_EDIReader_encoding_feature = Encoding
+_UI_EDIReader_mappingModel_feature = Mapping Model
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-04-14 09:24:00 UTC
(rev 14730)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-04-14 09:39:47 UTC
(rev 14731)
@@ -110,14 +110,14 @@
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri="http://www.milyn.org/schema/edi-message-mapping-1.0.xsd"
- class="org.jboss.tools.smooks.model.edi.EdiPackage"
+ class="org.jboss.tools.smooks.model.medi.MEdiPackage"
genModel="ecore.model/edi-message-mapping-1.0.genmodel"/>
</extension>
<extension point="org.eclipse.emf.ecore.extension_parser">
<parser
type="edi"
-
class="org.jboss.tools.smooks.model.edi.util.EdiResourceFactoryImpl"/>
+
class="org.jboss.tools.smooks.model.medi.util.MEdiResourceFactoryImpl"/>
</extension>
<extension point="org.eclipse.emf.ecore.generated_package">
@@ -184,6 +184,14 @@
uri="http://www.milyn.org/xsd/smooks/json-1.1.xsd">
</package>
</extension>
+ <extension
+ point="org.eclipse.emf.ecore.generated_package">
+ <package
+ class="org.jboss.tools.smooks.model.edi.EdiPackage"
+ genModel="model/edi-1.1.genmodel"
+
uri="http://www.milyn.org/xsd/smooks/edi-1.1.xsd">
+ </package>
+ </extension>
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/Test.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/Test.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/Test.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -12,7 +12,7 @@
import org.jboss.tools.smooks.model.common.util.CommonResourceFactoryImpl;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
@@ -29,7 +29,7 @@
Registry.INSTANCE.put(XslPackage.eNS_URI, XslPackage.eINSTANCE);
Registry.INSTANCE.put(SmooksPackage.eNS_URI, SmooksPackage.eINSTANCE);
Registry.INSTANCE.put(JavabeanPackage.eNS_URI, JavabeanPackage.eINSTANCE);
- Registry.INSTANCE.put(EdiPackage.eNS_URI, EdiPackage.eINSTANCE);
+ Registry.INSTANCE.put(MEdiPackage.eNS_URI, MEdiPackage.eINSTANCE);
Resource resource = new CommonResourceFactoryImpl().createResource(null);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/impl/CommonPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/impl/CommonPackageImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/impl/CommonPackageImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -17,8 +17,8 @@
import org.jboss.tools.smooks.model.common.AbstractAnyType;
import org.jboss.tools.smooks.model.common.CommonFactory;
import org.jboss.tools.smooks.model.common.CommonPackage;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
-import org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
+import org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl;
@@ -96,7 +96,7 @@
XMLTypePackage.eINSTANCE.eClass();
// Obtain or create and register interdependencies
- EdiPackageImpl theEdiPackage =
(EdiPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EdiPackage.eNS_URI) instanceof
EdiPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EdiPackage.eNS_URI) :
EdiPackage.eINSTANCE);
+ MEdiPackageImpl theEdiPackage =
(MEdiPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(MEdiPackage.eNS_URI) instanceof
MEdiPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(MEdiPackage.eNS_URI) :
MEdiPackage.eINSTANCE);
// Create package meta-data objects
theCommonPackage.createPackageContents();
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EDIDocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EDIDocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EDIDocumentRoot.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,121 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.ecore.util.FeatureMap;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>EDI Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXSISchemaLocation <em>XSI Schema
Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getReader
<em>Reader</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface EDIDocumentRoot extends EObject {
+ /**
+ * Returns the value of the '<em><b>Mixed</b></em>'
attribute list.
+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Mixed</em>' attribute list isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Mixed</em>' attribute list.
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIDocumentRoot_Mixed()
+ * @model unique="false"
dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+ * extendedMetaData="kind='elementWildcard'
name=':mixed'"
+ * @generated
+ */
+ FeatureMap getMixed();
+
+ /**
+ * Returns the value of the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XMLNS Prefix Map</em>' map.
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIDocumentRoot_XMLNSPrefixMap()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xmlns:prefix'"
+ * @generated
+ */
+ EMap<String, String> getXMLNSPrefixMap();
+
+ /**
+ * Returns the value of the '<em><b>XSI Schema
Location</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XSI Schema Location</em>' map
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XSI Schema Location</em>' map.
+ * @see
org.jboss.tools.smooks.model.edi.EdiPackage#getEDIDocumentRoot_XSISchemaLocation()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>Reader</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * EDI Reader Configuration
+ * The EDI reader reads and validates a EDI stream and converts it to SAX events
that Smooks
+ * can process.
+ * A mapping is used to map the EDI segments and fields to a SAX event stream.
+ * For more information about the mapping model take a look at the
+ * "http://www.milyn.org/schema/edi-message-mapping-1.0.xsd" schema.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Reader</em>' containment
reference.
+ * @see #setReader(EDIReader)
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIDocumentRoot_Reader()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='reader'
namespace='##targetNamespace'
affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader&...
+ * @generated
+ */
+ EDIReader getReader();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getReader
<em>Reader</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Reader</em>' containment
reference.
+ * @see #getReader()
+ * @generated
+ */
+ void setReader(EDIReader value);
+
+} // EDIDocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EDIDocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EDIReader.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EDIReader.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EDIReader.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,118 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi;
+
+import org.jboss.tools.smooks.model.smooks.AbstractReader;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>EDI
Reader</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * EDI Reader
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.edi.EDIReader#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.edi.EDIReader#getMappingModel
<em>Mapping Model</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIReader()
+ * @model extendedMetaData="name='reader' kind='empty'"
+ * @generated
+ */
+public interface EDIReader extends AbstractReader {
+ /**
+ * Returns the value of the '<em><b>Encoding</b></em>'
attribute.
+ * The default value is <code>"UTF-8"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * The character encoding. Default "UTF-8"
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Encoding</em>' attribute.
+ * @see #isSetEncoding()
+ * @see #unsetEncoding()
+ * @see #setEncoding(String)
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIReader_Encoding()
+ * @model default="UTF-8" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='encoding'"
+ * @generated
+ */
+ String getEncoding();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.edi.EDIReader#getEncoding <em>Encoding</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Encoding</em>' attribute.
+ * @see #isSetEncoding()
+ * @see #unsetEncoding()
+ * @see #getEncoding()
+ * @generated
+ */
+ void setEncoding(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.edi.EDIReader#getEncoding <em>Encoding</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetEncoding()
+ * @see #getEncoding()
+ * @see #setEncoding(String)
+ * @generated
+ */
+ void unsetEncoding();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.edi.EDIReader#getEncoding <em>Encoding</em>}'
attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Encoding</em>' attribute is
set.
+ * @see #unsetEncoding()
+ * @see #getEncoding()
+ * @see #setEncoding(String)
+ * @generated
+ */
+ boolean isSetEncoding();
+
+ /**
+ * Returns the value of the '<em><b>Mapping
Model</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The URI of the EDI mapping model file of the EDI model.
+ * For more information about the mapping model take a
+ * look at the
"http://www.milyn.org/schema/edi-message-mapping-1.0.xsd"
+ * schema.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Mapping Model</em>' attribute.
+ * @see #setMappingModel(String)
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage#getEDIReader_MappingModel()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='mappingModel'"
+ * @generated
+ */
+ String getMappingModel();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.edi.EDIReader#getMappingModel <em>Mapping
Model</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Mapping Model</em>'
attribute.
+ * @see #getMappingModel()
+ * @generated
+ */
+ void setMappingModel(String value);
+
+} // EDIReader
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EDIReader.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EdiFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EdiFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EdiFactory.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,55 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage
+ * @generated
+ */
+public interface EdiFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EdiFactory eINSTANCE = org.jboss.tools.smooks.model.edi.impl.EdiFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>EDI Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>EDI Document Root</em>'.
+ * @generated
+ */
+ EDIDocumentRoot createEDIDocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>EDI Reader</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>EDI Reader</em>'.
+ * @generated
+ */
+ EDIReader createEDIReader();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ EdiPackage getEdiPackage();
+
+} //EdiFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EdiFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EdiPackage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EdiPackage.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EdiPackage.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,373 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * Smooks EDI Reader Configuration
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.edi.EdiFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface EdiPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "edi";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.milyn.org/xsd/smooks/edi-1.1.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "edi";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EdiPackage eINSTANCE = org.jboss.tools.smooks.model.edi.impl.EdiPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl <em>EDI Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl
+ * @see org.jboss.tools.smooks.model.edi.impl.EdiPackageImpl#getEDIDocumentRoot()
+ * @generated
+ */
+ int EDI_DOCUMENT_ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_DOCUMENT_ROOT__MIXED = 0;
+
+ /**
+ * The feature id for the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+ /**
+ * The feature id for the '<em><b>XSI Schema
Location</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Reader</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_DOCUMENT_ROOT__READER = 3;
+
+ /**
+ * The number of structural features of the '<em>EDI Document
Root</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl <em>EDI Reader</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl
+ * @see org.jboss.tools.smooks.model.edi.impl.EdiPackageImpl#getEDIReader()
+ * @generated
+ */
+ int EDI_READER = 1;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_READER__MIXED = SmooksPackage.ABSTRACT_READER__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_READER__ANY = SmooksPackage.ABSTRACT_READER__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_READER__ANY_ATTRIBUTE = SmooksPackage.ABSTRACT_READER__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Target
Profile</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_READER__TARGET_PROFILE = SmooksPackage.ABSTRACT_READER__TARGET_PROFILE;
+
+ /**
+ * The feature id for the '<em><b>Encoding</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_READER__ENCODING = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Mapping
Model</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_READER__MAPPING_MODEL = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the '<em>EDI Reader</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_READER_FEATURE_COUNT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 2;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot <em>EDI Document
Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>EDI Document Root</em>'.
+ * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot
+ * @generated
+ */
+ EClass getEDIDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getMixed
<em>Mixed</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getMixed()
+ * @see #getEDIDocumentRoot()
+ * @generated
+ */
+ EAttribute getEDIDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix
Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXMLNSPrefixMap()
+ * @see #getEDIDocumentRoot()
+ * @generated
+ */
+ EReference getEDIDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXSISchemaLocation <em>XSI Schema
Location</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XSI Schema
Location</em>'.
+ * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getXSISchemaLocation()
+ * @see #getEDIDocumentRoot()
+ * @generated
+ */
+ EReference getEDIDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getReader
<em>Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Reader</em>'.
+ * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot#getReader()
+ * @see #getEDIDocumentRoot()
+ * @generated
+ */
+ EReference getEDIDocumentRoot_Reader();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.edi.EDIReader <em>EDI Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>EDI Reader</em>'.
+ * @see org.jboss.tools.smooks.model.edi.EDIReader
+ * @generated
+ */
+ EClass getEDIReader();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.edi.EDIReader#getEncoding
<em>Encoding</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Encoding</em>'.
+ * @see org.jboss.tools.smooks.model.edi.EDIReader#getEncoding()
+ * @see #getEDIReader()
+ * @generated
+ */
+ EAttribute getEDIReader_Encoding();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.edi.EDIReader#getMappingModel <em>Mapping
Model</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Mapping
Model</em>'.
+ * @see org.jboss.tools.smooks.model.edi.EDIReader#getMappingModel()
+ * @see #getEDIReader()
+ * @generated
+ */
+ EAttribute getEDIReader_MappingModel();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ EdiFactory getEdiFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl <em>EDI Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl
+ * @see org.jboss.tools.smooks.model.edi.impl.EdiPackageImpl#getEDIDocumentRoot()
+ * @generated
+ */
+ EClass EDI_DOCUMENT_ROOT = eINSTANCE.getEDIDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute EDI_DOCUMENT_ROOT__MIXED = eINSTANCE.getEDIDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getEDIDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getEDIDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Reader</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference EDI_DOCUMENT_ROOT__READER = eINSTANCE.getEDIDocumentRoot_Reader();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl <em>EDI Reader</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl
+ * @see org.jboss.tools.smooks.model.edi.impl.EdiPackageImpl#getEDIReader()
+ * @generated
+ */
+ EClass EDI_READER = eINSTANCE.getEDIReader();
+
+ /**
+ * The meta object literal for the
'<em><b>Encoding</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute EDI_READER__ENCODING = eINSTANCE.getEDIReader_Encoding();
+
+ /**
+ * The meta object literal for the '<em><b>Mapping
Model</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute EDI_READER__MAPPING_MODEL = eINSTANCE.getEDIReader_MappingModel();
+
+ }
+
+} //EdiPackage
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/EdiPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EDIDocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EDIDocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EDIDocumentRootImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,286 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.impl;
+
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.EcorePackage;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+import org.eclipse.emf.ecore.impl.EStringToStringMapEntryImpl;
+
+import org.eclipse.emf.ecore.util.BasicFeatureMap;
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.FeatureMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+import org.jboss.tools.smooks.model.edi.EDIDocumentRoot;
+import org.jboss.tools.smooks.model.edi.EDIReader;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>EDI Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.edi.impl.EDIDocumentRootImpl#getReader
<em>Reader</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EDIDocumentRootImpl extends EObjectImpl implements EDIDocumentRoot {
+ /**
+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix
Map</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xMLNSPrefixMap;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema
Location</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xSISchemaLocation;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EDIDocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EdiPackage.Literals.EDI_DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, EdiPackage.EDI_DOCUMENT_ROOT__MIXED);
+ }
+ return mixed;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EMap<String, String> getXMLNSPrefixMap() {
+ if (xMLNSPrefixMap == null) {
+ xMLNSPrefixMap = new
EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
EStringToStringMapEntryImpl.class, this, EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ }
+ return xMLNSPrefixMap;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EMap<String, String> getXSISchemaLocation() {
+ if (xSISchemaLocation == null) {
+ xSISchemaLocation = new
EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
EStringToStringMapEntryImpl.class, this,
EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDIReader getReader() {
+ return (EDIReader)getMixed().get(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER, true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetReader(EDIReader newReader, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER,
newReader, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setReader(EDIReader newReader) {
+ ((FeatureMap.Internal)getMixed()).set(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER,
newReader);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case EdiPackage.EDI_DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case EdiPackage.EDI_DOCUMENT_ROOT__READER:
+ return basicSetReader(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EdiPackage.EDI_DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case EdiPackage.EDI_DOCUMENT_ROOT__READER:
+ return getReader();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EdiPackage.EDI_DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case EdiPackage.EDI_DOCUMENT_ROOT__READER:
+ setReader((EDIReader)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EdiPackage.EDI_DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case EdiPackage.EDI_DOCUMENT_ROOT__READER:
+ setReader((EDIReader)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EdiPackage.EDI_DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case EdiPackage.EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case EdiPackage.EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case EdiPackage.EDI_DOCUMENT_ROOT__READER:
+ return getReader() != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (mixed: ");
+ result.append(mixed);
+ result.append(')');
+ return result.toString();
+ }
+
+} //EDIDocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EDIDocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EDIReaderImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EDIReaderImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EDIReaderImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,253 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.jboss.tools.smooks.model.edi.EDIReader;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.smooks.impl.AbstractReaderImpl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>EDI
Reader</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl#getMappingModel
<em>Mapping Model</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EDIReaderImpl extends AbstractReaderImpl implements EDIReader {
+ /**
+ * The default value of the '{@link #getEncoding()
<em>Encoding</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEncoding()
+ * @generated
+ * @ordered
+ */
+ protected static final String ENCODING_EDEFAULT = "UTF-8";
+
+ /**
+ * The cached value of the '{@link #getEncoding()
<em>Encoding</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEncoding()
+ * @generated
+ * @ordered
+ */
+ protected String encoding = ENCODING_EDEFAULT;
+
+ /**
+ * This is true if the Encoding attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean encodingESet;
+
+ /**
+ * The default value of the '{@link #getMappingModel() <em>Mapping
Model</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMappingModel()
+ * @generated
+ * @ordered
+ */
+ protected static final String MAPPING_MODEL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getMappingModel() <em>Mapping
Model</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMappingModel()
+ * @generated
+ * @ordered
+ */
+ protected String mappingModel = MAPPING_MODEL_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EDIReaderImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return EdiPackage.Literals.EDI_READER;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEncoding() {
+ return encoding;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEncoding(String newEncoding) {
+ String oldEncoding = encoding;
+ encoding = newEncoding;
+ boolean oldEncodingESet = encodingESet;
+ encodingESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.EDI_READER__ENCODING,
oldEncoding, encoding, !oldEncodingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetEncoding() {
+ String oldEncoding = encoding;
+ boolean oldEncodingESet = encodingESet;
+ encoding = ENCODING_EDEFAULT;
+ encodingESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
EdiPackage.EDI_READER__ENCODING, oldEncoding, ENCODING_EDEFAULT, oldEncodingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetEncoding() {
+ return encodingESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getMappingModel() {
+ return mappingModel;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMappingModel(String newMappingModel) {
+ String oldMappingModel = mappingModel;
+ mappingModel = newMappingModel;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
EdiPackage.EDI_READER__MAPPING_MODEL, oldMappingModel, mappingModel));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case EdiPackage.EDI_READER__ENCODING:
+ return getEncoding();
+ case EdiPackage.EDI_READER__MAPPING_MODEL:
+ return getMappingModel();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case EdiPackage.EDI_READER__ENCODING:
+ setEncoding((String)newValue);
+ return;
+ case EdiPackage.EDI_READER__MAPPING_MODEL:
+ setMappingModel((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case EdiPackage.EDI_READER__ENCODING:
+ unsetEncoding();
+ return;
+ case EdiPackage.EDI_READER__MAPPING_MODEL:
+ setMappingModel(MAPPING_MODEL_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case EdiPackage.EDI_READER__ENCODING:
+ return isSetEncoding();
+ case EdiPackage.EDI_READER__MAPPING_MODEL:
+ return MAPPING_MODEL_EDEFAULT == null ? mappingModel != null :
!MAPPING_MODEL_EDEFAULT.equals(mappingModel);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (encoding: ");
+ if (encodingESet) result.append(encoding); else
result.append("<unset>");
+ result.append(", mappingModel: ");
+ result.append(mappingModel);
+ result.append(')');
+ return result.toString();
+ }
+
+} //EDIReaderImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EDIReaderImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EdiFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EdiFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EdiFactoryImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,111 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.jboss.tools.smooks.model.edi.EDIDocumentRoot;
+import org.jboss.tools.smooks.model.edi.EDIReader;
+import org.jboss.tools.smooks.model.edi.EdiFactory;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EdiFactoryImpl extends EFactoryImpl implements EdiFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static EdiFactory init() {
+ try {
+ EdiFactory theEdiFactory =
(
EdiFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn....);
+ if (theEdiFactory != null) {
+ return theEdiFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new EdiFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EdiFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case EdiPackage.EDI_DOCUMENT_ROOT: return createEDIDocumentRoot();
+ case EdiPackage.EDI_READER: return createEDIReader();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDIDocumentRoot createEDIDocumentRoot() {
+ EDIDocumentRootImpl ediDocumentRoot = new EDIDocumentRootImpl();
+ return ediDocumentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDIReader createEDIReader() {
+ EDIReaderImpl ediReader = new EDIReaderImpl();
+ return ediReader;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EdiPackage getEdiPackage() {
+ return (EdiPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static EdiPackage getPackage() {
+ return EdiPackage.eINSTANCE;
+ }
+
+} //EdiFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EdiFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EdiPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EdiPackageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EdiPackageImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,357 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+import org.jboss.tools.smooks.model.common.CommonPackage;
+import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl;
+import org.jboss.tools.smooks.model.edi.EDIDocumentRoot;
+import org.jboss.tools.smooks.model.edi.EDIReader;
+import org.jboss.tools.smooks.model.edi.EdiFactory;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.smooks.impl.SmooksPackageImpl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EdiPackageImpl extends EPackageImpl implements EdiPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass ediDocumentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass ediReaderEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private EdiPackageImpl() {
+ super(eNS_URI, EdiFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this
+ * model, and for any others upon which it depends. Simple
+ * dependencies are satisfied by calling this method on all
+ * dependent packages before doing anything else. This method drives
+ * initialization for interdependent packages directly, in parallel
+ * with this package, itself.
+ * <p>Of this package and its interdependencies, all packages which
+ * have not yet been registered by their URI values are first created
+ * and registered. The packages are then initialized in two steps:
+ * meta-model objects for all of the packages are created before any
+ * are initialized, since one package's meta-model objects may refer to
+ * those of another.
+ * <p>Invocation of this method will not affect any packages that have
+ * already been initialized.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static EdiPackage init() {
+ if (isInited) return
(EdiPackage)EPackage.Registry.INSTANCE.getEPackage(EdiPackage.eNS_URI);
+
+ // Obtain or create and register package
+ EdiPackageImpl theEdiPackage =
(EdiPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof EdiPackageImpl
? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new EdiPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ XMLTypePackage.eINSTANCE.eClass();
+
+ // Obtain or create and register interdependencies
+ SmooksPackageImpl theSmooksPackage =
(SmooksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI)
instanceof SmooksPackageImpl ?
EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) : SmooksPackage.eINSTANCE);
+ CommonPackageImpl theCommonPackage =
(CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI)
instanceof CommonPackageImpl ?
EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
+
+ // Create package meta-data objects
+ theEdiPackage.createPackageContents();
+ theSmooksPackage.createPackageContents();
+ theCommonPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theEdiPackage.initializePackageContents();
+ theSmooksPackage.initializePackageContents();
+ theCommonPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theEdiPackage.freeze();
+
+ return theEdiPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getEDIDocumentRoot() {
+ return ediDocumentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getEDIDocumentRoot_Mixed() {
+ return (EAttribute)ediDocumentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getEDIDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)ediDocumentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getEDIDocumentRoot_XSISchemaLocation() {
+ return (EReference)ediDocumentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getEDIDocumentRoot_Reader() {
+ return (EReference)ediDocumentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getEDIReader() {
+ return ediReaderEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getEDIReader_Encoding() {
+ return (EAttribute)ediReaderEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getEDIReader_MappingModel() {
+ return (EAttribute)ediReaderEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EdiFactory getEdiFactory() {
+ return (EdiFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ ediDocumentRootEClass = createEClass(EDI_DOCUMENT_ROOT);
+ createEAttribute(ediDocumentRootEClass, EDI_DOCUMENT_ROOT__MIXED);
+ createEReference(ediDocumentRootEClass, EDI_DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(ediDocumentRootEClass, EDI_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(ediDocumentRootEClass, EDI_DOCUMENT_ROOT__READER);
+
+ ediReaderEClass = createEClass(EDI_READER);
+ createEAttribute(ediReaderEClass, EDI_READER__ENCODING);
+ createEAttribute(ediReaderEClass, EDI_READER__MAPPING_MODEL);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ SmooksPackage theSmooksPackage =
(SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI);
+ XMLTypePackage theXMLTypePackage =
(XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ ediReaderEClass.getESuperTypes().add(theSmooksPackage.getAbstractReader());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(ediDocumentRootEClass, EDIDocumentRoot.class, "EDIDocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getEDIDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(),
"mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getEDIDocumentRoot_XMLNSPrefixMap(),
ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1,
null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getEDIDocumentRoot_XSISchemaLocation(),
ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0,
-1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getEDIDocumentRoot_Reader(), this.getEDIReader(), null,
"reader", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE,
IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+ initEClass(ediReaderEClass, EDIReader.class, "EDIReader", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getEDIReader_Encoding(), theXMLTypePackage.getString(),
"encoding", "UTF-8", 0, 1, EDIReader.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getEDIReader_MappingModel(), theXMLTypePackage.getString(),
"mappingModel", null, 0, 1, EDIReader.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+ createExtendedMetaDataAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for
<b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createExtendedMetaDataAnnotations() {
+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
+ addAnnotation
+ (ediDocumentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getEDIDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getEDIDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getEDIDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getEDIDocumentRoot_Reader(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "reader",
+ "namespace", "##targetNamespace",
+ "affiliation",
"http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader"
+ });
+ addAnnotation
+ (ediReaderEClass,
+ source,
+ new String[] {
+ "name", "reader",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getEDIReader_Encoding(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "encoding"
+ });
+ addAnnotation
+ (getEDIReader_MappingModel(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "mappingModel"
+ });
+ }
+
+} //EdiPackageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/impl/EdiPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EDIDocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EDIDocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EDIDocumentRootItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.provider;
+
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.jboss.tools.smooks.model.edi.EDIDocumentRoot;
+import org.jboss.tools.smooks.model.edi.EdiFactory;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EDIDocumentRootItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDIDocumentRootItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use
for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns EDIDocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/EDIDocumentRoot"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_EDIDocumentRoot_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(EDIDocumentRoot.class)) {
+ case EdiPackage.EDI_DOCUMENT_ROOT__READER:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER,
+ EdiFactory.eINSTANCE.createEDIReader()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Edi1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EDIDocumentRootItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EDIReaderItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EDIReaderItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EDIReaderItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,183 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.jboss.tools.smooks.model.edi.EDIReader;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.smooks.provider.AbstractReaderItemProvider;
+
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.edi.EDIReader} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EDIReaderItemProvider
+ extends AbstractReaderItemProvider
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDIReaderItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addEncodingPropertyDescriptor(object);
+ addMappingModelPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Encoding feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addEncodingPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_EDIReader_encoding_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_EDIReader_encoding_feature", "_UI_EDIReader_type"),
+ EdiPackage.Literals.EDI_READER__ENCODING,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Mapping Model feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addMappingModelPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_EDIReader_mappingModel_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_EDIReader_mappingModel_feature", "_UI_EDIReader_type"),
+ EdiPackage.Literals.EDI_READER__MAPPING_MODEL,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns EDIReader.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/EDIReader"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((EDIReader)object).getTargetProfile();
+ return label == null || label.length() == 0 ?
+ getString("_UI_EDIReader_type") :
+ getString("_UI_EDIReader_type") + " " + label;
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(EDIReader.class)) {
+ case EdiPackage.EDI_READER__ENCODING:
+ case EdiPackage.EDI_READER__MAPPING_MODEL:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Edi1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EDIReaderItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/Edi1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/Edi1EditPlugin.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/Edi1EditPlugin.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,93 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the Edi-1 edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class Edi1EditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final Edi1EditPlugin INSTANCE = new Edi1EditPlugin();
+
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static Implementation plugin;
+
+ /**
+ * Create the instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Edi1EditPlugin() {
+ super
+ (new ResourceLocator [] {
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/Edi1EditPlugin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,226 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.provider;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.edit.provider.ChangeNotifier;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.IChangeNotifier;
+import org.eclipse.emf.edit.provider.IDisposable;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.INotifyChangedListener;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.jboss.tools.smooks.model.edi.util.EdiAdapterFactory;
+
+
+/**
+ * This is the factory that is used to provide the interfaces needed to support Viewers.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to
{@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters also support Eclipse property sheets.
+ * Note that most of the adapters are shared among multiple instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EdiItemProviderAdapterFactory extends EdiAdapterFactory implements
ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+ /**
+ * This keeps track of the root adapter factory that delegates to this adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComposedAdapterFactory parentAdapterFactory;
+
+ /**
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+ /**
+ * This keeps track of all the supported types checked by {@link #isFactoryForType
isFactoryForType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Object> supportedTypes = new ArrayList<Object>();
+
+ /**
+ * This constructs an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EdiItemProviderAdapterFactory() {
+ supportedTypes.add(IEditingDomainItemProvider.class);
+ supportedTypes.add(IStructuredItemContentProvider.class);
+ supportedTypes.add(ITreeItemContentProvider.class);
+ supportedTypes.add(IItemLabelProvider.class);
+ supportedTypes.add(IItemPropertySource.class);
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EDIDocumentRootItemProvider ediDocumentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createEDIDocumentRootAdapter() {
+ if (ediDocumentRootItemProvider == null) {
+ ediDocumentRootItemProvider = new EDIDocumentRootItemProvider(this);
+ }
+
+ return ediDocumentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.edi.EDIReader} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EDIReaderItemProvider ediReaderItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.edi.EDIReader}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createEDIReaderAdapter() {
+ if (ediReaderItemProvider == null) {
+ ediReaderItemProvider = new EDIReaderItemProvider(this);
+ }
+
+ return ediReaderItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this :
parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (ediDocumentRootItemProvider != null) ediDocumentRootItemProvider.dispose();
+ if (ediReaderItemProvider != null) ediReaderItemProvider.dispose();
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiAdapterFactory.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,218 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.xml.type.AnyType;
+import org.jboss.tools.smooks.model.common.AbstractAnyType;
+import org.jboss.tools.smooks.model.edi.EDIDocumentRoot;
+import org.jboss.tools.smooks.model.edi.EDIReader;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.smooks.AbstractReader;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the
model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage
+ * @generated
+ */
+public class EdiAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static EdiPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EdiAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = EdiPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the
model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EdiSwitch<Adapter> modelSwitch =
+ new EdiSwitch<Adapter>() {
+ @Override
+ public Adapter caseEDIDocumentRoot(EDIDocumentRoot object) {
+ return createEDIDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseEDIReader(EDIReader object) {
+ return createEDIReaderAdapter();
+ }
+ @Override
+ public Adapter caseAnyType(AnyType object) {
+ return createAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractAnyType(AbstractAnyType object) {
+ return createAbstractAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) {
+ return createAbstractResourceConfigAdapter();
+ }
+ @Override
+ public Adapter caseAbstractReader(AbstractReader object) {
+ return createAbstractReaderAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.edi.EDIDocumentRoot <em>EDI Document
Root</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.edi.EDIDocumentRoot
+ * @generated
+ */
+ public Adapter createEDIDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.edi.EDIReader <em>EDI Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.edi.EDIReader
+ * @generated
+ */
+ public Adapter createEDIReaderAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.eclipse.emf.ecore.xml.type.AnyType <em>Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.emf.ecore.xml.type.AnyType
+ * @generated
+ */
+ public Adapter createAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link common.AbstractAnyType
<em>Abstract Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see common.AbstractAnyType
+ * @generated
+ */
+ public Adapter createAbstractAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
smooks.AbstractResourceConfig <em>Abstract Resource Config</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.AbstractResourceConfig
+ * @generated
+ */
+ public Adapter createAbstractResourceConfigAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link smooks.AbstractReader
<em>Abstract Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.AbstractReader
+ * @generated
+ */
+ public Adapter createAbstractReaderAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //EdiAdapterFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiResourceFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiResourceFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiResourceFactoryImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+import org.eclipse.emf.ecore.xmi.XMLResource;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.edi.util.EdiResourceImpl
+ * @generated
+ */
+public class EdiResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EdiResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new EdiResourceImpl(uri);
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA,
Boolean.TRUE);
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA,
Boolean.TRUE);
+
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
+
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE,
Boolean.TRUE);
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE,
Boolean.TRUE);
+
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER,
Boolean.TRUE);
+ return result;
+ }
+
+} //EdiResourceFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiResourceImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiResourceImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiResourceImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.edi.util.EdiResourceFactoryImpl
+ * @generated
+ */
+public class EdiResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public EdiResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //EdiResourceImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiSwitch.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiSwitch.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiSwitch.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,221 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.util;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.xml.type.AnyType;
+import org.jboss.tools.smooks.model.common.AbstractAnyType;
+import org.jboss.tools.smooks.model.edi.EDIDocumentRoot;
+import org.jboss.tools.smooks.model.edi.EDIReader;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.smooks.AbstractReader;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.edi.EdiPackage
+ * @generated
+ */
+public class EdiSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static EdiPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EdiSwitch() {
+ if (modelPackage == null) {
+ modelPackage = EdiPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code>
call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject) {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code>
call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject) {
+ if (theEClass.eContainer() == modelPackage) {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return
+ eSuperTypes.isEmpty() ?
+ defaultCase(theEObject) :
+ doSwitch(eSuperTypes.get(0), theEObject);
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code>
call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case EdiPackage.EDI_DOCUMENT_ROOT: {
+ EDIDocumentRoot ediDocumentRoot = (EDIDocumentRoot)theEObject;
+ T result = caseEDIDocumentRoot(ediDocumentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case EdiPackage.EDI_READER: {
+ EDIReader ediReader = (EDIReader)theEObject;
+ T result = caseEDIReader(ediReader);
+ if (result == null) result = caseAbstractReader(ediReader);
+ if (result == null) result = caseAbstractResourceConfig(ediReader);
+ if (result == null) result = caseAbstractAnyType(ediReader);
+ if (result == null) result = caseAnyType(ediReader);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EDI
Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EDI
Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEDIDocumentRoot(EDIDocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EDI
Reader</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EDI
Reader</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEDIReader(EDIReader object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAnyType(AnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractAnyType(AbstractAnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Resource Config</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Resource Config</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractResourceConfig(AbstractResourceConfig object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Reader</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Reader</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractReader(AbstractReader object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case
anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //EdiSwitch
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiXMLProcessor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiXMLProcessor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiXMLProcessor.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.edi.util;
+
+
+import java.util.Map;
+
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class EdiXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EdiXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ EdiPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the
EdiResourceFactoryImpl factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected Map<String, Resource.Factory> getRegistrations() {
+ if (registrations == null) {
+ super.getRegistrations();
+ registrations.put(XML_EXTENSION, new EdiResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new EdiResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //EdiXMLProcessor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/util/EdiXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Component.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Component.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Component.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -22,7 +22,7 @@
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getComponent()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getComponent()
* @model extendedMetaData="name='Component'
kind='elementOnly'"
* @generated
*/
@@ -37,7 +37,7 @@
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Sub Component</em>' containment
reference list.
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getComponent_SubComponent()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getComponent_SubComponent()
* @model containment="true"
* extendedMetaData="kind='element' name='sub-component'
namespace='##targetNamespace'"
* @generated
@@ -57,7 +57,7 @@
* @see #isSetRequired()
* @see #unsetRequired()
* @see #setRequired(boolean)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getComponent_Required()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getComponent_Required()
* @model default="false" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Boolean"
* extendedMetaData="kind='attribute' name='required'"
* @generated
@@ -112,7 +112,7 @@
* @see #isSetTruncatable()
* @see #unsetTruncatable()
* @see #setTruncatable(boolean)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getComponent_Truncatable()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getComponent_Truncatable()
* @model default="false" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Boolean"
* extendedMetaData="kind='attribute'
name='truncatable'"
* @generated
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Delimiters.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Delimiters.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Delimiters.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -23,7 +23,7 @@
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDelimiters()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDelimiters()
* @model extendedMetaData="name='Delimiters' kind='empty'"
* @generated
*/
@@ -38,7 +38,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Component</em>' attribute.
* @see #setComponent(String)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDelimiters_Component()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDelimiters_Component()
* @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
* extendedMetaData="kind='attribute'
name='component'"
* @generated
@@ -65,7 +65,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Field</em>' attribute.
* @see #setField(String)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDelimiters_Field()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDelimiters_Field()
* @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
* extendedMetaData="kind='attribute' name='field'"
* @generated
@@ -92,7 +92,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Segment</em>' attribute.
* @see #setSegment(String)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDelimiters_Segment()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDelimiters_Segment()
* @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
* extendedMetaData="kind='attribute' name='segment'"
* @generated
@@ -127,7 +127,7 @@
* <!-- end-model-doc -->
* @return the value of the '<em>Sub Component</em>' attribute.
* @see #setSubComponent(String)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDelimiters_SubComponent()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDelimiters_SubComponent()
* @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
* extendedMetaData="kind='attribute'
name='sub-component'"
* @generated
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Description.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Description.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Description.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -21,7 +21,7 @@
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDescription()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDescription()
* @model extendedMetaData="name='Description' kind='empty'"
* @generated
*/
@@ -36,7 +36,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDescription_Name()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDescription_Name()
* @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
* extendedMetaData="kind='attribute' name='name'"
* @generated
@@ -63,7 +63,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Version</em>' attribute.
* @see #setVersion(String)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDescription_Version()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDescription_Version()
* @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
* extendedMetaData="kind='attribute' name='version'"
* @generated
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/DocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/DocumentRoot.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/DocumentRoot.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -27,7 +27,7 @@
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDocumentRoot()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDocumentRoot()
* @model extendedMetaData="name='' kind='mixed'"
* @generated
*/
@@ -42,7 +42,7 @@
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Mixed</em>' attribute list.
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDocumentRoot_Mixed()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDocumentRoot_Mixed()
* @model unique="false"
dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
* extendedMetaData="kind='elementWildcard'
name=':mixed'"
* @generated
@@ -60,7 +60,7 @@
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>XMLNS Prefix Map</em>' map.
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDocumentRoot_XMLNSPrefixMap()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDocumentRoot_XMLNSPrefixMap()
* @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
* extendedMetaData="kind='attribute'
name='xmlns:prefix'"
* @generated
@@ -78,7 +78,7 @@
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>XSI Schema Location</em>' map.
- * @see
org.jboss.tools.smooks.model.medi.EdiPackage#getDocumentRoot_XSISchemaLocation()
+ * @see
org.jboss.tools.smooks.model.medi.MEdiPackage#getDocumentRoot_XSISchemaLocation()
* @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
* extendedMetaData="kind='attribute'
name='xsi:schemaLocation'"
* @generated
@@ -95,7 +95,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Edimap</em>' containment
reference.
* @see #setEdimap(EdiMap)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getDocumentRoot_Edimap()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getDocumentRoot_Edimap()
* @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
* extendedMetaData="kind='element' name='edimap'
namespace='##targetNamespace'"
* @generated
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiFactory.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiFactory.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,127 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.model.medi;
-
-import org.eclipse.emf.ecore.EFactory;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.EdiPackage
- * @generated
- */
-public interface EdiFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EdiFactory eINSTANCE = org.jboss.tools.smooks.model.medi.impl.EdiFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Component</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Component</em>'.
- * @generated
- */
- Component createComponent();
-
- /**
- * Returns a new object of class '<em>Delimiters</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Delimiters</em>'.
- * @generated
- */
- Delimiters createDelimiters();
-
- /**
- * Returns a new object of class '<em>Description</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Description</em>'.
- * @generated
- */
- Description createDescription();
-
- /**
- * Returns a new object of class '<em>Document Root</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Document Root</em>'.
- * @generated
- */
- DocumentRoot createDocumentRoot();
-
- /**
- * Returns a new object of class '<em>Map</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Map</em>'.
- * @generated
- */
- EdiMap createEdiMap();
-
- /**
- * Returns a new object of class '<em>Field</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Field</em>'.
- * @generated
- */
- Field createField();
-
- /**
- * Returns a new object of class '<em>Mapping Node</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Mapping Node</em>'.
- * @generated
- */
- MappingNode createMappingNode();
-
- /**
- * Returns a new object of class '<em>Segment</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Segment</em>'.
- * @generated
- */
- Segment createSegment();
-
- /**
- * Returns a new object of class '<em>Segments</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Segments</em>'.
- * @generated
- */
- Segments createSegments();
-
- /**
- * Returns a new object of class '<em>Sub Component</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Sub Component</em>'.
- * @generated
- */
- SubComponent createSubComponent();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- EdiPackage getEdiPackage();
-
-} //EdiFactory
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiMap.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiMap.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiMap.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -22,7 +22,7 @@
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getEdiMap()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getEdiMap()
* @model extendedMetaData="name='EdiMap' kind='elementOnly'"
* @generated
*/
@@ -37,7 +37,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Description</em>' containment
reference.
* @see #setDescription(Description)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getEdiMap_Description()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getEdiMap_Description()
* @model containment="true" required="true"
* extendedMetaData="kind='element' name='description'
namespace='##targetNamespace'"
* @generated
@@ -64,7 +64,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Delimiters</em>' containment
reference.
* @see #setDelimiters(Delimiters)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getEdiMap_Delimiters()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getEdiMap_Delimiters()
* @model containment="true" required="true"
* extendedMetaData="kind='element' name='delimiters'
namespace='##targetNamespace'"
* @generated
@@ -91,7 +91,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Segments</em>' containment
reference.
* @see #setSegments(Segments)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getEdiMap_Segments()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getEdiMap_Segments()
* @model containment="true" required="true"
* extendedMetaData="kind='element' name='segments'
namespace='##targetNamespace'"
* @generated
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiPackage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiPackage.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiPackage.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,1551 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.model.medi;
-
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.jboss.tools.smooks.model.common.CommonPackage;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.EdiFactory
- * @model kind="package"
- * @generated
- */
-public interface EdiPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "edi";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.milyn.org/schema/edi-message-mapping-1.0.xsd";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "edi";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EdiPackage eINSTANCE = org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl.init();
-
- /**
- * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.MappingNodeImpl <em>Mapping
Node</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.MappingNodeImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getMappingNode()
- * @generated
- */
- int MAPPING_NODE = 6;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MAPPING_NODE__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED;
-
- /**
- * The feature id for the '<em><b>Any</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MAPPING_NODE__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY;
-
- /**
- * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MAPPING_NODE__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE;
-
- /**
- * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MAPPING_NODE__XMLTAG = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Mapping Node</em>'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int MAPPING_NODE_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.ComponentImpl <em>Component</em>}'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.ComponentImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getComponent()
- * @generated
- */
- int COMPONENT = 0;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPONENT__MIXED = MAPPING_NODE__MIXED;
-
- /**
- * The feature id for the '<em><b>Any</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPONENT__ANY = MAPPING_NODE__ANY;
-
- /**
- * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPONENT__ANY_ATTRIBUTE = MAPPING_NODE__ANY_ATTRIBUTE;
-
- /**
- * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPONENT__XMLTAG = MAPPING_NODE__XMLTAG;
-
- /**
- * The feature id for the '<em><b>Sub
Component</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPONENT__SUB_COMPONENT = MAPPING_NODE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Required</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPONENT__REQUIRED = MAPPING_NODE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Truncatable</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPONENT__TRUNCATABLE = MAPPING_NODE_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>Component</em>'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int COMPONENT_FEATURE_COUNT = MAPPING_NODE_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.DelimitersImpl
<em>Delimiters</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.DelimitersImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getDelimiters()
- * @generated
- */
- int DELIMITERS = 1;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DELIMITERS__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED;
-
- /**
- * The feature id for the '<em><b>Any</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DELIMITERS__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY;
-
- /**
- * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DELIMITERS__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE;
-
- /**
- * The feature id for the '<em><b>Component</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DELIMITERS__COMPONENT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Field</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DELIMITERS__FIELD = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Segment</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DELIMITERS__SEGMENT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Sub
Component</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DELIMITERS__SUB_COMPONENT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 3;
-
- /**
- * The number of structural features of the '<em>Delimiters</em>'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DELIMITERS_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 4;
-
- /**
- * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.DescriptionImpl
<em>Description</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.DescriptionImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getDescription()
- * @generated
- */
- int DESCRIPTION = 2;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DESCRIPTION__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED;
-
- /**
- * The feature id for the '<em><b>Any</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DESCRIPTION__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY;
-
- /**
- * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DESCRIPTION__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE;
-
- /**
- * The feature id for the '<em><b>Name</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DESCRIPTION__NAME = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Version</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DESCRIPTION__VERSION = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>Description</em>'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DESCRIPTION_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.DocumentRootImpl <em>Document
Root</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.DocumentRootImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getDocumentRoot()
- * @generated
- */
- int DOCUMENT_ROOT = 3;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DOCUMENT_ROOT__MIXED = 0;
-
- /**
- * The feature id for the '<em><b>XMLNS Prefix
Map</b></em>' map.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
-
- /**
- * The feature id for the '<em><b>XSI Schema
Location</b></em>' map.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
-
- /**
- * The feature id for the '<em><b>Edimap</b></em>'
containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DOCUMENT_ROOT__EDIMAP = 3;
-
- /**
- * The number of structural features of the '<em>Document Root</em>'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DOCUMENT_ROOT_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.EdiMapImpl <em>Map</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.EdiMapImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getEdiMap()
- * @generated
- */
- int EDI_MAP = 4;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EDI_MAP__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED;
-
- /**
- * The feature id for the '<em><b>Any</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EDI_MAP__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY;
-
- /**
- * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EDI_MAP__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE;
-
- /**
- * The feature id for the '<em><b>Description</b></em>'
containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EDI_MAP__DESCRIPTION = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Delimiters</b></em>'
containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EDI_MAP__DELIMITERS = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Segments</b></em>'
containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EDI_MAP__SEGMENTS = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>Map</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int EDI_MAP_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.FieldImpl <em>Field</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.FieldImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getField()
- * @generated
- */
- int FIELD = 5;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FIELD__MIXED = MAPPING_NODE__MIXED;
-
- /**
- * The feature id for the '<em><b>Any</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FIELD__ANY = MAPPING_NODE__ANY;
-
- /**
- * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FIELD__ANY_ATTRIBUTE = MAPPING_NODE__ANY_ATTRIBUTE;
-
- /**
- * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FIELD__XMLTAG = MAPPING_NODE__XMLTAG;
-
- /**
- * The feature id for the '<em><b>Component</b></em>'
containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FIELD__COMPONENT = MAPPING_NODE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Required</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FIELD__REQUIRED = MAPPING_NODE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Truncatable</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FIELD__TRUNCATABLE = MAPPING_NODE_FEATURE_COUNT + 2;
-
- /**
- * The number of structural features of the '<em>Field</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int FIELD_FEATURE_COUNT = MAPPING_NODE_FEATURE_COUNT + 3;
-
- /**
- * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.SegmentImpl <em>Segment</em>}'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.SegmentImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getSegment()
- * @generated
- */
- int SEGMENT = 7;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT__MIXED = MAPPING_NODE__MIXED;
-
- /**
- * The feature id for the '<em><b>Any</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT__ANY = MAPPING_NODE__ANY;
-
- /**
- * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT__ANY_ATTRIBUTE = MAPPING_NODE__ANY_ATTRIBUTE;
-
- /**
- * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT__XMLTAG = MAPPING_NODE__XMLTAG;
-
- /**
- * The feature id for the '<em><b>Field</b></em>'
containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT__FIELD = MAPPING_NODE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Segment</b></em>'
containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT__SEGMENT = MAPPING_NODE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Max Occurs</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT__MAX_OCCURS = MAPPING_NODE_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Min Occurs</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT__MIN_OCCURS = MAPPING_NODE_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Segcode</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT__SEGCODE = MAPPING_NODE_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the '<em><b>Truncatable</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT__TRUNCATABLE = MAPPING_NODE_FEATURE_COUNT + 5;
-
- /**
- * The number of structural features of the '<em>Segment</em>'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENT_FEATURE_COUNT = MAPPING_NODE_FEATURE_COUNT + 6;
-
- /**
- * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.SegmentsImpl <em>Segments</em>}'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.SegmentsImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getSegments()
- * @generated
- */
- int SEGMENTS = 8;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENTS__MIXED = MAPPING_NODE__MIXED;
-
- /**
- * The feature id for the '<em><b>Any</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENTS__ANY = MAPPING_NODE__ANY;
-
- /**
- * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENTS__ANY_ATTRIBUTE = MAPPING_NODE__ANY_ATTRIBUTE;
-
- /**
- * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENTS__XMLTAG = MAPPING_NODE__XMLTAG;
-
- /**
- * The feature id for the '<em><b>Segment</b></em>'
containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENTS__SEGMENT = MAPPING_NODE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Segments</em>'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SEGMENTS_FEATURE_COUNT = MAPPING_NODE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.SubComponentImpl <em>Sub
Component</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.SubComponentImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getSubComponent()
- * @generated
- */
- int SUB_COMPONENT = 9;
-
- /**
- * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SUB_COMPONENT__MIXED = MAPPING_NODE__MIXED;
-
- /**
- * The feature id for the '<em><b>Any</b></em>'
attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SUB_COMPONENT__ANY = MAPPING_NODE__ANY;
-
- /**
- * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SUB_COMPONENT__ANY_ATTRIBUTE = MAPPING_NODE__ANY_ATTRIBUTE;
-
- /**
- * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SUB_COMPONENT__XMLTAG = MAPPING_NODE__XMLTAG;
-
- /**
- * The feature id for the '<em><b>Required</b></em>'
attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SUB_COMPONENT__REQUIRED = MAPPING_NODE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Sub Component</em>'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int SUB_COMPONENT_FEATURE_COUNT = MAPPING_NODE_FEATURE_COUNT + 1;
-
-
- /**
- * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.Component <em>Component</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Component</em>'.
- * @see org.jboss.tools.smooks.model.medi.Component
- * @generated
- */
- EClass getComponent();
-
- /**
- * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.medi.Component#getSubComponent <em>Sub
Component</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Sub
Component</em>'.
- * @see org.jboss.tools.smooks.model.medi.Component#getSubComponent()
- * @see #getComponent()
- * @generated
- */
- EReference getComponent_SubComponent();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Component#isRequired
<em>Required</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Required</em>'.
- * @see org.jboss.tools.smooks.model.medi.Component#isRequired()
- * @see #getComponent()
- * @generated
- */
- EAttribute getComponent_Required();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Component#isTruncatable
<em>Truncatable</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute
'<em>Truncatable</em>'.
- * @see org.jboss.tools.smooks.model.medi.Component#isTruncatable()
- * @see #getComponent()
- * @generated
- */
- EAttribute getComponent_Truncatable();
-
- /**
- * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.Delimiters <em>Delimiters</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Delimiters</em>'.
- * @see org.jboss.tools.smooks.model.medi.Delimiters
- * @generated
- */
- EClass getDelimiters();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Delimiters#getComponent
<em>Component</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Component</em>'.
- * @see org.jboss.tools.smooks.model.medi.Delimiters#getComponent()
- * @see #getDelimiters()
- * @generated
- */
- EAttribute getDelimiters_Component();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Delimiters#getField <em>Field</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Field</em>'.
- * @see org.jboss.tools.smooks.model.medi.Delimiters#getField()
- * @see #getDelimiters()
- * @generated
- */
- EAttribute getDelimiters_Field();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Delimiters#getSegment
<em>Segment</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Segment</em>'.
- * @see org.jboss.tools.smooks.model.medi.Delimiters#getSegment()
- * @see #getDelimiters()
- * @generated
- */
- EAttribute getDelimiters_Segment();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Delimiters#getSubComponent <em>Sub
Component</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Sub
Component</em>'.
- * @see org.jboss.tools.smooks.model.medi.Delimiters#getSubComponent()
- * @see #getDelimiters()
- * @generated
- */
- EAttribute getDelimiters_SubComponent();
-
- /**
- * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.Description <em>Description</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Description</em>'.
- * @see org.jboss.tools.smooks.model.medi.Description
- * @generated
- */
- EClass getDescription();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Description#getName <em>Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Name</em>'.
- * @see org.jboss.tools.smooks.model.medi.Description#getName()
- * @see #getDescription()
- * @generated
- */
- EAttribute getDescription_Name();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Description#getVersion
<em>Version</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Version</em>'.
- * @see org.jboss.tools.smooks.model.medi.Description#getVersion()
- * @see #getDescription()
- * @generated
- */
- EAttribute getDescription_Version();
-
- /**
- * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot <em>Document Root</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Document Root</em>'.
- * @see org.jboss.tools.smooks.model.medi.DocumentRoot
- * @generated
- */
- EClass getDocumentRoot();
-
- /**
- * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot#getMixed <em>Mixed</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Mixed</em>'.
- * @see org.jboss.tools.smooks.model.medi.DocumentRoot#getMixed()
- * @see #getDocumentRoot()
- * @generated
- */
- EAttribute getDocumentRoot_Mixed();
-
- /**
- * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix
Map</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
- * @see org.jboss.tools.smooks.model.medi.DocumentRoot#getXMLNSPrefixMap()
- * @see #getDocumentRoot()
- * @generated
- */
- EReference getDocumentRoot_XMLNSPrefixMap();
-
- /**
- * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot#getXSISchemaLocation <em>XSI Schema
Location</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the map '<em>XSI Schema
Location</em>'.
- * @see org.jboss.tools.smooks.model.medi.DocumentRoot#getXSISchemaLocation()
- * @see #getDocumentRoot()
- * @generated
- */
- EReference getDocumentRoot_XSISchemaLocation();
-
- /**
- * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot#getEdimap
<em>Edimap</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference
'<em>Edimap</em>'.
- * @see org.jboss.tools.smooks.model.medi.DocumentRoot#getEdimap()
- * @see #getDocumentRoot()
- * @generated
- */
- EReference getDocumentRoot_Edimap();
-
- /**
- * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.EdiMap <em>Map</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Map</em>'.
- * @see org.jboss.tools.smooks.model.medi.EdiMap
- * @generated
- */
- EClass getEdiMap();
-
- /**
- * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.medi.EdiMap#getDescription
<em>Description</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference
'<em>Description</em>'.
- * @see org.jboss.tools.smooks.model.medi.EdiMap#getDescription()
- * @see #getEdiMap()
- * @generated
- */
- EReference getEdiMap_Description();
-
- /**
- * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.medi.EdiMap#getDelimiters
<em>Delimiters</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference
'<em>Delimiters</em>'.
- * @see org.jboss.tools.smooks.model.medi.EdiMap#getDelimiters()
- * @see #getEdiMap()
- * @generated
- */
- EReference getEdiMap_Delimiters();
-
- /**
- * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.medi.EdiMap#getSegments <em>Segments</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference
'<em>Segments</em>'.
- * @see org.jboss.tools.smooks.model.medi.EdiMap#getSegments()
- * @see #getEdiMap()
- * @generated
- */
- EReference getEdiMap_Segments();
-
- /**
- * Returns the meta object for class '{@link org.jboss.tools.smooks.model.medi.Field
<em>Field</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Field</em>'.
- * @see org.jboss.tools.smooks.model.medi.Field
- * @generated
- */
- EClass getField();
-
- /**
- * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.medi.Field#getComponent
<em>Component</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list
'<em>Component</em>'.
- * @see org.jboss.tools.smooks.model.medi.Field#getComponent()
- * @see #getField()
- * @generated
- */
- EReference getField_Component();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Field#isRequired <em>Required</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Required</em>'.
- * @see org.jboss.tools.smooks.model.medi.Field#isRequired()
- * @see #getField()
- * @generated
- */
- EAttribute getField_Required();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Field#isTruncatable
<em>Truncatable</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute
'<em>Truncatable</em>'.
- * @see org.jboss.tools.smooks.model.medi.Field#isTruncatable()
- * @see #getField()
- * @generated
- */
- EAttribute getField_Truncatable();
-
- /**
- * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.MappingNode <em>Mapping Node</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Mapping Node</em>'.
- * @see org.jboss.tools.smooks.model.medi.MappingNode
- * @generated
- */
- EClass getMappingNode();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.MappingNode#getXmltag
<em>Xmltag</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Xmltag</em>'.
- * @see org.jboss.tools.smooks.model.medi.MappingNode#getXmltag()
- * @see #getMappingNode()
- * @generated
- */
- EAttribute getMappingNode_Xmltag();
-
- /**
- * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.Segment <em>Segment</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Segment</em>'.
- * @see org.jboss.tools.smooks.model.medi.Segment
- * @generated
- */
- EClass getSegment();
-
- /**
- * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.medi.Segment#getField <em>Field</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list
'<em>Field</em>'.
- * @see org.jboss.tools.smooks.model.medi.Segment#getField()
- * @see #getSegment()
- * @generated
- */
- EReference getSegment_Field();
-
- /**
- * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.medi.Segment#getSegment <em>Segment</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list
'<em>Segment</em>'.
- * @see org.jboss.tools.smooks.model.medi.Segment#getSegment()
- * @see #getSegment()
- * @generated
- */
- EReference getSegment_Segment();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Segment#getMaxOccurs <em>Max
Occurs</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Max Occurs</em>'.
- * @see org.jboss.tools.smooks.model.medi.Segment#getMaxOccurs()
- * @see #getSegment()
- * @generated
- */
- EAttribute getSegment_MaxOccurs();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Segment#getMinOccurs <em>Min
Occurs</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Min Occurs</em>'.
- * @see org.jboss.tools.smooks.model.medi.Segment#getMinOccurs()
- * @see #getSegment()
- * @generated
- */
- EAttribute getSegment_MinOccurs();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Segment#getSegcode <em>Segcode</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Segcode</em>'.
- * @see org.jboss.tools.smooks.model.medi.Segment#getSegcode()
- * @see #getSegment()
- * @generated
- */
- EAttribute getSegment_Segcode();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Segment#isTruncatable
<em>Truncatable</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute
'<em>Truncatable</em>'.
- * @see org.jboss.tools.smooks.model.medi.Segment#isTruncatable()
- * @see #getSegment()
- * @generated
- */
- EAttribute getSegment_Truncatable();
-
- /**
- * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.Segments <em>Segments</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Segments</em>'.
- * @see org.jboss.tools.smooks.model.medi.Segments
- * @generated
- */
- EClass getSegments();
-
- /**
- * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.medi.Segments#getSegment <em>Segment</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list
'<em>Segment</em>'.
- * @see org.jboss.tools.smooks.model.medi.Segments#getSegment()
- * @see #getSegments()
- * @generated
- */
- EReference getSegments_Segment();
-
- /**
- * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.SubComponent <em>Sub Component</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Sub Component</em>'.
- * @see org.jboss.tools.smooks.model.medi.SubComponent
- * @generated
- */
- EClass getSubComponent();
-
- /**
- * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.SubComponent#isRequired
<em>Required</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Required</em>'.
- * @see org.jboss.tools.smooks.model.medi.SubComponent#isRequired()
- * @see #getSubComponent()
- * @generated
- */
- EAttribute getSubComponent_Required();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- EdiFactory getEdiFactory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.ComponentImpl <em>Component</em>}'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.ComponentImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getComponent()
- * @generated
- */
- EClass COMPONENT = eINSTANCE.getComponent();
-
- /**
- * The meta object literal for the '<em><b>Sub
Component</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference COMPONENT__SUB_COMPONENT = eINSTANCE.getComponent_SubComponent();
-
- /**
- * The meta object literal for the
'<em><b>Required</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute COMPONENT__REQUIRED = eINSTANCE.getComponent_Required();
-
- /**
- * The meta object literal for the
'<em><b>Truncatable</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute COMPONENT__TRUNCATABLE = eINSTANCE.getComponent_Truncatable();
-
- /**
- * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.DelimitersImpl
<em>Delimiters</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.DelimitersImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getDelimiters()
- * @generated
- */
- EClass DELIMITERS = eINSTANCE.getDelimiters();
-
- /**
- * The meta object literal for the
'<em><b>Component</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute DELIMITERS__COMPONENT = eINSTANCE.getDelimiters_Component();
-
- /**
- * The meta object literal for the
'<em><b>Field</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute DELIMITERS__FIELD = eINSTANCE.getDelimiters_Field();
-
- /**
- * The meta object literal for the
'<em><b>Segment</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute DELIMITERS__SEGMENT = eINSTANCE.getDelimiters_Segment();
-
- /**
- * The meta object literal for the '<em><b>Sub
Component</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute DELIMITERS__SUB_COMPONENT = eINSTANCE.getDelimiters_SubComponent();
-
- /**
- * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.DescriptionImpl
<em>Description</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.DescriptionImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getDescription()
- * @generated
- */
- EClass DESCRIPTION = eINSTANCE.getDescription();
-
- /**
- * The meta object literal for the
'<em><b>Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute DESCRIPTION__NAME = eINSTANCE.getDescription_Name();
-
- /**
- * The meta object literal for the
'<em><b>Version</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute DESCRIPTION__VERSION = eINSTANCE.getDescription_Version();
-
- /**
- * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.DocumentRootImpl <em>Document
Root</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.DocumentRootImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getDocumentRoot()
- * @generated
- */
- EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
-
- /**
- * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
-
- /**
- * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
-
- /**
- * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getDocumentRoot_XSISchemaLocation();
-
- /**
- * The meta object literal for the
'<em><b>Edimap</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference DOCUMENT_ROOT__EDIMAP = eINSTANCE.getDocumentRoot_Edimap();
-
- /**
- * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.EdiMapImpl <em>Map</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.EdiMapImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getEdiMap()
- * @generated
- */
- EClass EDI_MAP = eINSTANCE.getEdiMap();
-
- /**
- * The meta object literal for the
'<em><b>Description</b></em>' containment reference
feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference EDI_MAP__DESCRIPTION = eINSTANCE.getEdiMap_Description();
-
- /**
- * The meta object literal for the
'<em><b>Delimiters</b></em>' containment reference
feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference EDI_MAP__DELIMITERS = eINSTANCE.getEdiMap_Delimiters();
-
- /**
- * The meta object literal for the
'<em><b>Segments</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference EDI_MAP__SEGMENTS = eINSTANCE.getEdiMap_Segments();
-
- /**
- * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.FieldImpl <em>Field</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.FieldImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getField()
- * @generated
- */
- EClass FIELD = eINSTANCE.getField();
-
- /**
- * The meta object literal for the
'<em><b>Component</b></em>' containment reference list
feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference FIELD__COMPONENT = eINSTANCE.getField_Component();
-
- /**
- * The meta object literal for the
'<em><b>Required</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute FIELD__REQUIRED = eINSTANCE.getField_Required();
-
- /**
- * The meta object literal for the
'<em><b>Truncatable</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute FIELD__TRUNCATABLE = eINSTANCE.getField_Truncatable();
-
- /**
- * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.MappingNodeImpl <em>Mapping
Node</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.MappingNodeImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getMappingNode()
- * @generated
- */
- EClass MAPPING_NODE = eINSTANCE.getMappingNode();
-
- /**
- * The meta object literal for the
'<em><b>Xmltag</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute MAPPING_NODE__XMLTAG = eINSTANCE.getMappingNode_Xmltag();
-
- /**
- * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.SegmentImpl <em>Segment</em>}'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.SegmentImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getSegment()
- * @generated
- */
- EClass SEGMENT = eINSTANCE.getSegment();
-
- /**
- * The meta object literal for the
'<em><b>Field</b></em>' containment reference list
feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference SEGMENT__FIELD = eINSTANCE.getSegment_Field();
-
- /**
- * The meta object literal for the
'<em><b>Segment</b></em>' containment reference list
feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference SEGMENT__SEGMENT = eINSTANCE.getSegment_Segment();
-
- /**
- * The meta object literal for the '<em><b>Max
Occurs</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SEGMENT__MAX_OCCURS = eINSTANCE.getSegment_MaxOccurs();
-
- /**
- * The meta object literal for the '<em><b>Min
Occurs</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SEGMENT__MIN_OCCURS = eINSTANCE.getSegment_MinOccurs();
-
- /**
- * The meta object literal for the
'<em><b>Segcode</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SEGMENT__SEGCODE = eINSTANCE.getSegment_Segcode();
-
- /**
- * The meta object literal for the
'<em><b>Truncatable</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SEGMENT__TRUNCATABLE = eINSTANCE.getSegment_Truncatable();
-
- /**
- * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.SegmentsImpl <em>Segments</em>}'
class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.SegmentsImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getSegments()
- * @generated
- */
- EClass SEGMENTS = eINSTANCE.getSegments();
-
- /**
- * The meta object literal for the
'<em><b>Segment</b></em>' containment reference list
feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference SEGMENTS__SEGMENT = eINSTANCE.getSegments_Segment();
-
- /**
- * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.SubComponentImpl <em>Sub
Component</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.impl.SubComponentImpl
- * @see org.jboss.tools.smooks.model.medi.impl.EdiPackageImpl#getSubComponent()
- * @generated
- */
- EClass SUB_COMPONENT = eINSTANCE.getSubComponent();
-
- /**
- * The meta object literal for the
'<em><b>Required</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute SUB_COMPONENT__REQUIRED = eINSTANCE.getSubComponent_Required();
-
- }
-
-} //EdiPackage
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Field.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Field.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Field.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -22,7 +22,7 @@
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getField()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getField()
* @model extendedMetaData="name='Field' kind='elementOnly'"
* @generated
*/
@@ -37,7 +37,7 @@
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Component</em>' containment
reference list.
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getField_Component()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getField_Component()
* @model containment="true"
* extendedMetaData="kind='element' name='component'
namespace='##targetNamespace'"
* @generated
@@ -57,7 +57,7 @@
* @see #isSetRequired()
* @see #unsetRequired()
* @see #setRequired(boolean)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getField_Required()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getField_Required()
* @model default="false" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Boolean"
* extendedMetaData="kind='attribute' name='required'"
* @generated
@@ -112,7 +112,7 @@
* @see #isSetTruncatable()
* @see #unsetTruncatable()
* @see #setTruncatable(boolean)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getField_Truncatable()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getField_Truncatable()
* @model default="false" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Boolean"
* extendedMetaData="kind='attribute'
name='truncatable'"
* @generated
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MEdiFactory.java
(from rev 14729,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiFactory.java)
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MEdiFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MEdiFactory.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,127 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.medi;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage
+ * @generated
+ */
+public interface MEdiFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ MEdiFactory eINSTANCE = org.jboss.tools.smooks.model.medi.impl.MEdiFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Component</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Component</em>'.
+ * @generated
+ */
+ Component createComponent();
+
+ /**
+ * Returns a new object of class '<em>Delimiters</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Delimiters</em>'.
+ * @generated
+ */
+ Delimiters createDelimiters();
+
+ /**
+ * Returns a new object of class '<em>Description</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Description</em>'.
+ * @generated
+ */
+ Description createDescription();
+
+ /**
+ * Returns a new object of class '<em>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Document Root</em>'.
+ * @generated
+ */
+ DocumentRoot createDocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>Map</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Map</em>'.
+ * @generated
+ */
+ EdiMap createEdiMap();
+
+ /**
+ * Returns a new object of class '<em>Field</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Field</em>'.
+ * @generated
+ */
+ Field createField();
+
+ /**
+ * Returns a new object of class '<em>Mapping Node</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Mapping Node</em>'.
+ * @generated
+ */
+ MappingNode createMappingNode();
+
+ /**
+ * Returns a new object of class '<em>Segment</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Segment</em>'.
+ * @generated
+ */
+ Segment createSegment();
+
+ /**
+ * Returns a new object of class '<em>Segments</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Segments</em>'.
+ * @generated
+ */
+ Segments createSegments();
+
+ /**
+ * Returns a new object of class '<em>Sub Component</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Sub Component</em>'.
+ * @generated
+ */
+ SubComponent createSubComponent();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ MEdiPackage getEdiPackage();
+
+} //EdiFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MEdiFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MEdiPackage.java
(from rev 14729,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/EdiPackage.java)
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MEdiPackage.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MEdiPackage.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,1551 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.medi;
+
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.jboss.tools.smooks.model.common.CommonPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.MEdiFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface MEdiPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "eedi";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.milyn.org/schema/edi-message-mapping-1.0.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "eedi";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ MEdiPackage eINSTANCE = org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.MappingNodeImpl <em>Mapping
Node</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.MappingNodeImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getMappingNode()
+ * @generated
+ */
+ int MAPPING_NODE = 6;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MAPPING_NODE__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MAPPING_NODE__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MAPPING_NODE__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MAPPING_NODE__XMLTAG = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Mapping Node</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MAPPING_NODE_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.ComponentImpl <em>Component</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.ComponentImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getComponent()
+ * @generated
+ */
+ int COMPONENT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPONENT__MIXED = MAPPING_NODE__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPONENT__ANY = MAPPING_NODE__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPONENT__ANY_ATTRIBUTE = MAPPING_NODE__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPONENT__XMLTAG = MAPPING_NODE__XMLTAG;
+
+ /**
+ * The feature id for the '<em><b>Sub
Component</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPONENT__SUB_COMPONENT = MAPPING_NODE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Required</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPONENT__REQUIRED = MAPPING_NODE_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Truncatable</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPONENT__TRUNCATABLE = MAPPING_NODE_FEATURE_COUNT + 2;
+
+ /**
+ * The number of structural features of the '<em>Component</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int COMPONENT_FEATURE_COUNT = MAPPING_NODE_FEATURE_COUNT + 3;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.DelimitersImpl
<em>Delimiters</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.DelimitersImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getDelimiters()
+ * @generated
+ */
+ int DELIMITERS = 1;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DELIMITERS__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DELIMITERS__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DELIMITERS__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Component</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DELIMITERS__COMPONENT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Field</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DELIMITERS__FIELD = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Segment</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DELIMITERS__SEGMENT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Sub
Component</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DELIMITERS__SUB_COMPONENT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 3;
+
+ /**
+ * The number of structural features of the '<em>Delimiters</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DELIMITERS_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.DescriptionImpl
<em>Description</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.DescriptionImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getDescription()
+ * @generated
+ */
+ int DESCRIPTION = 2;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DESCRIPTION__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DESCRIPTION__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DESCRIPTION__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DESCRIPTION__NAME = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Version</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DESCRIPTION__VERSION = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the '<em>Description</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DESCRIPTION_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.DocumentRootImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ int DOCUMENT_ROOT = 3;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__MIXED = 0;
+
+ /**
+ * The feature id for the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+ /**
+ * The feature id for the '<em><b>XSI Schema
Location</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Edimap</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__EDIMAP = 3;
+
+ /**
+ * The number of structural features of the '<em>Document Root</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.EdiMapImpl <em>Map</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.EdiMapImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getEdiMap()
+ * @generated
+ */
+ int EDI_MAP = 4;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_MAP__MIXED = CommonPackage.ABSTRACT_ANY_TYPE__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_MAP__ANY = CommonPackage.ABSTRACT_ANY_TYPE__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_MAP__ANY_ATTRIBUTE = CommonPackage.ABSTRACT_ANY_TYPE__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Description</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_MAP__DESCRIPTION = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Delimiters</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_MAP__DELIMITERS = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Segments</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_MAP__SEGMENTS = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 2;
+
+ /**
+ * The number of structural features of the '<em>Map</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EDI_MAP_FEATURE_COUNT = CommonPackage.ABSTRACT_ANY_TYPE_FEATURE_COUNT + 3;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.FieldImpl <em>Field</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.FieldImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getField()
+ * @generated
+ */
+ int FIELD = 5;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FIELD__MIXED = MAPPING_NODE__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FIELD__ANY = MAPPING_NODE__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FIELD__ANY_ATTRIBUTE = MAPPING_NODE__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FIELD__XMLTAG = MAPPING_NODE__XMLTAG;
+
+ /**
+ * The feature id for the '<em><b>Component</b></em>'
containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FIELD__COMPONENT = MAPPING_NODE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Required</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FIELD__REQUIRED = MAPPING_NODE_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Truncatable</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FIELD__TRUNCATABLE = MAPPING_NODE_FEATURE_COUNT + 2;
+
+ /**
+ * The number of structural features of the '<em>Field</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FIELD_FEATURE_COUNT = MAPPING_NODE_FEATURE_COUNT + 3;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.SegmentImpl <em>Segment</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.SegmentImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getSegment()
+ * @generated
+ */
+ int SEGMENT = 7;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT__MIXED = MAPPING_NODE__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT__ANY = MAPPING_NODE__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT__ANY_ATTRIBUTE = MAPPING_NODE__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT__XMLTAG = MAPPING_NODE__XMLTAG;
+
+ /**
+ * The feature id for the '<em><b>Field</b></em>'
containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT__FIELD = MAPPING_NODE_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Segment</b></em>'
containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT__SEGMENT = MAPPING_NODE_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Max Occurs</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT__MAX_OCCURS = MAPPING_NODE_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Min Occurs</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT__MIN_OCCURS = MAPPING_NODE_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Segcode</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT__SEGCODE = MAPPING_NODE_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>Truncatable</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT__TRUNCATABLE = MAPPING_NODE_FEATURE_COUNT + 5;
+
+ /**
+ * The number of structural features of the '<em>Segment</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENT_FEATURE_COUNT = MAPPING_NODE_FEATURE_COUNT + 6;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.SegmentsImpl <em>Segments</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.SegmentsImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getSegments()
+ * @generated
+ */
+ int SEGMENTS = 8;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENTS__MIXED = MAPPING_NODE__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENTS__ANY = MAPPING_NODE__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENTS__ANY_ATTRIBUTE = MAPPING_NODE__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENTS__XMLTAG = MAPPING_NODE__XMLTAG;
+
+ /**
+ * The feature id for the '<em><b>Segment</b></em>'
containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENTS__SEGMENT = MAPPING_NODE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Segments</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SEGMENTS_FEATURE_COUNT = MAPPING_NODE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.medi.impl.SubComponentImpl <em>Sub
Component</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.SubComponentImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getSubComponent()
+ * @generated
+ */
+ int SUB_COMPONENT = 9;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SUB_COMPONENT__MIXED = MAPPING_NODE__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SUB_COMPONENT__ANY = MAPPING_NODE__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SUB_COMPONENT__ANY_ATTRIBUTE = MAPPING_NODE__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Xmltag</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SUB_COMPONENT__XMLTAG = MAPPING_NODE__XMLTAG;
+
+ /**
+ * The feature id for the '<em><b>Required</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SUB_COMPONENT__REQUIRED = MAPPING_NODE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Sub Component</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SUB_COMPONENT_FEATURE_COUNT = MAPPING_NODE_FEATURE_COUNT + 1;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.Component <em>Component</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Component</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Component
+ * @generated
+ */
+ EClass getComponent();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.medi.Component#getSubComponent <em>Sub
Component</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Sub
Component</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Component#getSubComponent()
+ * @see #getComponent()
+ * @generated
+ */
+ EReference getComponent_SubComponent();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Component#isRequired
<em>Required</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Required</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Component#isRequired()
+ * @see #getComponent()
+ * @generated
+ */
+ EAttribute getComponent_Required();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Component#isTruncatable
<em>Truncatable</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute
'<em>Truncatable</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Component#isTruncatable()
+ * @see #getComponent()
+ * @generated
+ */
+ EAttribute getComponent_Truncatable();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.Delimiters <em>Delimiters</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Delimiters</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Delimiters
+ * @generated
+ */
+ EClass getDelimiters();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Delimiters#getComponent
<em>Component</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Component</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Delimiters#getComponent()
+ * @see #getDelimiters()
+ * @generated
+ */
+ EAttribute getDelimiters_Component();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Delimiters#getField <em>Field</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Field</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Delimiters#getField()
+ * @see #getDelimiters()
+ * @generated
+ */
+ EAttribute getDelimiters_Field();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Delimiters#getSegment
<em>Segment</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Segment</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Delimiters#getSegment()
+ * @see #getDelimiters()
+ * @generated
+ */
+ EAttribute getDelimiters_Segment();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Delimiters#getSubComponent <em>Sub
Component</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Sub
Component</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Delimiters#getSubComponent()
+ * @see #getDelimiters()
+ * @generated
+ */
+ EAttribute getDelimiters_SubComponent();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.Description <em>Description</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Description</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Description
+ * @generated
+ */
+ EClass getDescription();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Description#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Description#getName()
+ * @see #getDescription()
+ * @generated
+ */
+ EAttribute getDescription_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Description#getVersion
<em>Version</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Version</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Description#getVersion()
+ * @see #getDescription()
+ * @generated
+ */
+ EAttribute getDescription_Version();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Document Root</em>'.
+ * @see org.jboss.tools.smooks.model.medi.DocumentRoot
+ * @generated
+ */
+ EClass getDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot#getMixed <em>Mixed</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see org.jboss.tools.smooks.model.medi.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EAttribute getDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix
Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see org.jboss.tools.smooks.model.medi.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot#getXSISchemaLocation <em>XSI Schema
Location</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XSI Schema
Location</em>'.
+ * @see org.jboss.tools.smooks.model.medi.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot#getEdimap
<em>Edimap</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Edimap</em>'.
+ * @see org.jboss.tools.smooks.model.medi.DocumentRoot#getEdimap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_Edimap();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.EdiMap <em>Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Map</em>'.
+ * @see org.jboss.tools.smooks.model.medi.EdiMap
+ * @generated
+ */
+ EClass getEdiMap();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.medi.EdiMap#getDescription
<em>Description</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Description</em>'.
+ * @see org.jboss.tools.smooks.model.medi.EdiMap#getDescription()
+ * @see #getEdiMap()
+ * @generated
+ */
+ EReference getEdiMap_Description();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.medi.EdiMap#getDelimiters
<em>Delimiters</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Delimiters</em>'.
+ * @see org.jboss.tools.smooks.model.medi.EdiMap#getDelimiters()
+ * @see #getEdiMap()
+ * @generated
+ */
+ EReference getEdiMap_Delimiters();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.medi.EdiMap#getSegments <em>Segments</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Segments</em>'.
+ * @see org.jboss.tools.smooks.model.medi.EdiMap#getSegments()
+ * @see #getEdiMap()
+ * @generated
+ */
+ EReference getEdiMap_Segments();
+
+ /**
+ * Returns the meta object for class '{@link org.jboss.tools.smooks.model.medi.Field
<em>Field</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Field</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Field
+ * @generated
+ */
+ EClass getField();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.medi.Field#getComponent
<em>Component</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list
'<em>Component</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Field#getComponent()
+ * @see #getField()
+ * @generated
+ */
+ EReference getField_Component();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Field#isRequired <em>Required</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Required</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Field#isRequired()
+ * @see #getField()
+ * @generated
+ */
+ EAttribute getField_Required();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Field#isTruncatable
<em>Truncatable</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute
'<em>Truncatable</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Field#isTruncatable()
+ * @see #getField()
+ * @generated
+ */
+ EAttribute getField_Truncatable();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.MappingNode <em>Mapping Node</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Mapping Node</em>'.
+ * @see org.jboss.tools.smooks.model.medi.MappingNode
+ * @generated
+ */
+ EClass getMappingNode();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.MappingNode#getXmltag
<em>Xmltag</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Xmltag</em>'.
+ * @see org.jboss.tools.smooks.model.medi.MappingNode#getXmltag()
+ * @see #getMappingNode()
+ * @generated
+ */
+ EAttribute getMappingNode_Xmltag();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.Segment <em>Segment</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Segment</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Segment
+ * @generated
+ */
+ EClass getSegment();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.medi.Segment#getField <em>Field</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list
'<em>Field</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Segment#getField()
+ * @see #getSegment()
+ * @generated
+ */
+ EReference getSegment_Field();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.medi.Segment#getSegment <em>Segment</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list
'<em>Segment</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Segment#getSegment()
+ * @see #getSegment()
+ * @generated
+ */
+ EReference getSegment_Segment();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Segment#getMaxOccurs <em>Max
Occurs</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Max Occurs</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Segment#getMaxOccurs()
+ * @see #getSegment()
+ * @generated
+ */
+ EAttribute getSegment_MaxOccurs();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Segment#getMinOccurs <em>Min
Occurs</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Min Occurs</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Segment#getMinOccurs()
+ * @see #getSegment()
+ * @generated
+ */
+ EAttribute getSegment_MinOccurs();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Segment#getSegcode <em>Segcode</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Segcode</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Segment#getSegcode()
+ * @see #getSegment()
+ * @generated
+ */
+ EAttribute getSegment_Segcode();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.Segment#isTruncatable
<em>Truncatable</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute
'<em>Truncatable</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Segment#isTruncatable()
+ * @see #getSegment()
+ * @generated
+ */
+ EAttribute getSegment_Truncatable();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.Segments <em>Segments</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Segments</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Segments
+ * @generated
+ */
+ EClass getSegments();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.medi.Segments#getSegment <em>Segment</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list
'<em>Segment</em>'.
+ * @see org.jboss.tools.smooks.model.medi.Segments#getSegment()
+ * @see #getSegments()
+ * @generated
+ */
+ EReference getSegments_Segment();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.medi.SubComponent <em>Sub Component</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Sub Component</em>'.
+ * @see org.jboss.tools.smooks.model.medi.SubComponent
+ * @generated
+ */
+ EClass getSubComponent();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.medi.SubComponent#isRequired
<em>Required</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Required</em>'.
+ * @see org.jboss.tools.smooks.model.medi.SubComponent#isRequired()
+ * @see #getSubComponent()
+ * @generated
+ */
+ EAttribute getSubComponent_Required();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ MEdiFactory getEdiFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.ComponentImpl <em>Component</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.ComponentImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getComponent()
+ * @generated
+ */
+ EClass COMPONENT = eINSTANCE.getComponent();
+
+ /**
+ * The meta object literal for the '<em><b>Sub
Component</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference COMPONENT__SUB_COMPONENT = eINSTANCE.getComponent_SubComponent();
+
+ /**
+ * The meta object literal for the
'<em><b>Required</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute COMPONENT__REQUIRED = eINSTANCE.getComponent_Required();
+
+ /**
+ * The meta object literal for the
'<em><b>Truncatable</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute COMPONENT__TRUNCATABLE = eINSTANCE.getComponent_Truncatable();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.DelimitersImpl
<em>Delimiters</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.DelimitersImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getDelimiters()
+ * @generated
+ */
+ EClass DELIMITERS = eINSTANCE.getDelimiters();
+
+ /**
+ * The meta object literal for the
'<em><b>Component</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DELIMITERS__COMPONENT = eINSTANCE.getDelimiters_Component();
+
+ /**
+ * The meta object literal for the
'<em><b>Field</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DELIMITERS__FIELD = eINSTANCE.getDelimiters_Field();
+
+ /**
+ * The meta object literal for the
'<em><b>Segment</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DELIMITERS__SEGMENT = eINSTANCE.getDelimiters_Segment();
+
+ /**
+ * The meta object literal for the '<em><b>Sub
Component</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DELIMITERS__SUB_COMPONENT = eINSTANCE.getDelimiters_SubComponent();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.DescriptionImpl
<em>Description</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.DescriptionImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getDescription()
+ * @generated
+ */
+ EClass DESCRIPTION = eINSTANCE.getDescription();
+
+ /**
+ * The meta object literal for the
'<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DESCRIPTION__NAME = eINSTANCE.getDescription_Name();
+
+ /**
+ * The meta object literal for the
'<em><b>Version</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DESCRIPTION__VERSION = eINSTANCE.getDescription_Version();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.DocumentRootImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Edimap</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__EDIMAP = eINSTANCE.getDocumentRoot_Edimap();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.EdiMapImpl <em>Map</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.EdiMapImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getEdiMap()
+ * @generated
+ */
+ EClass EDI_MAP = eINSTANCE.getEdiMap();
+
+ /**
+ * The meta object literal for the
'<em><b>Description</b></em>' containment reference
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference EDI_MAP__DESCRIPTION = eINSTANCE.getEdiMap_Description();
+
+ /**
+ * The meta object literal for the
'<em><b>Delimiters</b></em>' containment reference
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference EDI_MAP__DELIMITERS = eINSTANCE.getEdiMap_Delimiters();
+
+ /**
+ * The meta object literal for the
'<em><b>Segments</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference EDI_MAP__SEGMENTS = eINSTANCE.getEdiMap_Segments();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.FieldImpl <em>Field</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.FieldImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getField()
+ * @generated
+ */
+ EClass FIELD = eINSTANCE.getField();
+
+ /**
+ * The meta object literal for the
'<em><b>Component</b></em>' containment reference list
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference FIELD__COMPONENT = eINSTANCE.getField_Component();
+
+ /**
+ * The meta object literal for the
'<em><b>Required</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute FIELD__REQUIRED = eINSTANCE.getField_Required();
+
+ /**
+ * The meta object literal for the
'<em><b>Truncatable</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute FIELD__TRUNCATABLE = eINSTANCE.getField_Truncatable();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.MappingNodeImpl <em>Mapping
Node</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.MappingNodeImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getMappingNode()
+ * @generated
+ */
+ EClass MAPPING_NODE = eINSTANCE.getMappingNode();
+
+ /**
+ * The meta object literal for the
'<em><b>Xmltag</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute MAPPING_NODE__XMLTAG = eINSTANCE.getMappingNode_Xmltag();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.SegmentImpl <em>Segment</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.SegmentImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getSegment()
+ * @generated
+ */
+ EClass SEGMENT = eINSTANCE.getSegment();
+
+ /**
+ * The meta object literal for the
'<em><b>Field</b></em>' containment reference list
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference SEGMENT__FIELD = eINSTANCE.getSegment_Field();
+
+ /**
+ * The meta object literal for the
'<em><b>Segment</b></em>' containment reference list
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference SEGMENT__SEGMENT = eINSTANCE.getSegment_Segment();
+
+ /**
+ * The meta object literal for the '<em><b>Max
Occurs</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SEGMENT__MAX_OCCURS = eINSTANCE.getSegment_MaxOccurs();
+
+ /**
+ * The meta object literal for the '<em><b>Min
Occurs</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SEGMENT__MIN_OCCURS = eINSTANCE.getSegment_MinOccurs();
+
+ /**
+ * The meta object literal for the
'<em><b>Segcode</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SEGMENT__SEGCODE = eINSTANCE.getSegment_Segcode();
+
+ /**
+ * The meta object literal for the
'<em><b>Truncatable</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SEGMENT__TRUNCATABLE = eINSTANCE.getSegment_Truncatable();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.SegmentsImpl <em>Segments</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.SegmentsImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getSegments()
+ * @generated
+ */
+ EClass SEGMENTS = eINSTANCE.getSegments();
+
+ /**
+ * The meta object literal for the
'<em><b>Segment</b></em>' containment reference list
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference SEGMENTS__SEGMENT = eINSTANCE.getSegments_Segment();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.medi.impl.SubComponentImpl <em>Sub
Component</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.impl.SubComponentImpl
+ * @see org.jboss.tools.smooks.model.medi.impl.MEdiPackageImpl#getSubComponent()
+ * @generated
+ */
+ EClass SUB_COMPONENT = eINSTANCE.getSubComponent();
+
+ /**
+ * The meta object literal for the
'<em><b>Required</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SUB_COMPONENT__REQUIRED = eINSTANCE.getSubComponent_Required();
+
+ }
+
+} //EdiPackage
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MEdiPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MappingNode.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MappingNode.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/MappingNode.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -20,7 +20,7 @@
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getMappingNode()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getMappingNode()
* @model extendedMetaData="name='MappingNode' kind='empty'"
* @generated
*/
@@ -35,7 +35,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Xmltag</em>' attribute.
* @see #setXmltag(String)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getMappingNode_Xmltag()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getMappingNode_Xmltag()
* @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
* extendedMetaData="kind='attribute' name='xmltag'"
* @generated
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Segment.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Segment.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Segment.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -25,7 +25,7 @@
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSegment()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSegment()
* @model extendedMetaData="name='Segment' kind='elementOnly'"
* @generated
*/
@@ -40,7 +40,7 @@
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Field</em>' containment reference
list.
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSegment_Field()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSegment_Field()
* @model containment="true" required="true"
* extendedMetaData="kind='element' name='field'
namespace='##targetNamespace'"
* @generated
@@ -57,7 +57,7 @@
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Segment</em>' containment reference
list.
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSegment_Segment()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSegment_Segment()
* @model containment="true"
* extendedMetaData="kind='element' name='segment'
namespace='##targetNamespace'"
* @generated
@@ -80,7 +80,7 @@
* @see #isSetMaxOccurs()
* @see #unsetMaxOccurs()
* @see #setMaxOccurs(int)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSegment_MaxOccurs()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSegment_MaxOccurs()
* @model default="1" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Int"
* extendedMetaData="kind='attribute'
name='maxOccurs'"
* @generated
@@ -137,7 +137,7 @@
* @see #isSetMinOccurs()
* @see #unsetMinOccurs()
* @see #setMinOccurs(int)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSegment_MinOccurs()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSegment_MinOccurs()
* @model default="1" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Int"
* extendedMetaData="kind='attribute'
name='minOccurs'"
* @generated
@@ -189,7 +189,7 @@
* <!-- end-user-doc -->
* @return the value of the '<em>Segcode</em>' attribute.
* @see #setSegcode(String)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSegment_Segcode()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSegment_Segcode()
* @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
* extendedMetaData="kind='attribute' name='segcode'"
* @generated
@@ -219,7 +219,7 @@
* @see #isSetTruncatable()
* @see #unsetTruncatable()
* @see #setTruncatable(boolean)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSegment_Truncatable()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSegment_Truncatable()
* @model default="false" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Boolean"
* extendedMetaData="kind='attribute'
name='truncatable'"
* @generated
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Segments.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Segments.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/Segments.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -20,7 +20,7 @@
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSegments()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSegments()
* @model extendedMetaData="name='Segments'
kind='elementOnly'"
* @generated
*/
@@ -35,7 +35,7 @@
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Segment</em>' containment reference
list.
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSegments_Segment()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSegments_Segment()
* @model containment="true" required="true"
* extendedMetaData="kind='element' name='segment'
namespace='##targetNamespace'"
* @generated
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/SubComponent.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/SubComponent.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/SubComponent.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -19,7 +19,7 @@
* </ul>
* </p>
*
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSubComponent()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSubComponent()
* @model extendedMetaData="name='SubComponent' kind='empty'"
* @generated
*/
@@ -37,7 +37,7 @@
* @see #isSetRequired()
* @see #unsetRequired()
* @see #setRequired(boolean)
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#getSubComponent_Required()
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#getSubComponent_Required()
* @model default="false" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Boolean"
* extendedMetaData="kind='attribute' name='required'"
* @generated
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/ComponentImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/ComponentImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/ComponentImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -22,7 +22,7 @@
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.jboss.tools.smooks.model.medi.Component;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.SubComponent;
/**
@@ -125,7 +125,7 @@
*/
@Override
protected EClass eStaticClass() {
- return EdiPackage.Literals.COMPONENT;
+ return MEdiPackage.Literals.COMPONENT;
}
/**
@@ -135,7 +135,7 @@
*/
public EList<SubComponent> getSubComponent() {
if (subComponent == null) {
- subComponent = new EObjectContainmentEList<SubComponent>(SubComponent.class,
this, EdiPackage.COMPONENT__SUB_COMPONENT);
+ subComponent = new EObjectContainmentEList<SubComponent>(SubComponent.class,
this, MEdiPackage.COMPONENT__SUB_COMPONENT);
}
return subComponent;
}
@@ -160,7 +160,7 @@
boolean oldRequiredESet = requiredESet;
requiredESet = true;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.COMPONENT__REQUIRED,
oldRequired, required, !oldRequiredESet));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.COMPONENT__REQUIRED,
oldRequired, required, !oldRequiredESet));
}
/**
@@ -174,7 +174,7 @@
required = REQUIRED_EDEFAULT;
requiredESet = false;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
EdiPackage.COMPONENT__REQUIRED, oldRequired, REQUIRED_EDEFAULT, oldRequiredESet));
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
MEdiPackage.COMPONENT__REQUIRED, oldRequired, REQUIRED_EDEFAULT, oldRequiredESet));
}
/**
@@ -206,7 +206,7 @@
boolean oldTruncatableESet = truncatableESet;
truncatableESet = true;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
EdiPackage.COMPONENT__TRUNCATABLE, oldTruncatable, truncatable, !oldTruncatableESet));
+ eNotify(new ENotificationImpl(this, Notification.SET,
MEdiPackage.COMPONENT__TRUNCATABLE, oldTruncatable, truncatable, !oldTruncatableESet));
}
/**
@@ -220,7 +220,7 @@
truncatable = TRUNCATABLE_EDEFAULT;
truncatableESet = false;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
EdiPackage.COMPONENT__TRUNCATABLE, oldTruncatable, TRUNCATABLE_EDEFAULT,
oldTruncatableESet));
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
MEdiPackage.COMPONENT__TRUNCATABLE, oldTruncatable, TRUNCATABLE_EDEFAULT,
oldTruncatableESet));
}
/**
@@ -240,7 +240,7 @@
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
switch (featureID) {
- case EdiPackage.COMPONENT__SUB_COMPONENT:
+ case MEdiPackage.COMPONENT__SUB_COMPONENT:
return ((InternalEList<?>)getSubComponent()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -254,11 +254,11 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case EdiPackage.COMPONENT__SUB_COMPONENT:
+ case MEdiPackage.COMPONENT__SUB_COMPONENT:
return getSubComponent();
- case EdiPackage.COMPONENT__REQUIRED:
+ case MEdiPackage.COMPONENT__REQUIRED:
return isRequired() ? Boolean.TRUE : Boolean.FALSE;
- case EdiPackage.COMPONENT__TRUNCATABLE:
+ case MEdiPackage.COMPONENT__TRUNCATABLE:
return isTruncatable() ? Boolean.TRUE : Boolean.FALSE;
}
return super.eGet(featureID, resolve, coreType);
@@ -273,14 +273,14 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case EdiPackage.COMPONENT__SUB_COMPONENT:
+ case MEdiPackage.COMPONENT__SUB_COMPONENT:
getSubComponent().clear();
getSubComponent().addAll((Collection<? extends SubComponent>)newValue);
return;
- case EdiPackage.COMPONENT__REQUIRED:
+ case MEdiPackage.COMPONENT__REQUIRED:
setRequired(((Boolean)newValue).booleanValue());
return;
- case EdiPackage.COMPONENT__TRUNCATABLE:
+ case MEdiPackage.COMPONENT__TRUNCATABLE:
setTruncatable(((Boolean)newValue).booleanValue());
return;
}
@@ -295,13 +295,13 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case EdiPackage.COMPONENT__SUB_COMPONENT:
+ case MEdiPackage.COMPONENT__SUB_COMPONENT:
getSubComponent().clear();
return;
- case EdiPackage.COMPONENT__REQUIRED:
+ case MEdiPackage.COMPONENT__REQUIRED:
unsetRequired();
return;
- case EdiPackage.COMPONENT__TRUNCATABLE:
+ case MEdiPackage.COMPONENT__TRUNCATABLE:
unsetTruncatable();
return;
}
@@ -316,11 +316,11 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case EdiPackage.COMPONENT__SUB_COMPONENT:
+ case MEdiPackage.COMPONENT__SUB_COMPONENT:
return subComponent != null && !subComponent.isEmpty();
- case EdiPackage.COMPONENT__REQUIRED:
+ case MEdiPackage.COMPONENT__REQUIRED:
return isSetRequired();
- case EdiPackage.COMPONENT__TRUNCATABLE:
+ case MEdiPackage.COMPONENT__TRUNCATABLE:
return isSetTruncatable();
}
return super.eIsSet(featureID);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DelimitersImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DelimitersImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DelimitersImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -15,7 +15,7 @@
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.jboss.tools.smooks.model.common.impl.AbstractAnyTypeImpl;
import org.jboss.tools.smooks.model.medi.Delimiters;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* <!-- begin-user-doc -->
@@ -130,7 +130,7 @@
*/
@Override
protected EClass eStaticClass() {
- return EdiPackage.Literals.DELIMITERS;
+ return MEdiPackage.Literals.DELIMITERS;
}
/**
@@ -151,7 +151,7 @@
String oldComponent = component;
component = newComponent;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
EdiPackage.DELIMITERS__COMPONENT, oldComponent, component));
+ eNotify(new ENotificationImpl(this, Notification.SET,
MEdiPackage.DELIMITERS__COMPONENT, oldComponent, component));
}
/**
@@ -172,7 +172,7 @@
String oldField = field;
field = newField;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.DELIMITERS__FIELD,
oldField, field));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.DELIMITERS__FIELD,
oldField, field));
}
/**
@@ -193,7 +193,7 @@
String oldSegment = segment;
segment = newSegment;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.DELIMITERS__SEGMENT,
oldSegment, segment));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.DELIMITERS__SEGMENT,
oldSegment, segment));
}
/**
@@ -214,7 +214,7 @@
String oldSubComponent = subComponent;
subComponent = newSubComponent;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
EdiPackage.DELIMITERS__SUB_COMPONENT, oldSubComponent, subComponent));
+ eNotify(new ENotificationImpl(this, Notification.SET,
MEdiPackage.DELIMITERS__SUB_COMPONENT, oldSubComponent, subComponent));
}
/**
@@ -225,13 +225,13 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case EdiPackage.DELIMITERS__COMPONENT:
+ case MEdiPackage.DELIMITERS__COMPONENT:
return getComponent();
- case EdiPackage.DELIMITERS__FIELD:
+ case MEdiPackage.DELIMITERS__FIELD:
return getField();
- case EdiPackage.DELIMITERS__SEGMENT:
+ case MEdiPackage.DELIMITERS__SEGMENT:
return getSegment();
- case EdiPackage.DELIMITERS__SUB_COMPONENT:
+ case MEdiPackage.DELIMITERS__SUB_COMPONENT:
return getSubComponent();
}
return super.eGet(featureID, resolve, coreType);
@@ -245,16 +245,16 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case EdiPackage.DELIMITERS__COMPONENT:
+ case MEdiPackage.DELIMITERS__COMPONENT:
setComponent((String)newValue);
return;
- case EdiPackage.DELIMITERS__FIELD:
+ case MEdiPackage.DELIMITERS__FIELD:
setField((String)newValue);
return;
- case EdiPackage.DELIMITERS__SEGMENT:
+ case MEdiPackage.DELIMITERS__SEGMENT:
setSegment((String)newValue);
return;
- case EdiPackage.DELIMITERS__SUB_COMPONENT:
+ case MEdiPackage.DELIMITERS__SUB_COMPONENT:
setSubComponent((String)newValue);
return;
}
@@ -269,16 +269,16 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case EdiPackage.DELIMITERS__COMPONENT:
+ case MEdiPackage.DELIMITERS__COMPONENT:
setComponent(COMPONENT_EDEFAULT);
return;
- case EdiPackage.DELIMITERS__FIELD:
+ case MEdiPackage.DELIMITERS__FIELD:
setField(FIELD_EDEFAULT);
return;
- case EdiPackage.DELIMITERS__SEGMENT:
+ case MEdiPackage.DELIMITERS__SEGMENT:
setSegment(SEGMENT_EDEFAULT);
return;
- case EdiPackage.DELIMITERS__SUB_COMPONENT:
+ case MEdiPackage.DELIMITERS__SUB_COMPONENT:
setSubComponent(SUB_COMPONENT_EDEFAULT);
return;
}
@@ -293,13 +293,13 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case EdiPackage.DELIMITERS__COMPONENT:
+ case MEdiPackage.DELIMITERS__COMPONENT:
return COMPONENT_EDEFAULT == null ? component != null :
!COMPONENT_EDEFAULT.equals(component);
- case EdiPackage.DELIMITERS__FIELD:
+ case MEdiPackage.DELIMITERS__FIELD:
return FIELD_EDEFAULT == null ? field != null : !FIELD_EDEFAULT.equals(field);
- case EdiPackage.DELIMITERS__SEGMENT:
+ case MEdiPackage.DELIMITERS__SEGMENT:
return SEGMENT_EDEFAULT == null ? segment != null :
!SEGMENT_EDEFAULT.equals(segment);
- case EdiPackage.DELIMITERS__SUB_COMPONENT:
+ case MEdiPackage.DELIMITERS__SUB_COMPONENT:
return SUB_COMPONENT_EDEFAULT == null ? subComponent != null :
!SUB_COMPONENT_EDEFAULT.equals(subComponent);
}
return super.eIsSet(featureID);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DescriptionImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DescriptionImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DescriptionImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -15,7 +15,7 @@
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.jboss.tools.smooks.model.common.impl.AbstractAnyTypeImpl;
import org.jboss.tools.smooks.model.medi.Description;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* <!-- begin-user-doc -->
@@ -88,7 +88,7 @@
*/
@Override
protected EClass eStaticClass() {
- return EdiPackage.Literals.DESCRIPTION;
+ return MEdiPackage.Literals.DESCRIPTION;
}
/**
@@ -109,7 +109,7 @@
String oldName = name;
name = newName;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.DESCRIPTION__NAME,
oldName, name));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.DESCRIPTION__NAME,
oldName, name));
}
/**
@@ -130,7 +130,7 @@
String oldVersion = version;
version = newVersion;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.DESCRIPTION__VERSION,
oldVersion, version));
+ eNotify(new ENotificationImpl(this, Notification.SET,
MEdiPackage.DESCRIPTION__VERSION, oldVersion, version));
}
/**
@@ -141,9 +141,9 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case EdiPackage.DESCRIPTION__NAME:
+ case MEdiPackage.DESCRIPTION__NAME:
return getName();
- case EdiPackage.DESCRIPTION__VERSION:
+ case MEdiPackage.DESCRIPTION__VERSION:
return getVersion();
}
return super.eGet(featureID, resolve, coreType);
@@ -157,10 +157,10 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case EdiPackage.DESCRIPTION__NAME:
+ case MEdiPackage.DESCRIPTION__NAME:
setName((String)newValue);
return;
- case EdiPackage.DESCRIPTION__VERSION:
+ case MEdiPackage.DESCRIPTION__VERSION:
setVersion((String)newValue);
return;
}
@@ -175,10 +175,10 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case EdiPackage.DESCRIPTION__NAME:
+ case MEdiPackage.DESCRIPTION__NAME:
setName(NAME_EDEFAULT);
return;
- case EdiPackage.DESCRIPTION__VERSION:
+ case MEdiPackage.DESCRIPTION__VERSION:
setVersion(VERSION_EDEFAULT);
return;
}
@@ -193,9 +193,9 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case EdiPackage.DESCRIPTION__NAME:
+ case MEdiPackage.DESCRIPTION__NAME:
return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case EdiPackage.DESCRIPTION__VERSION:
+ case MEdiPackage.DESCRIPTION__VERSION:
return VERSION_EDEFAULT == null ? version != null :
!VERSION_EDEFAULT.equals(version);
}
return super.eIsSet(featureID);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DocumentRootImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/DocumentRootImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -25,7 +25,7 @@
import org.eclipse.emf.ecore.util.InternalEList;
import org.jboss.tools.smooks.model.medi.DocumentRoot;
import org.jboss.tools.smooks.model.medi.EdiMap;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* <!-- begin-user-doc -->
@@ -90,7 +90,7 @@
*/
@Override
protected EClass eStaticClass() {
- return EdiPackage.Literals.DOCUMENT_ROOT;
+ return MEdiPackage.Literals.DOCUMENT_ROOT;
}
/**
@@ -100,7 +100,7 @@
*/
public FeatureMap getMixed() {
if (mixed == null) {
- mixed = new BasicFeatureMap(this, EdiPackage.DOCUMENT_ROOT__MIXED);
+ mixed = new BasicFeatureMap(this, MEdiPackage.DOCUMENT_ROOT__MIXED);
}
return mixed;
}
@@ -112,7 +112,7 @@
*/
public EMap<String, String> getXMLNSPrefixMap() {
if (xMLNSPrefixMap == null) {
- xMLNSPrefixMap = new
EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
EStringToStringMapEntryImpl.class, this, EdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ xMLNSPrefixMap = new
EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
EStringToStringMapEntryImpl.class, this, MEdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
}
return xMLNSPrefixMap;
}
@@ -124,7 +124,7 @@
*/
public EMap<String, String> getXSISchemaLocation() {
if (xSISchemaLocation == null) {
- xSISchemaLocation = new
EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
EStringToStringMapEntryImpl.class, this, EdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ xSISchemaLocation = new
EcoreEMap<String,String>(EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY,
EStringToStringMapEntryImpl.class, this, MEdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
}
return xSISchemaLocation;
}
@@ -135,7 +135,7 @@
* @generated
*/
public EdiMap getEdimap() {
- return (EdiMap)getMixed().get(EdiPackage.Literals.DOCUMENT_ROOT__EDIMAP, true);
+ return (EdiMap)getMixed().get(MEdiPackage.Literals.DOCUMENT_ROOT__EDIMAP, true);
}
/**
@@ -144,7 +144,7 @@
* @generated
*/
public NotificationChain basicSetEdimap(EdiMap newEdimap, NotificationChain msgs) {
- return
((FeatureMap.Internal)getMixed()).basicAdd(EdiPackage.Literals.DOCUMENT_ROOT__EDIMAP,
newEdimap, msgs);
+ return
((FeatureMap.Internal)getMixed()).basicAdd(MEdiPackage.Literals.DOCUMENT_ROOT__EDIMAP,
newEdimap, msgs);
}
/**
@@ -153,7 +153,7 @@
* @generated
*/
public void setEdimap(EdiMap newEdimap) {
- ((FeatureMap.Internal)getMixed()).set(EdiPackage.Literals.DOCUMENT_ROOT__EDIMAP,
newEdimap);
+ ((FeatureMap.Internal)getMixed()).set(MEdiPackage.Literals.DOCUMENT_ROOT__EDIMAP,
newEdimap);
}
/**
@@ -164,13 +164,13 @@
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
switch (featureID) {
- case EdiPackage.DOCUMENT_ROOT__MIXED:
+ case MEdiPackage.DOCUMENT_ROOT__MIXED:
return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
- case EdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ case MEdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
- case EdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ case MEdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
- case EdiPackage.DOCUMENT_ROOT__EDIMAP:
+ case MEdiPackage.DOCUMENT_ROOT__EDIMAP:
return basicSetEdimap(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -184,16 +184,16 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case EdiPackage.DOCUMENT_ROOT__MIXED:
+ case MEdiPackage.DOCUMENT_ROOT__MIXED:
if (coreType) return getMixed();
return ((FeatureMap.Internal)getMixed()).getWrapper();
- case EdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ case MEdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
if (coreType) return getXMLNSPrefixMap();
else return getXMLNSPrefixMap().map();
- case EdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ case MEdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
if (coreType) return getXSISchemaLocation();
else return getXSISchemaLocation().map();
- case EdiPackage.DOCUMENT_ROOT__EDIMAP:
+ case MEdiPackage.DOCUMENT_ROOT__EDIMAP:
return getEdimap();
}
return super.eGet(featureID, resolve, coreType);
@@ -207,16 +207,16 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case EdiPackage.DOCUMENT_ROOT__MIXED:
+ case MEdiPackage.DOCUMENT_ROOT__MIXED:
((FeatureMap.Internal)getMixed()).set(newValue);
return;
- case EdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ case MEdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
return;
- case EdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ case MEdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
return;
- case EdiPackage.DOCUMENT_ROOT__EDIMAP:
+ case MEdiPackage.DOCUMENT_ROOT__EDIMAP:
setEdimap((EdiMap)newValue);
return;
}
@@ -231,16 +231,16 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case EdiPackage.DOCUMENT_ROOT__MIXED:
+ case MEdiPackage.DOCUMENT_ROOT__MIXED:
getMixed().clear();
return;
- case EdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ case MEdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
getXMLNSPrefixMap().clear();
return;
- case EdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ case MEdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
getXSISchemaLocation().clear();
return;
- case EdiPackage.DOCUMENT_ROOT__EDIMAP:
+ case MEdiPackage.DOCUMENT_ROOT__EDIMAP:
setEdimap((EdiMap)null);
return;
}
@@ -255,13 +255,13 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case EdiPackage.DOCUMENT_ROOT__MIXED:
+ case MEdiPackage.DOCUMENT_ROOT__MIXED:
return mixed != null && !mixed.isEmpty();
- case EdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ case MEdiPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
- case EdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ case MEdiPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
- case EdiPackage.DOCUMENT_ROOT__EDIMAP:
+ case MEdiPackage.DOCUMENT_ROOT__EDIMAP:
return getEdimap() != null;
}
return super.eIsSet(featureID);
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiFactoryImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiFactoryImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,198 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.model.medi.impl;
-
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
-import org.eclipse.emf.ecore.plugin.EcorePlugin;
-import org.jboss.tools.smooks.model.medi.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class EdiFactoryImpl extends EFactoryImpl implements EdiFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static EdiFactory init() {
- try {
- EdiFactory theEdiFactory =
(
EdiFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn....);
- if (theEdiFactory != null) {
- return theEdiFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new EdiFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdiFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case EdiPackage.COMPONENT: return createComponent();
- case EdiPackage.DELIMITERS: return createDelimiters();
- case EdiPackage.DESCRIPTION: return createDescription();
- case EdiPackage.DOCUMENT_ROOT: return createDocumentRoot();
- case EdiPackage.EDI_MAP: return createEdiMap();
- case EdiPackage.FIELD: return createField();
- case EdiPackage.MAPPING_NODE: return createMappingNode();
- case EdiPackage.SEGMENT: return createSegment();
- case EdiPackage.SEGMENTS: return createSegments();
- case EdiPackage.SUB_COMPONENT: return createSubComponent();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Component createComponent() {
- ComponentImpl component = new ComponentImpl();
- return component;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Delimiters createDelimiters() {
- DelimitersImpl delimiters = new DelimitersImpl();
- return delimiters;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Description createDescription() {
- DescriptionImpl description = new DescriptionImpl();
- return description;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DocumentRoot createDocumentRoot() {
- DocumentRootImpl documentRoot = new DocumentRootImpl();
- return documentRoot;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdiMap createEdiMap() {
- EdiMapImpl ediMap = new EdiMapImpl();
- return ediMap;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Field createField() {
- FieldImpl field = new FieldImpl();
- return field;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public MappingNode createMappingNode() {
- MappingNodeImpl mappingNode = new MappingNodeImpl();
- return mappingNode;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Segment createSegment() {
- SegmentImpl segment = new SegmentImpl();
- return segment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Segments createSegments() {
- SegmentsImpl segments = new SegmentsImpl();
- return segments;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SubComponent createSubComponent() {
- SubComponentImpl subComponent = new SubComponentImpl();
- return subComponent;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdiPackage getEdiPackage() {
- return (EdiPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static EdiPackage getPackage() {
- return EdiPackage.eINSTANCE;
- }
-
-} //EdiFactoryImpl
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiMapImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiMapImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiMapImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -19,7 +19,7 @@
import org.jboss.tools.smooks.model.medi.Delimiters;
import org.jboss.tools.smooks.model.medi.Description;
import org.jboss.tools.smooks.model.medi.EdiMap;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.Segments;
/**
@@ -84,7 +84,7 @@
*/
@Override
protected EClass eStaticClass() {
- return EdiPackage.Literals.EDI_MAP;
+ return MEdiPackage.Literals.EDI_MAP;
}
/**
@@ -105,7 +105,7 @@
Description oldDescription = description;
description = newDescription;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
EdiPackage.EDI_MAP__DESCRIPTION, oldDescription, newDescription);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
MEdiPackage.EDI_MAP__DESCRIPTION, oldDescription, newDescription);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
@@ -120,14 +120,14 @@
if (newDescription != description) {
NotificationChain msgs = null;
if (description != null)
- msgs = ((InternalEObject)description).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
EdiPackage.EDI_MAP__DESCRIPTION, null, msgs);
+ msgs = ((InternalEObject)description).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
MEdiPackage.EDI_MAP__DESCRIPTION, null, msgs);
if (newDescription != null)
- msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
EdiPackage.EDI_MAP__DESCRIPTION, null, msgs);
+ msgs = ((InternalEObject)newDescription).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
MEdiPackage.EDI_MAP__DESCRIPTION, null, msgs);
msgs = basicSetDescription(newDescription, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.EDI_MAP__DESCRIPTION,
newDescription, newDescription));
+ eNotify(new ENotificationImpl(this, Notification.SET,
MEdiPackage.EDI_MAP__DESCRIPTION, newDescription, newDescription));
}
/**
@@ -148,7 +148,7 @@
Delimiters oldDelimiters = delimiters;
delimiters = newDelimiters;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
EdiPackage.EDI_MAP__DELIMITERS, oldDelimiters, newDelimiters);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
MEdiPackage.EDI_MAP__DELIMITERS, oldDelimiters, newDelimiters);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
@@ -163,14 +163,14 @@
if (newDelimiters != delimiters) {
NotificationChain msgs = null;
if (delimiters != null)
- msgs = ((InternalEObject)delimiters).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
EdiPackage.EDI_MAP__DELIMITERS, null, msgs);
+ msgs = ((InternalEObject)delimiters).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
MEdiPackage.EDI_MAP__DELIMITERS, null, msgs);
if (newDelimiters != null)
- msgs = ((InternalEObject)newDelimiters).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
EdiPackage.EDI_MAP__DELIMITERS, null, msgs);
+ msgs = ((InternalEObject)newDelimiters).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
MEdiPackage.EDI_MAP__DELIMITERS, null, msgs);
msgs = basicSetDelimiters(newDelimiters, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.EDI_MAP__DELIMITERS,
newDelimiters, newDelimiters));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.EDI_MAP__DELIMITERS,
newDelimiters, newDelimiters));
}
/**
@@ -191,7 +191,7 @@
Segments oldSegments = segments;
segments = newSegments;
if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
EdiPackage.EDI_MAP__SEGMENTS, oldSegments, newSegments);
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
MEdiPackage.EDI_MAP__SEGMENTS, oldSegments, newSegments);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
@@ -206,14 +206,14 @@
if (newSegments != segments) {
NotificationChain msgs = null;
if (segments != null)
- msgs = ((InternalEObject)segments).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
EdiPackage.EDI_MAP__SEGMENTS, null, msgs);
+ msgs = ((InternalEObject)segments).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
MEdiPackage.EDI_MAP__SEGMENTS, null, msgs);
if (newSegments != null)
- msgs = ((InternalEObject)newSegments).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
EdiPackage.EDI_MAP__SEGMENTS, null, msgs);
+ msgs = ((InternalEObject)newSegments).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
MEdiPackage.EDI_MAP__SEGMENTS, null, msgs);
msgs = basicSetSegments(newSegments, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.EDI_MAP__SEGMENTS,
newSegments, newSegments));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.EDI_MAP__SEGMENTS,
newSegments, newSegments));
}
/**
@@ -224,11 +224,11 @@
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
switch (featureID) {
- case EdiPackage.EDI_MAP__DESCRIPTION:
+ case MEdiPackage.EDI_MAP__DESCRIPTION:
return basicSetDescription(null, msgs);
- case EdiPackage.EDI_MAP__DELIMITERS:
+ case MEdiPackage.EDI_MAP__DELIMITERS:
return basicSetDelimiters(null, msgs);
- case EdiPackage.EDI_MAP__SEGMENTS:
+ case MEdiPackage.EDI_MAP__SEGMENTS:
return basicSetSegments(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -242,11 +242,11 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case EdiPackage.EDI_MAP__DESCRIPTION:
+ case MEdiPackage.EDI_MAP__DESCRIPTION:
return getDescription();
- case EdiPackage.EDI_MAP__DELIMITERS:
+ case MEdiPackage.EDI_MAP__DELIMITERS:
return getDelimiters();
- case EdiPackage.EDI_MAP__SEGMENTS:
+ case MEdiPackage.EDI_MAP__SEGMENTS:
return getSegments();
}
return super.eGet(featureID, resolve, coreType);
@@ -260,13 +260,13 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case EdiPackage.EDI_MAP__DESCRIPTION:
+ case MEdiPackage.EDI_MAP__DESCRIPTION:
setDescription((Description)newValue);
return;
- case EdiPackage.EDI_MAP__DELIMITERS:
+ case MEdiPackage.EDI_MAP__DELIMITERS:
setDelimiters((Delimiters)newValue);
return;
- case EdiPackage.EDI_MAP__SEGMENTS:
+ case MEdiPackage.EDI_MAP__SEGMENTS:
setSegments((Segments)newValue);
return;
}
@@ -281,13 +281,13 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case EdiPackage.EDI_MAP__DESCRIPTION:
+ case MEdiPackage.EDI_MAP__DESCRIPTION:
setDescription((Description)null);
return;
- case EdiPackage.EDI_MAP__DELIMITERS:
+ case MEdiPackage.EDI_MAP__DELIMITERS:
setDelimiters((Delimiters)null);
return;
- case EdiPackage.EDI_MAP__SEGMENTS:
+ case MEdiPackage.EDI_MAP__SEGMENTS:
setSegments((Segments)null);
return;
}
@@ -302,11 +302,11 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case EdiPackage.EDI_MAP__DESCRIPTION:
+ case MEdiPackage.EDI_MAP__DESCRIPTION:
return description != null;
- case EdiPackage.EDI_MAP__DELIMITERS:
+ case MEdiPackage.EDI_MAP__DELIMITERS:
return delimiters != null;
- case EdiPackage.EDI_MAP__SEGMENTS:
+ case MEdiPackage.EDI_MAP__SEGMENTS:
return segments != null;
}
return super.eIsSet(featureID);
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiPackageImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiPackageImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,991 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.model.medi.impl;
-
-
-
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-
-import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
-import org.jboss.tools.smooks.model.common.CommonPackage;
-import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl;
-import org.jboss.tools.smooks.model.medi.Component;
-import org.jboss.tools.smooks.model.medi.Delimiters;
-import org.jboss.tools.smooks.model.medi.Description;
-import org.jboss.tools.smooks.model.medi.DocumentRoot;
-import org.jboss.tools.smooks.model.medi.EdiFactory;
-import org.jboss.tools.smooks.model.medi.EdiMap;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
-import org.jboss.tools.smooks.model.medi.Field;
-import org.jboss.tools.smooks.model.medi.MappingNode;
-import org.jboss.tools.smooks.model.medi.Segment;
-import org.jboss.tools.smooks.model.medi.Segments;
-import org.jboss.tools.smooks.model.medi.SubComponent;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class EdiPackageImpl extends EPackageImpl implements EdiPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass componentEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass delimitersEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass descriptionEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass documentRootEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass ediMapEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass fieldEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass mappingNodeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass segmentEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass segmentsEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass subComponentEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.jboss.tools.smooks.model.medi.EdiPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private EdiPackageImpl() {
- super(eNS_URI, EdiFactory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this
- * model, and for any others upon which it depends. Simple
- * dependencies are satisfied by calling this method on all
- * dependent packages before doing anything else. This method drives
- * initialization for interdependent packages directly, in parallel
- * with this package, itself.
- * <p>Of this package and its interdependencies, all packages which
- * have not yet been registered by their URI values are first created
- * and registered. The packages are then initialized in two steps:
- * meta-model objects for all of the packages are created before any
- * are initialized, since one package's meta-model objects may refer to
- * those of another.
- * <p>Invocation of this method will not affect any packages that have
- * already been initialized.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #eNS_URI
- * @see #createPackageContents()
- * @see #initializePackageContents()
- * @generated
- */
- public static EdiPackage init() {
- if (isInited) return
(EdiPackage)EPackage.Registry.INSTANCE.getEPackage(EdiPackage.eNS_URI);
-
- // Obtain or create and register package
- EdiPackageImpl theEdiPackage =
(EdiPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof EdiPackageImpl
? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new EdiPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- XMLTypePackage.eINSTANCE.eClass();
-
- // Obtain or create and register interdependencies
- CommonPackageImpl theCommonPackage =
(CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI)
instanceof CommonPackageImpl ?
EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
-
- // Create package meta-data objects
- theEdiPackage.createPackageContents();
- theCommonPackage.createPackageContents();
-
- // Initialize created meta-data
- theEdiPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theEdiPackage.freeze();
-
- return theEdiPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getComponent() {
- return componentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getComponent_SubComponent() {
- return (EReference)componentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getComponent_Required() {
- return (EAttribute)componentEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getComponent_Truncatable() {
- return (EAttribute)componentEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getDelimiters() {
- return delimitersEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDelimiters_Component() {
- return (EAttribute)delimitersEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDelimiters_Field() {
- return (EAttribute)delimitersEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDelimiters_Segment() {
- return (EAttribute)delimitersEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDelimiters_SubComponent() {
- return (EAttribute)delimitersEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getDescription() {
- return descriptionEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDescription_Name() {
- return (EAttribute)descriptionEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDescription_Version() {
- return (EAttribute)descriptionEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getDocumentRoot() {
- return documentRootEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getDocumentRoot_Mixed() {
- return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getDocumentRoot_XMLNSPrefixMap() {
- return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getDocumentRoot_XSISchemaLocation() {
- return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getDocumentRoot_Edimap() {
- return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getEdiMap() {
- return ediMapEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getEdiMap_Description() {
- return (EReference)ediMapEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getEdiMap_Delimiters() {
- return (EReference)ediMapEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getEdiMap_Segments() {
- return (EReference)ediMapEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getField() {
- return fieldEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getField_Component() {
- return (EReference)fieldEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getField_Required() {
- return (EAttribute)fieldEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getField_Truncatable() {
- return (EAttribute)fieldEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getMappingNode() {
- return mappingNodeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getMappingNode_Xmltag() {
- return (EAttribute)mappingNodeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getSegment() {
- return segmentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getSegment_Field() {
- return (EReference)segmentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getSegment_Segment() {
- return (EReference)segmentEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSegment_MaxOccurs() {
- return (EAttribute)segmentEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSegment_MinOccurs() {
- return (EAttribute)segmentEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSegment_Segcode() {
- return (EAttribute)segmentEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSegment_Truncatable() {
- return (EAttribute)segmentEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getSegments() {
- return segmentsEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getSegments_Segment() {
- return (EReference)segmentsEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getSubComponent() {
- return subComponentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getSubComponent_Required() {
- return (EAttribute)subComponentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdiFactory getEdiFactory() {
- return (EdiFactory)getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated) return;
- isCreated = true;
-
- // Create classes and their features
- componentEClass = createEClass(COMPONENT);
- createEReference(componentEClass, COMPONENT__SUB_COMPONENT);
- createEAttribute(componentEClass, COMPONENT__REQUIRED);
- createEAttribute(componentEClass, COMPONENT__TRUNCATABLE);
-
- delimitersEClass = createEClass(DELIMITERS);
- createEAttribute(delimitersEClass, DELIMITERS__COMPONENT);
- createEAttribute(delimitersEClass, DELIMITERS__FIELD);
- createEAttribute(delimitersEClass, DELIMITERS__SEGMENT);
- createEAttribute(delimitersEClass, DELIMITERS__SUB_COMPONENT);
-
- descriptionEClass = createEClass(DESCRIPTION);
- createEAttribute(descriptionEClass, DESCRIPTION__NAME);
- createEAttribute(descriptionEClass, DESCRIPTION__VERSION);
-
- documentRootEClass = createEClass(DOCUMENT_ROOT);
- createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
- createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
- createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
- createEReference(documentRootEClass, DOCUMENT_ROOT__EDIMAP);
-
- ediMapEClass = createEClass(EDI_MAP);
- createEReference(ediMapEClass, EDI_MAP__DESCRIPTION);
- createEReference(ediMapEClass, EDI_MAP__DELIMITERS);
- createEReference(ediMapEClass, EDI_MAP__SEGMENTS);
-
- fieldEClass = createEClass(FIELD);
- createEReference(fieldEClass, FIELD__COMPONENT);
- createEAttribute(fieldEClass, FIELD__REQUIRED);
- createEAttribute(fieldEClass, FIELD__TRUNCATABLE);
-
- mappingNodeEClass = createEClass(MAPPING_NODE);
- createEAttribute(mappingNodeEClass, MAPPING_NODE__XMLTAG);
-
- segmentEClass = createEClass(SEGMENT);
- createEReference(segmentEClass, SEGMENT__FIELD);
- createEReference(segmentEClass, SEGMENT__SEGMENT);
- createEAttribute(segmentEClass, SEGMENT__MAX_OCCURS);
- createEAttribute(segmentEClass, SEGMENT__MIN_OCCURS);
- createEAttribute(segmentEClass, SEGMENT__SEGCODE);
- createEAttribute(segmentEClass, SEGMENT__TRUNCATABLE);
-
- segmentsEClass = createEClass(SEGMENTS);
- createEReference(segmentsEClass, SEGMENTS__SEGMENT);
-
- subComponentEClass = createEClass(SUB_COMPONENT);
- createEAttribute(subComponentEClass, SUB_COMPONENT__REQUIRED);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized) return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Obtain other dependent packages
- XMLTypePackage theXMLTypePackage =
(XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
- CommonPackage theCommonPackage =
(CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- componentEClass.getESuperTypes().add(this.getMappingNode());
- delimitersEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType());
- descriptionEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType());
- ediMapEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType());
- fieldEClass.getESuperTypes().add(this.getMappingNode());
- mappingNodeEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType());
- segmentEClass.getESuperTypes().add(this.getMappingNode());
- segmentsEClass.getESuperTypes().add(this.getMappingNode());
- subComponentEClass.getESuperTypes().add(this.getMappingNode());
-
- // Initialize classes and features; add operations and parameters
- initEClass(componentEClass, Component.class, "Component", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getComponent_SubComponent(), this.getSubComponent(), null,
"subComponent", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
- initEAttribute(getComponent_Required(), theXMLTypePackage.getBoolean(),
"required", "false", 0, 1, Component.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getComponent_Truncatable(), theXMLTypePackage.getBoolean(),
"truncatable", "false", 0, 1, Component.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(delimitersEClass, Delimiters.class, "Delimiters", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDelimiters_Component(), theXMLTypePackage.getString(),
"component", null, 1, 1, Delimiters.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDelimiters_Field(), theXMLTypePackage.getString(), "field",
null, 1, 1, Delimiters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDelimiters_Segment(), theXMLTypePackage.getString(),
"segment", null, 1, 1, Delimiters.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDelimiters_SubComponent(), theXMLTypePackage.getString(),
"subComponent", null, 1, 1, Delimiters.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(descriptionEClass, Description.class, "Description", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDescription_Name(), theXMLTypePackage.getString(), "name",
null, 1, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDescription_Version(), theXMLTypePackage.getString(),
"version", null, 1, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(),
"mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDocumentRoot_XMLNSPrefixMap(),
ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1,
null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDocumentRoot_XSISchemaLocation(),
ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0,
-1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getDocumentRoot_Edimap(), this.getEdiMap(), null, "edimap",
null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
-
- initEClass(ediMapEClass, EdiMap.class, "EdiMap", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
- initEReference(getEdiMap_Description(), this.getDescription(), null,
"description", null, 1, 1, EdiMap.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
- initEReference(getEdiMap_Delimiters(), this.getDelimiters(), null,
"delimiters", null, 1, 1, EdiMap.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
- initEReference(getEdiMap_Segments(), this.getSegments(), null, "segments",
null, 1, 1, EdiMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(fieldEClass, Field.class, "Field", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
- initEReference(getField_Component(), this.getComponent(), null, "component",
null, 0, -1, Field.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getField_Required(), theXMLTypePackage.getBoolean(),
"required", "false", 0, 1, Field.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getField_Truncatable(), theXMLTypePackage.getBoolean(),
"truncatable", "false", 0, 1, Field.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(mappingNodeEClass, MappingNode.class, "MappingNode", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMappingNode_Xmltag(), theXMLTypePackage.getString(),
"xmltag", null, 1, 1, MappingNode.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(segmentEClass, Segment.class, "Segment", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getSegment_Field(), this.getField(), null, "field", null, 1,
-1, Segment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getSegment_Segment(), this.getSegment(), null, "segment",
null, 0, -1, Segment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSegment_MaxOccurs(), theXMLTypePackage.getInt(),
"maxOccurs", "1", 0, 1, Segment.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSegment_MinOccurs(), theXMLTypePackage.getInt(),
"minOccurs", "1", 0, 1, Segment.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSegment_Segcode(), theXMLTypePackage.getString(),
"segcode", null, 1, 1, Segment.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getSegment_Truncatable(), theXMLTypePackage.getBoolean(),
"truncatable", "false", 0, 1, Segment.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(segmentsEClass, Segments.class, "Segments", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getSegments_Segment(), this.getSegment(), null, "segment",
null, 1, -1, Segments.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(subComponentEClass, SubComponent.class, "SubComponent",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getSubComponent_Required(), theXMLTypePackage.getBoolean(),
"required", "false", 0, 1, SubComponent.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
-
- // Create annotations
- // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
- createExtendedMetaDataAnnotations();
- }
-
- /**
- * Initializes the annotations for
<b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void createExtendedMetaDataAnnotations() {
- String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
- addAnnotation
- (componentEClass,
- source,
- new String[] {
- "name", "Component",
- "kind", "elementOnly"
- });
- addAnnotation
- (getComponent_SubComponent(),
- source,
- new String[] {
- "kind", "element",
- "name", "sub-component",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getComponent_Required(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "required"
- });
- addAnnotation
- (getComponent_Truncatable(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "truncatable"
- });
- addAnnotation
- (delimitersEClass,
- source,
- new String[] {
- "name", "Delimiters",
- "kind", "empty"
- });
- addAnnotation
- (getDelimiters_Component(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "component"
- });
- addAnnotation
- (getDelimiters_Field(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "field"
- });
- addAnnotation
- (getDelimiters_Segment(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "segment"
- });
- addAnnotation
- (getDelimiters_SubComponent(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "sub-component"
- });
- addAnnotation
- (descriptionEClass,
- source,
- new String[] {
- "name", "Description",
- "kind", "empty"
- });
- addAnnotation
- (getDescription_Name(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "name"
- });
- addAnnotation
- (getDescription_Version(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "version"
- });
- addAnnotation
- (documentRootEClass,
- source,
- new String[] {
- "name", "",
- "kind", "mixed"
- });
- addAnnotation
- (getDocumentRoot_Mixed(),
- source,
- new String[] {
- "kind", "elementWildcard",
- "name", ":mixed"
- });
- addAnnotation
- (getDocumentRoot_XMLNSPrefixMap(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "xmlns:prefix"
- });
- addAnnotation
- (getDocumentRoot_XSISchemaLocation(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "xsi:schemaLocation"
- });
- addAnnotation
- (getDocumentRoot_Edimap(),
- source,
- new String[] {
- "kind", "element",
- "name", "edimap",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (ediMapEClass,
- source,
- new String[] {
- "name", "EdiMap",
- "kind", "elementOnly"
- });
- addAnnotation
- (getEdiMap_Description(),
- source,
- new String[] {
- "kind", "element",
- "name", "description",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getEdiMap_Delimiters(),
- source,
- new String[] {
- "kind", "element",
- "name", "delimiters",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getEdiMap_Segments(),
- source,
- new String[] {
- "kind", "element",
- "name", "segments",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (fieldEClass,
- source,
- new String[] {
- "name", "Field",
- "kind", "elementOnly"
- });
- addAnnotation
- (getField_Component(),
- source,
- new String[] {
- "kind", "element",
- "name", "component",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getField_Required(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "required"
- });
- addAnnotation
- (getField_Truncatable(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "truncatable"
- });
- addAnnotation
- (mappingNodeEClass,
- source,
- new String[] {
- "name", "MappingNode",
- "kind", "empty"
- });
- addAnnotation
- (getMappingNode_Xmltag(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "xmltag"
- });
- addAnnotation
- (segmentEClass,
- source,
- new String[] {
- "name", "Segment",
- "kind", "elementOnly"
- });
- addAnnotation
- (getSegment_Field(),
- source,
- new String[] {
- "kind", "element",
- "name", "field",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getSegment_Segment(),
- source,
- new String[] {
- "kind", "element",
- "name", "segment",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (getSegment_MaxOccurs(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "maxOccurs"
- });
- addAnnotation
- (getSegment_MinOccurs(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "minOccurs"
- });
- addAnnotation
- (getSegment_Segcode(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "segcode"
- });
- addAnnotation
- (getSegment_Truncatable(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "truncatable"
- });
- addAnnotation
- (segmentsEClass,
- source,
- new String[] {
- "name", "Segments",
- "kind", "elementOnly"
- });
- addAnnotation
- (getSegments_Segment(),
- source,
- new String[] {
- "kind", "element",
- "name", "segment",
- "namespace", "##targetNamespace"
- });
- addAnnotation
- (subComponentEClass,
- source,
- new String[] {
- "name", "SubComponent",
- "kind", "empty"
- });
- addAnnotation
- (getSubComponent_Required(),
- source,
- new String[] {
- "kind", "attribute",
- "name", "required"
- });
- }
-
-} //EdiPackageImpl
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/FieldImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/FieldImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/FieldImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -22,7 +22,7 @@
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
import org.jboss.tools.smooks.model.medi.Component;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.Field;
/**
@@ -125,7 +125,7 @@
*/
@Override
protected EClass eStaticClass() {
- return EdiPackage.Literals.FIELD;
+ return MEdiPackage.Literals.FIELD;
}
/**
@@ -135,7 +135,7 @@
*/
public EList<Component> getComponent() {
if (component == null) {
- component = new EObjectContainmentEList<Component>(Component.class, this,
EdiPackage.FIELD__COMPONENT);
+ component = new EObjectContainmentEList<Component>(Component.class, this,
MEdiPackage.FIELD__COMPONENT);
}
return component;
}
@@ -160,7 +160,7 @@
boolean oldRequiredESet = requiredESet;
requiredESet = true;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.FIELD__REQUIRED,
oldRequired, required, !oldRequiredESet));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.FIELD__REQUIRED,
oldRequired, required, !oldRequiredESet));
}
/**
@@ -174,7 +174,7 @@
required = REQUIRED_EDEFAULT;
requiredESet = false;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, EdiPackage.FIELD__REQUIRED,
oldRequired, REQUIRED_EDEFAULT, oldRequiredESet));
+ eNotify(new ENotificationImpl(this, Notification.UNSET, MEdiPackage.FIELD__REQUIRED,
oldRequired, REQUIRED_EDEFAULT, oldRequiredESet));
}
/**
@@ -206,7 +206,7 @@
boolean oldTruncatableESet = truncatableESet;
truncatableESet = true;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.FIELD__TRUNCATABLE,
oldTruncatable, truncatable, !oldTruncatableESet));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.FIELD__TRUNCATABLE,
oldTruncatable, truncatable, !oldTruncatableESet));
}
/**
@@ -220,7 +220,7 @@
truncatable = TRUNCATABLE_EDEFAULT;
truncatableESet = false;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET, EdiPackage.FIELD__TRUNCATABLE,
oldTruncatable, TRUNCATABLE_EDEFAULT, oldTruncatableESet));
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
MEdiPackage.FIELD__TRUNCATABLE, oldTruncatable, TRUNCATABLE_EDEFAULT,
oldTruncatableESet));
}
/**
@@ -240,7 +240,7 @@
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
switch (featureID) {
- case EdiPackage.FIELD__COMPONENT:
+ case MEdiPackage.FIELD__COMPONENT:
return ((InternalEList<?>)getComponent()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -254,11 +254,11 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case EdiPackage.FIELD__COMPONENT:
+ case MEdiPackage.FIELD__COMPONENT:
return getComponent();
- case EdiPackage.FIELD__REQUIRED:
+ case MEdiPackage.FIELD__REQUIRED:
return isRequired() ? Boolean.TRUE : Boolean.FALSE;
- case EdiPackage.FIELD__TRUNCATABLE:
+ case MEdiPackage.FIELD__TRUNCATABLE:
return isTruncatable() ? Boolean.TRUE : Boolean.FALSE;
}
return super.eGet(featureID, resolve, coreType);
@@ -273,14 +273,14 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case EdiPackage.FIELD__COMPONENT:
+ case MEdiPackage.FIELD__COMPONENT:
getComponent().clear();
getComponent().addAll((Collection<? extends Component>)newValue);
return;
- case EdiPackage.FIELD__REQUIRED:
+ case MEdiPackage.FIELD__REQUIRED:
setRequired(((Boolean)newValue).booleanValue());
return;
- case EdiPackage.FIELD__TRUNCATABLE:
+ case MEdiPackage.FIELD__TRUNCATABLE:
setTruncatable(((Boolean)newValue).booleanValue());
return;
}
@@ -295,13 +295,13 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case EdiPackage.FIELD__COMPONENT:
+ case MEdiPackage.FIELD__COMPONENT:
getComponent().clear();
return;
- case EdiPackage.FIELD__REQUIRED:
+ case MEdiPackage.FIELD__REQUIRED:
unsetRequired();
return;
- case EdiPackage.FIELD__TRUNCATABLE:
+ case MEdiPackage.FIELD__TRUNCATABLE:
unsetTruncatable();
return;
}
@@ -316,11 +316,11 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case EdiPackage.FIELD__COMPONENT:
+ case MEdiPackage.FIELD__COMPONENT:
return component != null && !component.isEmpty();
- case EdiPackage.FIELD__REQUIRED:
+ case MEdiPackage.FIELD__REQUIRED:
return isSetRequired();
- case EdiPackage.FIELD__TRUNCATABLE:
+ case MEdiPackage.FIELD__TRUNCATABLE:
return isSetTruncatable();
}
return super.eIsSet(featureID);
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MEdiFactoryImpl.java
(from rev 14729,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiFactoryImpl.java)
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MEdiFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MEdiFactoryImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,198 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.medi.impl;
+
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.jboss.tools.smooks.model.medi.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class MEdiFactoryImpl extends EFactoryImpl implements MEdiFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static MEdiFactory init() {
+ try {
+ MEdiFactory theEdiFactory =
(
MEdiFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn...);
+ if (theEdiFactory != null) {
+ return theEdiFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new MEdiFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MEdiFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case MEdiPackage.COMPONENT: return createComponent();
+ case MEdiPackage.DELIMITERS: return createDelimiters();
+ case MEdiPackage.DESCRIPTION: return createDescription();
+ case MEdiPackage.DOCUMENT_ROOT: return createDocumentRoot();
+ case MEdiPackage.EDI_MAP: return createEdiMap();
+ case MEdiPackage.FIELD: return createField();
+ case MEdiPackage.MAPPING_NODE: return createMappingNode();
+ case MEdiPackage.SEGMENT: return createSegment();
+ case MEdiPackage.SEGMENTS: return createSegments();
+ case MEdiPackage.SUB_COMPONENT: return createSubComponent();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Component createComponent() {
+ ComponentImpl component = new ComponentImpl();
+ return component;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Delimiters createDelimiters() {
+ DelimitersImpl delimiters = new DelimitersImpl();
+ return delimiters;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Description createDescription() {
+ DescriptionImpl description = new DescriptionImpl();
+ return description;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EdiMap createEdiMap() {
+ EdiMapImpl ediMap = new EdiMapImpl();
+ return ediMap;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Field createField() {
+ FieldImpl field = new FieldImpl();
+ return field;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MappingNode createMappingNode() {
+ MappingNodeImpl mappingNode = new MappingNodeImpl();
+ return mappingNode;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Segment createSegment() {
+ SegmentImpl segment = new SegmentImpl();
+ return segment;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Segments createSegments() {
+ SegmentsImpl segments = new SegmentsImpl();
+ return segments;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SubComponent createSubComponent() {
+ SubComponentImpl subComponent = new SubComponentImpl();
+ return subComponent;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MEdiPackage getEdiPackage() {
+ return (MEdiPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static MEdiPackage getPackage() {
+ return MEdiPackage.eINSTANCE;
+ }
+
+} //EdiFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MEdiFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MEdiPackageImpl.java
(from rev 14729,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/EdiPackageImpl.java)
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MEdiPackageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MEdiPackageImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,991 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.medi.impl;
+
+
+
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+import org.jboss.tools.smooks.model.common.CommonPackage;
+import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl;
+import org.jboss.tools.smooks.model.medi.Component;
+import org.jboss.tools.smooks.model.medi.Delimiters;
+import org.jboss.tools.smooks.model.medi.Description;
+import org.jboss.tools.smooks.model.medi.DocumentRoot;
+import org.jboss.tools.smooks.model.medi.MEdiFactory;
+import org.jboss.tools.smooks.model.medi.EdiMap;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
+import org.jboss.tools.smooks.model.medi.Field;
+import org.jboss.tools.smooks.model.medi.MappingNode;
+import org.jboss.tools.smooks.model.medi.Segment;
+import org.jboss.tools.smooks.model.medi.Segments;
+import org.jboss.tools.smooks.model.medi.SubComponent;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class MEdiPackageImpl extends EPackageImpl implements MEdiPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass componentEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass delimitersEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass descriptionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass documentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass ediMapEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass fieldEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass mappingNodeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass segmentEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass segmentsEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass subComponentEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private MEdiPackageImpl() {
+ super(eNS_URI, MEdiFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this
+ * model, and for any others upon which it depends. Simple
+ * dependencies are satisfied by calling this method on all
+ * dependent packages before doing anything else. This method drives
+ * initialization for interdependent packages directly, in parallel
+ * with this package, itself.
+ * <p>Of this package and its interdependencies, all packages which
+ * have not yet been registered by their URI values are first created
+ * and registered. The packages are then initialized in two steps:
+ * meta-model objects for all of the packages are created before any
+ * are initialized, since one package's meta-model objects may refer to
+ * those of another.
+ * <p>Invocation of this method will not affect any packages that have
+ * already been initialized.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static MEdiPackage init() {
+ if (isInited) return
(MEdiPackage)EPackage.Registry.INSTANCE.getEPackage(MEdiPackage.eNS_URI);
+
+ // Obtain or create and register package
+ MEdiPackageImpl theEdiPackage =
(MEdiPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof
MEdiPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new
MEdiPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ XMLTypePackage.eINSTANCE.eClass();
+
+ // Obtain or create and register interdependencies
+ CommonPackageImpl theCommonPackage =
(CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI)
instanceof CommonPackageImpl ?
EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
+
+ // Create package meta-data objects
+ theEdiPackage.createPackageContents();
+ theCommonPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theEdiPackage.initializePackageContents();
+ theCommonPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theEdiPackage.freeze();
+
+ return theEdiPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getComponent() {
+ return componentEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getComponent_SubComponent() {
+ return (EReference)componentEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getComponent_Required() {
+ return (EAttribute)componentEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getComponent_Truncatable() {
+ return (EAttribute)componentEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDelimiters() {
+ return delimitersEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDelimiters_Component() {
+ return (EAttribute)delimitersEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDelimiters_Field() {
+ return (EAttribute)delimitersEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDelimiters_Segment() {
+ return (EAttribute)delimitersEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDelimiters_SubComponent() {
+ return (EAttribute)delimitersEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDescription() {
+ return descriptionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDescription_Name() {
+ return (EAttribute)descriptionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDescription_Version() {
+ return (EAttribute)descriptionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDocumentRoot() {
+ return documentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDocumentRoot_Mixed() {
+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XSISchemaLocation() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_Edimap() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getEdiMap() {
+ return ediMapEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getEdiMap_Description() {
+ return (EReference)ediMapEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getEdiMap_Delimiters() {
+ return (EReference)ediMapEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getEdiMap_Segments() {
+ return (EReference)ediMapEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getField() {
+ return fieldEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getField_Component() {
+ return (EReference)fieldEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getField_Required() {
+ return (EAttribute)fieldEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getField_Truncatable() {
+ return (EAttribute)fieldEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getMappingNode() {
+ return mappingNodeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getMappingNode_Xmltag() {
+ return (EAttribute)mappingNodeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSegment() {
+ return segmentEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getSegment_Field() {
+ return (EReference)segmentEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getSegment_Segment() {
+ return (EReference)segmentEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSegment_MaxOccurs() {
+ return (EAttribute)segmentEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSegment_MinOccurs() {
+ return (EAttribute)segmentEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSegment_Segcode() {
+ return (EAttribute)segmentEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSegment_Truncatable() {
+ return (EAttribute)segmentEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSegments() {
+ return segmentsEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getSegments_Segment() {
+ return (EReference)segmentsEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSubComponent() {
+ return subComponentEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSubComponent_Required() {
+ return (EAttribute)subComponentEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MEdiFactory getEdiFactory() {
+ return (MEdiFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ componentEClass = createEClass(COMPONENT);
+ createEReference(componentEClass, COMPONENT__SUB_COMPONENT);
+ createEAttribute(componentEClass, COMPONENT__REQUIRED);
+ createEAttribute(componentEClass, COMPONENT__TRUNCATABLE);
+
+ delimitersEClass = createEClass(DELIMITERS);
+ createEAttribute(delimitersEClass, DELIMITERS__COMPONENT);
+ createEAttribute(delimitersEClass, DELIMITERS__FIELD);
+ createEAttribute(delimitersEClass, DELIMITERS__SEGMENT);
+ createEAttribute(delimitersEClass, DELIMITERS__SUB_COMPONENT);
+
+ descriptionEClass = createEClass(DESCRIPTION);
+ createEAttribute(descriptionEClass, DESCRIPTION__NAME);
+ createEAttribute(descriptionEClass, DESCRIPTION__VERSION);
+
+ documentRootEClass = createEClass(DOCUMENT_ROOT);
+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__EDIMAP);
+
+ ediMapEClass = createEClass(EDI_MAP);
+ createEReference(ediMapEClass, EDI_MAP__DESCRIPTION);
+ createEReference(ediMapEClass, EDI_MAP__DELIMITERS);
+ createEReference(ediMapEClass, EDI_MAP__SEGMENTS);
+
+ fieldEClass = createEClass(FIELD);
+ createEReference(fieldEClass, FIELD__COMPONENT);
+ createEAttribute(fieldEClass, FIELD__REQUIRED);
+ createEAttribute(fieldEClass, FIELD__TRUNCATABLE);
+
+ mappingNodeEClass = createEClass(MAPPING_NODE);
+ createEAttribute(mappingNodeEClass, MAPPING_NODE__XMLTAG);
+
+ segmentEClass = createEClass(SEGMENT);
+ createEReference(segmentEClass, SEGMENT__FIELD);
+ createEReference(segmentEClass, SEGMENT__SEGMENT);
+ createEAttribute(segmentEClass, SEGMENT__MAX_OCCURS);
+ createEAttribute(segmentEClass, SEGMENT__MIN_OCCURS);
+ createEAttribute(segmentEClass, SEGMENT__SEGCODE);
+ createEAttribute(segmentEClass, SEGMENT__TRUNCATABLE);
+
+ segmentsEClass = createEClass(SEGMENTS);
+ createEReference(segmentsEClass, SEGMENTS__SEGMENT);
+
+ subComponentEClass = createEClass(SUB_COMPONENT);
+ createEAttribute(subComponentEClass, SUB_COMPONENT__REQUIRED);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ XMLTypePackage theXMLTypePackage =
(XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+ CommonPackage theCommonPackage =
(CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ componentEClass.getESuperTypes().add(this.getMappingNode());
+ delimitersEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType());
+ descriptionEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType());
+ ediMapEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType());
+ fieldEClass.getESuperTypes().add(this.getMappingNode());
+ mappingNodeEClass.getESuperTypes().add(theCommonPackage.getAbstractAnyType());
+ segmentEClass.getESuperTypes().add(this.getMappingNode());
+ segmentsEClass.getESuperTypes().add(this.getMappingNode());
+ subComponentEClass.getESuperTypes().add(this.getMappingNode());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(componentEClass, Component.class, "Component", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getComponent_SubComponent(), this.getSubComponent(), null,
"subComponent", null, 0, -1, Component.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEAttribute(getComponent_Required(), theXMLTypePackage.getBoolean(),
"required", "false", 0, 1, Component.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getComponent_Truncatable(), theXMLTypePackage.getBoolean(),
"truncatable", "false", 0, 1, Component.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(delimitersEClass, Delimiters.class, "Delimiters", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDelimiters_Component(), theXMLTypePackage.getString(),
"component", null, 1, 1, Delimiters.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDelimiters_Field(), theXMLTypePackage.getString(), "field",
null, 1, 1, Delimiters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDelimiters_Segment(), theXMLTypePackage.getString(),
"segment", null, 1, 1, Delimiters.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDelimiters_SubComponent(), theXMLTypePackage.getString(),
"subComponent", null, 1, 1, Delimiters.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(descriptionEClass, Description.class, "Description", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDescription_Name(), theXMLTypePackage.getString(), "name",
null, 1, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getDescription_Version(), theXMLTypePackage.getString(),
"version", null, 1, 1, Description.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(),
"mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XMLNSPrefixMap(),
ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1,
null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XSISchemaLocation(),
ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0,
-1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_Edimap(), this.getEdiMap(), null, "edimap",
null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+ initEClass(ediMapEClass, EdiMap.class, "EdiMap", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getEdiMap_Description(), this.getDescription(), null,
"description", null, 1, 1, EdiMap.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEReference(getEdiMap_Delimiters(), this.getDelimiters(), null,
"delimiters", null, 1, 1, EdiMap.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEReference(getEdiMap_Segments(), this.getSegments(), null, "segments",
null, 1, 1, EdiMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(fieldEClass, Field.class, "Field", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getField_Component(), this.getComponent(), null, "component",
null, 0, -1, Field.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getField_Required(), theXMLTypePackage.getBoolean(),
"required", "false", 0, 1, Field.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getField_Truncatable(), theXMLTypePackage.getBoolean(),
"truncatable", "false", 0, 1, Field.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(mappingNodeEClass, MappingNode.class, "MappingNode", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getMappingNode_Xmltag(), theXMLTypePackage.getString(),
"xmltag", null, 1, 1, MappingNode.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(segmentEClass, Segment.class, "Segment", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getSegment_Field(), this.getField(), null, "field", null, 1,
-1, Segment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getSegment_Segment(), this.getSegment(), null, "segment",
null, 0, -1, Segment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSegment_MaxOccurs(), theXMLTypePackage.getInt(),
"maxOccurs", "1", 0, 1, Segment.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSegment_MinOccurs(), theXMLTypePackage.getInt(),
"minOccurs", "1", 0, 1, Segment.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSegment_Segcode(), theXMLTypePackage.getString(),
"segcode", null, 1, 1, Segment.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSegment_Truncatable(), theXMLTypePackage.getBoolean(),
"truncatable", "false", 0, 1, Segment.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(segmentsEClass, Segments.class, "Segments", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getSegments_Segment(), this.getSegment(), null, "segment",
null, 1, -1, Segments.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(subComponentEClass, SubComponent.class, "SubComponent",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSubComponent_Required(), theXMLTypePackage.getBoolean(),
"required", "false", 0, 1, SubComponent.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+ createExtendedMetaDataAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for
<b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createExtendedMetaDataAnnotations() {
+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
+ addAnnotation
+ (componentEClass,
+ source,
+ new String[] {
+ "name", "Component",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getComponent_SubComponent(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "sub-component",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getComponent_Required(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "required"
+ });
+ addAnnotation
+ (getComponent_Truncatable(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "truncatable"
+ });
+ addAnnotation
+ (delimitersEClass,
+ source,
+ new String[] {
+ "name", "Delimiters",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getDelimiters_Component(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "component"
+ });
+ addAnnotation
+ (getDelimiters_Field(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "field"
+ });
+ addAnnotation
+ (getDelimiters_Segment(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "segment"
+ });
+ addAnnotation
+ (getDelimiters_SubComponent(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "sub-component"
+ });
+ addAnnotation
+ (descriptionEClass,
+ source,
+ new String[] {
+ "name", "Description",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getDescription_Name(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "name"
+ });
+ addAnnotation
+ (getDescription_Version(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "version"
+ });
+ addAnnotation
+ (documentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getDocumentRoot_Edimap(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "edimap",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (ediMapEClass,
+ source,
+ new String[] {
+ "name", "EdiMap",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getEdiMap_Description(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "description",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getEdiMap_Delimiters(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "delimiters",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getEdiMap_Segments(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "segments",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (fieldEClass,
+ source,
+ new String[] {
+ "name", "Field",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getField_Component(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "component",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getField_Required(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "required"
+ });
+ addAnnotation
+ (getField_Truncatable(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "truncatable"
+ });
+ addAnnotation
+ (mappingNodeEClass,
+ source,
+ new String[] {
+ "name", "MappingNode",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getMappingNode_Xmltag(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmltag"
+ });
+ addAnnotation
+ (segmentEClass,
+ source,
+ new String[] {
+ "name", "Segment",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getSegment_Field(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "field",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getSegment_Segment(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "segment",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getSegment_MaxOccurs(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "maxOccurs"
+ });
+ addAnnotation
+ (getSegment_MinOccurs(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "minOccurs"
+ });
+ addAnnotation
+ (getSegment_Segcode(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "segcode"
+ });
+ addAnnotation
+ (getSegment_Truncatable(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "truncatable"
+ });
+ addAnnotation
+ (segmentsEClass,
+ source,
+ new String[] {
+ "name", "Segments",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getSegments_Segment(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "segment",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (subComponentEClass,
+ source,
+ new String[] {
+ "name", "SubComponent",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getSubComponent_Required(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "required"
+ });
+ }
+
+} //EdiPackageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MEdiPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MappingNodeImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MappingNodeImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/MappingNodeImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -14,7 +14,7 @@
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.jboss.tools.smooks.model.common.impl.AbstractAnyTypeImpl;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.MappingNode;
/**
@@ -67,7 +67,7 @@
*/
@Override
protected EClass eStaticClass() {
- return EdiPackage.Literals.MAPPING_NODE;
+ return MEdiPackage.Literals.MAPPING_NODE;
}
/**
@@ -88,7 +88,7 @@
String oldXmltag = xmltag;
xmltag = newXmltag;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.MAPPING_NODE__XMLTAG,
oldXmltag, xmltag));
+ eNotify(new ENotificationImpl(this, Notification.SET,
MEdiPackage.MAPPING_NODE__XMLTAG, oldXmltag, xmltag));
}
/**
@@ -99,7 +99,7 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case EdiPackage.MAPPING_NODE__XMLTAG:
+ case MEdiPackage.MAPPING_NODE__XMLTAG:
return getXmltag();
}
return super.eGet(featureID, resolve, coreType);
@@ -113,7 +113,7 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case EdiPackage.MAPPING_NODE__XMLTAG:
+ case MEdiPackage.MAPPING_NODE__XMLTAG:
setXmltag((String)newValue);
return;
}
@@ -128,7 +128,7 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case EdiPackage.MAPPING_NODE__XMLTAG:
+ case MEdiPackage.MAPPING_NODE__XMLTAG:
setXmltag(XMLTAG_EDEFAULT);
return;
}
@@ -143,7 +143,7 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case EdiPackage.MAPPING_NODE__XMLTAG:
+ case MEdiPackage.MAPPING_NODE__XMLTAG:
return XMLTAG_EDEFAULT == null ? xmltag != null : !XMLTAG_EDEFAULT.equals(xmltag);
}
return super.eIsSet(featureID);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SegmentImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SegmentImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SegmentImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -21,7 +21,7 @@
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.Field;
import org.jboss.tools.smooks.model.medi.Segment;
@@ -187,7 +187,7 @@
*/
@Override
protected EClass eStaticClass() {
- return EdiPackage.Literals.SEGMENT;
+ return MEdiPackage.Literals.SEGMENT;
}
/**
@@ -197,7 +197,7 @@
*/
public EList<Field> getField() {
if (field == null) {
- field = new EObjectContainmentEList<Field>(Field.class, this,
EdiPackage.SEGMENT__FIELD);
+ field = new EObjectContainmentEList<Field>(Field.class, this,
MEdiPackage.SEGMENT__FIELD);
}
return field;
}
@@ -209,7 +209,7 @@
*/
public EList<Segment> getSegment() {
if (segment == null) {
- segment = new EObjectContainmentEList<Segment>(Segment.class, this,
EdiPackage.SEGMENT__SEGMENT);
+ segment = new EObjectContainmentEList<Segment>(Segment.class, this,
MEdiPackage.SEGMENT__SEGMENT);
}
return segment;
}
@@ -234,7 +234,7 @@
boolean oldMaxOccursESet = maxOccursESet;
maxOccursESet = true;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.SEGMENT__MAX_OCCURS,
oldMaxOccurs, maxOccurs, !oldMaxOccursESet));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.SEGMENT__MAX_OCCURS,
oldMaxOccurs, maxOccurs, !oldMaxOccursESet));
}
/**
@@ -248,7 +248,7 @@
maxOccurs = MAX_OCCURS_EDEFAULT;
maxOccursESet = false;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
EdiPackage.SEGMENT__MAX_OCCURS, oldMaxOccurs, MAX_OCCURS_EDEFAULT, oldMaxOccursESet));
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
MEdiPackage.SEGMENT__MAX_OCCURS, oldMaxOccurs, MAX_OCCURS_EDEFAULT, oldMaxOccursESet));
}
/**
@@ -280,7 +280,7 @@
boolean oldMinOccursESet = minOccursESet;
minOccursESet = true;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.SEGMENT__MIN_OCCURS,
oldMinOccurs, minOccurs, !oldMinOccursESet));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.SEGMENT__MIN_OCCURS,
oldMinOccurs, minOccurs, !oldMinOccursESet));
}
/**
@@ -294,7 +294,7 @@
minOccurs = MIN_OCCURS_EDEFAULT;
minOccursESet = false;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
EdiPackage.SEGMENT__MIN_OCCURS, oldMinOccurs, MIN_OCCURS_EDEFAULT, oldMinOccursESet));
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
MEdiPackage.SEGMENT__MIN_OCCURS, oldMinOccurs, MIN_OCCURS_EDEFAULT, oldMinOccursESet));
}
/**
@@ -324,7 +324,7 @@
String oldSegcode = segcode;
segcode = newSegcode;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.SEGMENT__SEGCODE,
oldSegcode, segcode));
+ eNotify(new ENotificationImpl(this, Notification.SET, MEdiPackage.SEGMENT__SEGCODE,
oldSegcode, segcode));
}
/**
@@ -347,7 +347,7 @@
boolean oldTruncatableESet = truncatableESet;
truncatableESet = true;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, EdiPackage.SEGMENT__TRUNCATABLE,
oldTruncatable, truncatable, !oldTruncatableESet));
+ eNotify(new ENotificationImpl(this, Notification.SET,
MEdiPackage.SEGMENT__TRUNCATABLE, oldTruncatable, truncatable, !oldTruncatableESet));
}
/**
@@ -361,7 +361,7 @@
truncatable = TRUNCATABLE_EDEFAULT;
truncatableESet = false;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
EdiPackage.SEGMENT__TRUNCATABLE, oldTruncatable, TRUNCATABLE_EDEFAULT,
oldTruncatableESet));
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
MEdiPackage.SEGMENT__TRUNCATABLE, oldTruncatable, TRUNCATABLE_EDEFAULT,
oldTruncatableESet));
}
/**
@@ -381,9 +381,9 @@
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
switch (featureID) {
- case EdiPackage.SEGMENT__FIELD:
+ case MEdiPackage.SEGMENT__FIELD:
return ((InternalEList<?>)getField()).basicRemove(otherEnd, msgs);
- case EdiPackage.SEGMENT__SEGMENT:
+ case MEdiPackage.SEGMENT__SEGMENT:
return ((InternalEList<?>)getSegment()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -397,17 +397,17 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case EdiPackage.SEGMENT__FIELD:
+ case MEdiPackage.SEGMENT__FIELD:
return getField();
- case EdiPackage.SEGMENT__SEGMENT:
+ case MEdiPackage.SEGMENT__SEGMENT:
return getSegment();
- case EdiPackage.SEGMENT__MAX_OCCURS:
+ case MEdiPackage.SEGMENT__MAX_OCCURS:
return new Integer(getMaxOccurs());
- case EdiPackage.SEGMENT__MIN_OCCURS:
+ case MEdiPackage.SEGMENT__MIN_OCCURS:
return new Integer(getMinOccurs());
- case EdiPackage.SEGMENT__SEGCODE:
+ case MEdiPackage.SEGMENT__SEGCODE:
return getSegcode();
- case EdiPackage.SEGMENT__TRUNCATABLE:
+ case MEdiPackage.SEGMENT__TRUNCATABLE:
return isTruncatable() ? Boolean.TRUE : Boolean.FALSE;
}
return super.eGet(featureID, resolve, coreType);
@@ -422,24 +422,24 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case EdiPackage.SEGMENT__FIELD:
+ case MEdiPackage.SEGMENT__FIELD:
getField().clear();
getField().addAll((Collection<? extends Field>)newValue);
return;
- case EdiPackage.SEGMENT__SEGMENT:
+ case MEdiPackage.SEGMENT__SEGMENT:
getSegment().clear();
getSegment().addAll((Collection<? extends Segment>)newValue);
return;
- case EdiPackage.SEGMENT__MAX_OCCURS:
+ case MEdiPackage.SEGMENT__MAX_OCCURS:
setMaxOccurs(((Integer)newValue).intValue());
return;
- case EdiPackage.SEGMENT__MIN_OCCURS:
+ case MEdiPackage.SEGMENT__MIN_OCCURS:
setMinOccurs(((Integer)newValue).intValue());
return;
- case EdiPackage.SEGMENT__SEGCODE:
+ case MEdiPackage.SEGMENT__SEGCODE:
setSegcode((String)newValue);
return;
- case EdiPackage.SEGMENT__TRUNCATABLE:
+ case MEdiPackage.SEGMENT__TRUNCATABLE:
setTruncatable(((Boolean)newValue).booleanValue());
return;
}
@@ -454,22 +454,22 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case EdiPackage.SEGMENT__FIELD:
+ case MEdiPackage.SEGMENT__FIELD:
getField().clear();
return;
- case EdiPackage.SEGMENT__SEGMENT:
+ case MEdiPackage.SEGMENT__SEGMENT:
getSegment().clear();
return;
- case EdiPackage.SEGMENT__MAX_OCCURS:
+ case MEdiPackage.SEGMENT__MAX_OCCURS:
unsetMaxOccurs();
return;
- case EdiPackage.SEGMENT__MIN_OCCURS:
+ case MEdiPackage.SEGMENT__MIN_OCCURS:
unsetMinOccurs();
return;
- case EdiPackage.SEGMENT__SEGCODE:
+ case MEdiPackage.SEGMENT__SEGCODE:
setSegcode(SEGCODE_EDEFAULT);
return;
- case EdiPackage.SEGMENT__TRUNCATABLE:
+ case MEdiPackage.SEGMENT__TRUNCATABLE:
unsetTruncatable();
return;
}
@@ -484,17 +484,17 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case EdiPackage.SEGMENT__FIELD:
+ case MEdiPackage.SEGMENT__FIELD:
return field != null && !field.isEmpty();
- case EdiPackage.SEGMENT__SEGMENT:
+ case MEdiPackage.SEGMENT__SEGMENT:
return segment != null && !segment.isEmpty();
- case EdiPackage.SEGMENT__MAX_OCCURS:
+ case MEdiPackage.SEGMENT__MAX_OCCURS:
return isSetMaxOccurs();
- case EdiPackage.SEGMENT__MIN_OCCURS:
+ case MEdiPackage.SEGMENT__MIN_OCCURS:
return isSetMinOccurs();
- case EdiPackage.SEGMENT__SEGCODE:
+ case MEdiPackage.SEGMENT__SEGCODE:
return SEGCODE_EDEFAULT == null ? segcode != null :
!SEGCODE_EDEFAULT.equals(segcode);
- case EdiPackage.SEGMENT__TRUNCATABLE:
+ case MEdiPackage.SEGMENT__TRUNCATABLE:
return isSetTruncatable();
}
return super.eIsSet(featureID);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SegmentsImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SegmentsImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SegmentsImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -18,7 +18,7 @@
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.Segment;
import org.jboss.tools.smooks.model.medi.Segments;
@@ -62,7 +62,7 @@
*/
@Override
protected EClass eStaticClass() {
- return EdiPackage.Literals.SEGMENTS;
+ return MEdiPackage.Literals.SEGMENTS;
}
/**
@@ -72,7 +72,7 @@
*/
public EList<Segment> getSegment() {
if (segment == null) {
- segment = new EObjectContainmentEList<Segment>(Segment.class, this,
EdiPackage.SEGMENTS__SEGMENT);
+ segment = new EObjectContainmentEList<Segment>(Segment.class, this,
MEdiPackage.SEGMENTS__SEGMENT);
}
return segment;
}
@@ -85,7 +85,7 @@
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
switch (featureID) {
- case EdiPackage.SEGMENTS__SEGMENT:
+ case MEdiPackage.SEGMENTS__SEGMENT:
return ((InternalEList<?>)getSegment()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
@@ -99,7 +99,7 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case EdiPackage.SEGMENTS__SEGMENT:
+ case MEdiPackage.SEGMENTS__SEGMENT:
return getSegment();
}
return super.eGet(featureID, resolve, coreType);
@@ -114,7 +114,7 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case EdiPackage.SEGMENTS__SEGMENT:
+ case MEdiPackage.SEGMENTS__SEGMENT:
getSegment().clear();
getSegment().addAll((Collection<? extends Segment>)newValue);
return;
@@ -130,7 +130,7 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case EdiPackage.SEGMENTS__SEGMENT:
+ case MEdiPackage.SEGMENTS__SEGMENT:
getSegment().clear();
return;
}
@@ -145,7 +145,7 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case EdiPackage.SEGMENTS__SEGMENT:
+ case MEdiPackage.SEGMENTS__SEGMENT:
return segment != null && !segment.isEmpty();
}
return super.eIsSet(featureID);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SubComponentImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SubComponentImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/impl/SubComponentImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -12,7 +12,7 @@
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.SubComponent;
/**
@@ -74,7 +74,7 @@
*/
@Override
protected EClass eStaticClass() {
- return EdiPackage.Literals.SUB_COMPONENT;
+ return MEdiPackage.Literals.SUB_COMPONENT;
}
/**
@@ -97,7 +97,7 @@
boolean oldRequiredESet = requiredESet;
requiredESet = true;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
EdiPackage.SUB_COMPONENT__REQUIRED, oldRequired, required, !oldRequiredESet));
+ eNotify(new ENotificationImpl(this, Notification.SET,
MEdiPackage.SUB_COMPONENT__REQUIRED, oldRequired, required, !oldRequiredESet));
}
/**
@@ -111,7 +111,7 @@
required = REQUIRED_EDEFAULT;
requiredESet = false;
if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.UNSET,
EdiPackage.SUB_COMPONENT__REQUIRED, oldRequired, REQUIRED_EDEFAULT, oldRequiredESet));
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
MEdiPackage.SUB_COMPONENT__REQUIRED, oldRequired, REQUIRED_EDEFAULT, oldRequiredESet));
}
/**
@@ -131,7 +131,7 @@
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case EdiPackage.SUB_COMPONENT__REQUIRED:
+ case MEdiPackage.SUB_COMPONENT__REQUIRED:
return isRequired() ? Boolean.TRUE : Boolean.FALSE;
}
return super.eGet(featureID, resolve, coreType);
@@ -145,7 +145,7 @@
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
- case EdiPackage.SUB_COMPONENT__REQUIRED:
+ case MEdiPackage.SUB_COMPONENT__REQUIRED:
setRequired(((Boolean)newValue).booleanValue());
return;
}
@@ -160,7 +160,7 @@
@Override
public void eUnset(int featureID) {
switch (featureID) {
- case EdiPackage.SUB_COMPONENT__REQUIRED:
+ case MEdiPackage.SUB_COMPONENT__REQUIRED:
unsetRequired();
return;
}
@@ -175,7 +175,7 @@
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case EdiPackage.SUB_COMPONENT__REQUIRED:
+ case MEdiPackage.SUB_COMPONENT__REQUIRED:
return isSetRequired();
}
return super.eIsSet(featureID);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/ComponentItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/ComponentItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/ComponentItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -23,8 +23,8 @@
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
import org.jboss.tools.smooks.model.medi.Component;
-import org.jboss.tools.smooks.model.medi.EdiFactory;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiFactory;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* This is the item provider adapter for a {@link edi.Component} object.
@@ -80,7 +80,7 @@
getResourceLocator(),
getString("_UI_Component_required_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Component_required_feature", "_UI_Component_type"),
- EdiPackage.Literals.COMPONENT__REQUIRED,
+ MEdiPackage.Literals.COMPONENT__REQUIRED,
true,
false,
false,
@@ -102,7 +102,7 @@
getResourceLocator(),
getString("_UI_Component_truncatable_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Component_truncatable_feature", "_UI_Component_type"),
- EdiPackage.Literals.COMPONENT__TRUNCATABLE,
+ MEdiPackage.Literals.COMPONENT__TRUNCATABLE,
true,
false,
false,
@@ -123,7 +123,7 @@
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
- childrenFeatures.add(EdiPackage.Literals.COMPONENT__SUB_COMPONENT);
+ childrenFeatures.add(MEdiPackage.Literals.COMPONENT__SUB_COMPONENT);
}
return childrenFeatures;
}
@@ -178,11 +178,11 @@
updateChildren(notification);
switch (notification.getFeatureID(Component.class)) {
- case EdiPackage.COMPONENT__REQUIRED:
- case EdiPackage.COMPONENT__TRUNCATABLE:
+ case MEdiPackage.COMPONENT__REQUIRED:
+ case MEdiPackage.COMPONENT__TRUNCATABLE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
return;
- case EdiPackage.COMPONENT__SUB_COMPONENT:
+ case MEdiPackage.COMPONENT__SUB_COMPONENT:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
return;
}
@@ -202,8 +202,8 @@
newChildDescriptors.add
(createChildParameter
- (EdiPackage.Literals.COMPONENT__SUB_COMPONENT,
- EdiFactory.eINSTANCE.createSubComponent()));
+ (MEdiPackage.Literals.COMPONENT__SUB_COMPONENT,
+ MEdiFactory.eINSTANCE.createSubComponent()));
}
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DelimitersItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DelimitersItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DelimitersItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -24,7 +24,7 @@
import org.eclipse.emf.edit.provider.ViewerNotification;
import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.medi.Delimiters;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
@@ -83,7 +83,7 @@
getResourceLocator(),
getString("_UI_Delimiters_component_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Delimiters_component_feature", "_UI_Delimiters_type"),
- EdiPackage.Literals.DELIMITERS__COMPONENT,
+ MEdiPackage.Literals.DELIMITERS__COMPONENT,
true,
false,
false,
@@ -105,7 +105,7 @@
getResourceLocator(),
getString("_UI_Delimiters_field_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Delimiters_field_feature", "_UI_Delimiters_type"),
- EdiPackage.Literals.DELIMITERS__FIELD,
+ MEdiPackage.Literals.DELIMITERS__FIELD,
true,
false,
false,
@@ -127,7 +127,7 @@
getResourceLocator(),
getString("_UI_Delimiters_segment_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Delimiters_segment_feature", "_UI_Delimiters_type"),
- EdiPackage.Literals.DELIMITERS__SEGMENT,
+ MEdiPackage.Literals.DELIMITERS__SEGMENT,
true,
false,
false,
@@ -149,7 +149,7 @@
getResourceLocator(),
getString("_UI_Delimiters_subComponent_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Delimiters_subComponent_feature", "_UI_Delimiters_type"),
- EdiPackage.Literals.DELIMITERS__SUB_COMPONENT,
+ MEdiPackage.Literals.DELIMITERS__SUB_COMPONENT,
true,
false,
false,
@@ -195,10 +195,10 @@
updateChildren(notification);
switch (notification.getFeatureID(Delimiters.class)) {
- case EdiPackage.DELIMITERS__COMPONENT:
- case EdiPackage.DELIMITERS__FIELD:
- case EdiPackage.DELIMITERS__SEGMENT:
- case EdiPackage.DELIMITERS__SUB_COMPONENT:
+ case MEdiPackage.DELIMITERS__COMPONENT:
+ case MEdiPackage.DELIMITERS__FIELD:
+ case MEdiPackage.DELIMITERS__SEGMENT:
+ case MEdiPackage.DELIMITERS__SUB_COMPONENT:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
return;
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DescriptionItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DescriptionItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DescriptionItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -24,7 +24,7 @@
import org.eclipse.emf.edit.provider.ViewerNotification;
import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.medi.Description;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
@@ -81,7 +81,7 @@
getResourceLocator(),
getString("_UI_Description_name_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Description_name_feature", "_UI_Description_type"),
- EdiPackage.Literals.DESCRIPTION__NAME,
+ MEdiPackage.Literals.DESCRIPTION__NAME,
true,
false,
false,
@@ -103,7 +103,7 @@
getResourceLocator(),
getString("_UI_Description_version_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Description_version_feature", "_UI_Description_type"),
- EdiPackage.Literals.DESCRIPTION__VERSION,
+ MEdiPackage.Literals.DESCRIPTION__VERSION,
true,
false,
false,
@@ -149,8 +149,8 @@
updateChildren(notification);
switch (notification.getFeatureID(Description.class)) {
- case EdiPackage.DESCRIPTION__NAME:
- case EdiPackage.DESCRIPTION__VERSION:
+ case MEdiPackage.DESCRIPTION__NAME:
+ case MEdiPackage.DESCRIPTION__VERSION:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
return;
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DocumentRootItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/DocumentRootItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -23,8 +23,8 @@
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
import org.jboss.tools.smooks.model.medi.DocumentRoot;
-import org.jboss.tools.smooks.model.medi.EdiFactory;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiFactory;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* This is the item provider adapter for a {@link edi.DocumentRoot} object.
@@ -77,7 +77,7 @@
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
- childrenFeatures.add(EdiPackage.Literals.DOCUMENT_ROOT__EDIMAP);
+ childrenFeatures.add(MEdiPackage.Literals.DOCUMENT_ROOT__EDIMAP);
}
return childrenFeatures;
}
@@ -129,7 +129,7 @@
updateChildren(notification);
switch (notification.getFeatureID(DocumentRoot.class)) {
- case EdiPackage.DOCUMENT_ROOT__EDIMAP:
+ case MEdiPackage.DOCUMENT_ROOT__EDIMAP:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
return;
}
@@ -149,8 +149,8 @@
newChildDescriptors.add
(createChildParameter
- (EdiPackage.Literals.DOCUMENT_ROOT__EDIMAP,
- EdiFactory.eINSTANCE.createEdiMap()));
+ (MEdiPackage.Literals.DOCUMENT_ROOT__EDIMAP,
+ MEdiFactory.eINSTANCE.createEdiMap()));
}
/**
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/EdiItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/EdiItemProviderAdapterFactory.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/EdiItemProviderAdapterFactory.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,417 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.model.medi.provider;
-
-import java.util.ArrayList;
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.edit.provider.ChangeNotifier;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
-import org.eclipse.emf.edit.provider.IChangeNotifier;
-import org.eclipse.emf.edit.provider.IDisposable;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.INotifyChangedListener;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.jboss.tools.smooks.model.medi.util.EdiAdapterFactory;
-
-/**
- * This is the factory that is used to provide the interfaces needed to support Viewers.
- * The adapters generated by this factory convert EMF adapter notifications into calls to
{@link #fireNotifyChanged fireNotifyChanged}.
- * The adapters also support Eclipse property sheets.
- * Note that most of the adapters are shared among multiple instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class EdiItemProviderAdapterFactory extends EdiAdapterFactory implements
ComposeableAdapterFactory, IChangeNotifier, IDisposable {
- /**
- * This keeps track of the root adapter factory that delegates to this adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ComposedAdapterFactory parentAdapterFactory;
-
- /**
- * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected IChangeNotifier changeNotifier = new ChangeNotifier();
-
- /**
- * This keeps track of all the supported types checked by {@link #isFactoryForType
isFactoryForType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Collection<Object> supportedTypes = new ArrayList<Object>();
-
- /**
- * This constructs an instance.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdiItemProviderAdapterFactory() {
- supportedTypes.add(IEditingDomainItemProvider.class);
- supportedTypes.add(IStructuredItemContentProvider.class);
- supportedTypes.add(ITreeItemContentProvider.class);
- supportedTypes.add(IItemLabelProvider.class);
- supportedTypes.add(IItemPropertySource.class);
- }
-
- /**
- * This keeps track of the one adapter used for all {@link edi.Component} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ComponentItemProvider componentItemProvider;
-
- /**
- * This creates an adapter for a {@link edi.Component}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createComponentAdapter() {
- if (componentItemProvider == null) {
- componentItemProvider = new ComponentItemProvider(this);
- }
-
- return componentItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link edi.Delimiters} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DelimitersItemProvider delimitersItemProvider;
-
- /**
- * This creates an adapter for a {@link edi.Delimiters}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createDelimitersAdapter() {
- if (delimitersItemProvider == null) {
- delimitersItemProvider = new DelimitersItemProvider(this);
- }
-
- return delimitersItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link edi.Description} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DescriptionItemProvider descriptionItemProvider;
-
- /**
- * This creates an adapter for a {@link edi.Description}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createDescriptionAdapter() {
- if (descriptionItemProvider == null) {
- descriptionItemProvider = new DescriptionItemProvider(this);
- }
-
- return descriptionItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link edi.DocumentRoot} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DocumentRootItemProvider documentRootItemProvider;
-
- /**
- * This creates an adapter for a {@link edi.DocumentRoot}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createDocumentRootAdapter() {
- if (documentRootItemProvider == null) {
- documentRootItemProvider = new DocumentRootItemProvider(this);
- }
-
- return documentRootItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link edi.EdiMap} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EdiMapItemProvider ediMapItemProvider;
-
- /**
- * This creates an adapter for a {@link edi.EdiMap}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createEdiMapAdapter() {
- if (ediMapItemProvider == null) {
- ediMapItemProvider = new EdiMapItemProvider(this);
- }
-
- return ediMapItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link edi.Field} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected FieldItemProvider fieldItemProvider;
-
- /**
- * This creates an adapter for a {@link edi.Field}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createFieldAdapter() {
- if (fieldItemProvider == null) {
- fieldItemProvider = new FieldItemProvider(this);
- }
-
- return fieldItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link edi.MappingNode} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected MappingNodeItemProvider mappingNodeItemProvider;
-
- /**
- * This creates an adapter for a {@link edi.MappingNode}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createMappingNodeAdapter() {
- if (mappingNodeItemProvider == null) {
- mappingNodeItemProvider = new MappingNodeItemProvider(this);
- }
-
- return mappingNodeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link edi.Segment} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SegmentItemProvider segmentItemProvider;
-
- /**
- * This creates an adapter for a {@link edi.Segment}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createSegmentAdapter() {
- if (segmentItemProvider == null) {
- segmentItemProvider = new SegmentItemProvider(this);
- }
-
- return segmentItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link edi.Segments} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SegmentsItemProvider segmentsItemProvider;
-
- /**
- * This creates an adapter for a {@link edi.Segments}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createSegmentsAdapter() {
- if (segmentsItemProvider == null) {
- segmentsItemProvider = new SegmentsItemProvider(this);
- }
-
- return segmentsItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link edi.SubComponent} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SubComponentItemProvider subComponentItemProvider;
-
- /**
- * This creates an adapter for a {@link edi.SubComponent}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createSubComponentAdapter() {
- if (subComponentItemProvider == null) {
- subComponentItemProvider = new SubComponentItemProvider(this);
- }
-
- return subComponentItemProvider;
- }
-
- /**
- * This returns the root adapter factory that contains this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ComposeableAdapterFactory getRootAdapterFactory() {
- return parentAdapterFactory == null ? this :
parentAdapterFactory.getRootAdapterFactory();
- }
-
- /**
- * This sets the composed adapter factory that contains this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
- this.parentAdapterFactory = parentAdapterFactory;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object type) {
- return supportedTypes.contains(type) || super.isFactoryForType(type);
- }
-
- /**
- * This implementation substitutes the factory itself as the key for the adapter.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter adapt(Notifier notifier, Object type) {
- return super.adapt(notifier, this);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object adapt(Object object, Object type) {
- if (isFactoryForType(type)) {
- Object adapter = super.adapt(object, type);
- if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) {
- return adapter;
- }
- }
-
- return null;
- }
-
- /**
- * This adds a listener.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void addListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.addListener(notifyChangedListener);
- }
-
- /**
- * This removes a listener.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void removeListener(INotifyChangedListener notifyChangedListener) {
- changeNotifier.removeListener(notifyChangedListener);
- }
-
- /**
- * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void fireNotifyChanged(Notification notification) {
- changeNotifier.fireNotifyChanged(notification);
-
- if (parentAdapterFactory != null) {
- parentAdapterFactory.fireNotifyChanged(notification);
- }
- }
-
- /**
- * This disposes all of the item providers created by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void dispose() {
- if (componentItemProvider != null) componentItemProvider.dispose();
- if (delimitersItemProvider != null) delimitersItemProvider.dispose();
- if (descriptionItemProvider != null) descriptionItemProvider.dispose();
- if (documentRootItemProvider != null) documentRootItemProvider.dispose();
- if (ediMapItemProvider != null) ediMapItemProvider.dispose();
- if (fieldItemProvider != null) fieldItemProvider.dispose();
- if (mappingNodeItemProvider != null) mappingNodeItemProvider.dispose();
- if (segmentItemProvider != null) segmentItemProvider.dispose();
- if (segmentsItemProvider != null) segmentsItemProvider.dispose();
- if (subComponentItemProvider != null) subComponentItemProvider.dispose();
- }
-
-}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/EdiMapItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/EdiMapItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/EdiMapItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -22,9 +22,9 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ViewerNotification;
import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.model.medi.EdiFactory;
+import org.jboss.tools.smooks.model.medi.MEdiFactory;
import org.jboss.tools.smooks.model.medi.EdiMap;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
@@ -78,9 +78,9 @@
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
- childrenFeatures.add(EdiPackage.Literals.EDI_MAP__DESCRIPTION);
- childrenFeatures.add(EdiPackage.Literals.EDI_MAP__DELIMITERS);
- childrenFeatures.add(EdiPackage.Literals.EDI_MAP__SEGMENTS);
+ childrenFeatures.add(MEdiPackage.Literals.EDI_MAP__DESCRIPTION);
+ childrenFeatures.add(MEdiPackage.Literals.EDI_MAP__DELIMITERS);
+ childrenFeatures.add(MEdiPackage.Literals.EDI_MAP__SEGMENTS);
}
return childrenFeatures;
}
@@ -132,9 +132,9 @@
updateChildren(notification);
switch (notification.getFeatureID(EdiMap.class)) {
- case EdiPackage.EDI_MAP__DESCRIPTION:
- case EdiPackage.EDI_MAP__DELIMITERS:
- case EdiPackage.EDI_MAP__SEGMENTS:
+ case MEdiPackage.EDI_MAP__DESCRIPTION:
+ case MEdiPackage.EDI_MAP__DELIMITERS:
+ case MEdiPackage.EDI_MAP__SEGMENTS:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
return;
}
@@ -154,18 +154,18 @@
newChildDescriptors.add
(createChildParameter
- (EdiPackage.Literals.EDI_MAP__DESCRIPTION,
- EdiFactory.eINSTANCE.createDescription()));
+ (MEdiPackage.Literals.EDI_MAP__DESCRIPTION,
+ MEdiFactory.eINSTANCE.createDescription()));
newChildDescriptors.add
(createChildParameter
- (EdiPackage.Literals.EDI_MAP__DELIMITERS,
- EdiFactory.eINSTANCE.createDelimiters()));
+ (MEdiPackage.Literals.EDI_MAP__DELIMITERS,
+ MEdiFactory.eINSTANCE.createDelimiters()));
newChildDescriptors.add
(createChildParameter
- (EdiPackage.Literals.EDI_MAP__SEGMENTS,
- EdiFactory.eINSTANCE.createSegments()));
+ (MEdiPackage.Literals.EDI_MAP__SEGMENTS,
+ MEdiFactory.eINSTANCE.createSegments()));
}
/**
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/FieldItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/FieldItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/FieldItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -22,8 +22,8 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.model.medi.EdiFactory;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiFactory;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.Field;
/**
@@ -80,7 +80,7 @@
getResourceLocator(),
getString("_UI_Field_required_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Field_required_feature", "_UI_Field_type"),
- EdiPackage.Literals.FIELD__REQUIRED,
+ MEdiPackage.Literals.FIELD__REQUIRED,
true,
false,
false,
@@ -102,7 +102,7 @@
getResourceLocator(),
getString("_UI_Field_truncatable_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Field_truncatable_feature", "_UI_Field_type"),
- EdiPackage.Literals.FIELD__TRUNCATABLE,
+ MEdiPackage.Literals.FIELD__TRUNCATABLE,
true,
false,
false,
@@ -123,7 +123,7 @@
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
- childrenFeatures.add(EdiPackage.Literals.FIELD__COMPONENT);
+ childrenFeatures.add(MEdiPackage.Literals.FIELD__COMPONENT);
}
return childrenFeatures;
}
@@ -178,11 +178,11 @@
updateChildren(notification);
switch (notification.getFeatureID(Field.class)) {
- case EdiPackage.FIELD__REQUIRED:
- case EdiPackage.FIELD__TRUNCATABLE:
+ case MEdiPackage.FIELD__REQUIRED:
+ case MEdiPackage.FIELD__TRUNCATABLE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
return;
- case EdiPackage.FIELD__COMPONENT:
+ case MEdiPackage.FIELD__COMPONENT:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
return;
}
@@ -202,8 +202,8 @@
newChildDescriptors.add
(createChildParameter
- (EdiPackage.Literals.FIELD__COMPONENT,
- EdiFactory.eINSTANCE.createComponent()));
+ (MEdiPackage.Literals.FIELD__COMPONENT,
+ MEdiFactory.eINSTANCE.createComponent()));
}
}
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/MEdiItemProviderAdapterFactory.java
(from rev 14729,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/EdiItemProviderAdapterFactory.java)
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/MEdiItemProviderAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/MEdiItemProviderAdapterFactory.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,417 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.medi.provider;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.edit.provider.ChangeNotifier;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.IChangeNotifier;
+import org.eclipse.emf.edit.provider.IDisposable;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.INotifyChangedListener;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.jboss.tools.smooks.model.medi.util.MEdiAdapterFactory;
+
+/**
+ * This is the factory that is used to provide the interfaces needed to support Viewers.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to
{@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters also support Eclipse property sheets.
+ * Note that most of the adapters are shared among multiple instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class MEdiItemProviderAdapterFactory extends MEdiAdapterFactory implements
ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+ /**
+ * This keeps track of the root adapter factory that delegates to this adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComposedAdapterFactory parentAdapterFactory;
+
+ /**
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+ /**
+ * This keeps track of all the supported types checked by {@link #isFactoryForType
isFactoryForType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Object> supportedTypes = new ArrayList<Object>();
+
+ /**
+ * This constructs an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MEdiItemProviderAdapterFactory() {
+ supportedTypes.add(IEditingDomainItemProvider.class);
+ supportedTypes.add(IStructuredItemContentProvider.class);
+ supportedTypes.add(ITreeItemContentProvider.class);
+ supportedTypes.add(IItemLabelProvider.class);
+ supportedTypes.add(IItemPropertySource.class);
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link edi.Component} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComponentItemProvider componentItemProvider;
+
+ /**
+ * This creates an adapter for a {@link edi.Component}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createComponentAdapter() {
+ if (componentItemProvider == null) {
+ componentItemProvider = new ComponentItemProvider(this);
+ }
+
+ return componentItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link edi.Delimiters} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DelimitersItemProvider delimitersItemProvider;
+
+ /**
+ * This creates an adapter for a {@link edi.Delimiters}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createDelimitersAdapter() {
+ if (delimitersItemProvider == null) {
+ delimitersItemProvider = new DelimitersItemProvider(this);
+ }
+
+ return delimitersItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link edi.Description} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DescriptionItemProvider descriptionItemProvider;
+
+ /**
+ * This creates an adapter for a {@link edi.Description}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createDescriptionAdapter() {
+ if (descriptionItemProvider == null) {
+ descriptionItemProvider = new DescriptionItemProvider(this);
+ }
+
+ return descriptionItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link edi.DocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootItemProvider documentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link edi.DocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createDocumentRootAdapter() {
+ if (documentRootItemProvider == null) {
+ documentRootItemProvider = new DocumentRootItemProvider(this);
+ }
+
+ return documentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link edi.EdiMap} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EdiMapItemProvider ediMapItemProvider;
+
+ /**
+ * This creates an adapter for a {@link edi.EdiMap}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createEdiMapAdapter() {
+ if (ediMapItemProvider == null) {
+ ediMapItemProvider = new EdiMapItemProvider(this);
+ }
+
+ return ediMapItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link edi.Field} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected FieldItemProvider fieldItemProvider;
+
+ /**
+ * This creates an adapter for a {@link edi.Field}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createFieldAdapter() {
+ if (fieldItemProvider == null) {
+ fieldItemProvider = new FieldItemProvider(this);
+ }
+
+ return fieldItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link edi.MappingNode} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected MappingNodeItemProvider mappingNodeItemProvider;
+
+ /**
+ * This creates an adapter for a {@link edi.MappingNode}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createMappingNodeAdapter() {
+ if (mappingNodeItemProvider == null) {
+ mappingNodeItemProvider = new MappingNodeItemProvider(this);
+ }
+
+ return mappingNodeItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link edi.Segment} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SegmentItemProvider segmentItemProvider;
+
+ /**
+ * This creates an adapter for a {@link edi.Segment}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createSegmentAdapter() {
+ if (segmentItemProvider == null) {
+ segmentItemProvider = new SegmentItemProvider(this);
+ }
+
+ return segmentItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link edi.Segments} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SegmentsItemProvider segmentsItemProvider;
+
+ /**
+ * This creates an adapter for a {@link edi.Segments}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createSegmentsAdapter() {
+ if (segmentsItemProvider == null) {
+ segmentsItemProvider = new SegmentsItemProvider(this);
+ }
+
+ return segmentsItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link edi.SubComponent} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SubComponentItemProvider subComponentItemProvider;
+
+ /**
+ * This creates an adapter for a {@link edi.SubComponent}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createSubComponentAdapter() {
+ if (subComponentItemProvider == null) {
+ subComponentItemProvider = new SubComponentItemProvider(this);
+ }
+
+ return subComponentItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this :
parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (componentItemProvider != null) componentItemProvider.dispose();
+ if (delimitersItemProvider != null) delimitersItemProvider.dispose();
+ if (descriptionItemProvider != null) descriptionItemProvider.dispose();
+ if (documentRootItemProvider != null) documentRootItemProvider.dispose();
+ if (ediMapItemProvider != null) ediMapItemProvider.dispose();
+ if (fieldItemProvider != null) fieldItemProvider.dispose();
+ if (mappingNodeItemProvider != null) mappingNodeItemProvider.dispose();
+ if (segmentItemProvider != null) segmentItemProvider.dispose();
+ if (segmentsItemProvider != null) segmentsItemProvider.dispose();
+ if (subComponentItemProvider != null) subComponentItemProvider.dispose();
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/MEdiItemProviderAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/MappingNodeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/MappingNodeItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/MappingNodeItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -23,7 +23,7 @@
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.MappingNode;
@@ -80,7 +80,7 @@
getResourceLocator(),
getString("_UI_MappingNode_xmltag_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_MappingNode_xmltag_feature", "_UI_MappingNode_type"),
- EdiPackage.Literals.MAPPING_NODE__XMLTAG,
+ MEdiPackage.Literals.MAPPING_NODE__XMLTAG,
true,
false,
false,
@@ -126,7 +126,7 @@
updateChildren(notification);
switch (notification.getFeatureID(MappingNode.class)) {
- case EdiPackage.MAPPING_NODE__XMLTAG:
+ case MEdiPackage.MAPPING_NODE__XMLTAG:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
return;
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SegmentItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SegmentItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SegmentItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -22,8 +22,8 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.model.medi.EdiFactory;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiFactory;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.Segment;
/**
@@ -82,7 +82,7 @@
getResourceLocator(),
getString("_UI_Segment_maxOccurs_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Segment_maxOccurs_feature", "_UI_Segment_type"),
- EdiPackage.Literals.SEGMENT__MAX_OCCURS,
+ MEdiPackage.Literals.SEGMENT__MAX_OCCURS,
true,
false,
false,
@@ -104,7 +104,7 @@
getResourceLocator(),
getString("_UI_Segment_minOccurs_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Segment_minOccurs_feature", "_UI_Segment_type"),
- EdiPackage.Literals.SEGMENT__MIN_OCCURS,
+ MEdiPackage.Literals.SEGMENT__MIN_OCCURS,
true,
false,
false,
@@ -126,7 +126,7 @@
getResourceLocator(),
getString("_UI_Segment_segcode_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Segment_segcode_feature", "_UI_Segment_type"),
- EdiPackage.Literals.SEGMENT__SEGCODE,
+ MEdiPackage.Literals.SEGMENT__SEGCODE,
true,
false,
false,
@@ -148,7 +148,7 @@
getResourceLocator(),
getString("_UI_Segment_truncatable_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_Segment_truncatable_feature", "_UI_Segment_type"),
- EdiPackage.Literals.SEGMENT__TRUNCATABLE,
+ MEdiPackage.Literals.SEGMENT__TRUNCATABLE,
true,
false,
false,
@@ -169,8 +169,8 @@
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
- childrenFeatures.add(EdiPackage.Literals.SEGMENT__FIELD);
- childrenFeatures.add(EdiPackage.Literals.SEGMENT__SEGMENT);
+ childrenFeatures.add(MEdiPackage.Literals.SEGMENT__FIELD);
+ childrenFeatures.add(MEdiPackage.Literals.SEGMENT__SEGMENT);
}
return childrenFeatures;
}
@@ -225,14 +225,14 @@
updateChildren(notification);
switch (notification.getFeatureID(Segment.class)) {
- case EdiPackage.SEGMENT__MAX_OCCURS:
- case EdiPackage.SEGMENT__MIN_OCCURS:
- case EdiPackage.SEGMENT__SEGCODE:
- case EdiPackage.SEGMENT__TRUNCATABLE:
+ case MEdiPackage.SEGMENT__MAX_OCCURS:
+ case MEdiPackage.SEGMENT__MIN_OCCURS:
+ case MEdiPackage.SEGMENT__SEGCODE:
+ case MEdiPackage.SEGMENT__TRUNCATABLE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
return;
- case EdiPackage.SEGMENT__FIELD:
- case EdiPackage.SEGMENT__SEGMENT:
+ case MEdiPackage.SEGMENT__FIELD:
+ case MEdiPackage.SEGMENT__SEGMENT:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
return;
}
@@ -252,13 +252,13 @@
newChildDescriptors.add
(createChildParameter
- (EdiPackage.Literals.SEGMENT__FIELD,
- EdiFactory.eINSTANCE.createField()));
+ (MEdiPackage.Literals.SEGMENT__FIELD,
+ MEdiFactory.eINSTANCE.createField()));
newChildDescriptors.add
(createChildParameter
- (EdiPackage.Literals.SEGMENT__SEGMENT,
- EdiFactory.eINSTANCE.createSegment()));
+ (MEdiPackage.Literals.SEGMENT__SEGMENT,
+ MEdiFactory.eINSTANCE.createSegment()));
}
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SegmentsItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SegmentsItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SegmentsItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -20,8 +20,8 @@
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.model.medi.EdiFactory;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiFactory;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.Segments;
/**
@@ -75,7 +75,7 @@
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
- childrenFeatures.add(EdiPackage.Literals.SEGMENTS__SEGMENT);
+ childrenFeatures.add(MEdiPackage.Literals.SEGMENTS__SEGMENT);
}
return childrenFeatures;
}
@@ -130,7 +130,7 @@
updateChildren(notification);
switch (notification.getFeatureID(Segments.class)) {
- case EdiPackage.SEGMENTS__SEGMENT:
+ case MEdiPackage.SEGMENTS__SEGMENT:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
return;
}
@@ -150,8 +150,8 @@
newChildDescriptors.add
(createChildParameter
- (EdiPackage.Literals.SEGMENTS__SEGMENT,
- EdiFactory.eINSTANCE.createSegment()));
+ (MEdiPackage.Literals.SEGMENTS__SEGMENT,
+ MEdiFactory.eINSTANCE.createSegment()));
}
}
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SubComponentItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SubComponentItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/provider/SubComponentItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -21,7 +21,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
import org.jboss.tools.smooks.model.medi.SubComponent;
/**
@@ -77,7 +77,7 @@
getResourceLocator(),
getString("_UI_SubComponent_required_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_SubComponent_required_feature", "_UI_SubComponent_type"),
- EdiPackage.Literals.SUB_COMPONENT__REQUIRED,
+ MEdiPackage.Literals.SUB_COMPONENT__REQUIRED,
true,
false,
false,
@@ -123,7 +123,7 @@
updateChildren(notification);
switch (notification.getFeatureID(SubComponent.class)) {
- case EdiPackage.SUB_COMPONENT__REQUIRED:
+ case MEdiPackage.SUB_COMPONENT__REQUIRED:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
return;
}
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiAdapterFactory.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiAdapterFactory.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,326 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.model.medi.util;
-
-
-
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.ecore.xml.type.AnyType;
-import org.jboss.tools.smooks.model.common.AbstractAnyType;
-import org.jboss.tools.smooks.model.medi.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the
model.
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.EdiPackage
- * @generated
- */
-public class EdiAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static EdiPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdiAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = EdiPackage.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the
model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject)object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EdiSwitch<Adapter> modelSwitch =
- new EdiSwitch<Adapter>() {
- @Override
- public Adapter caseComponent(Component object) {
- return createComponentAdapter();
- }
- @Override
- public Adapter caseDelimiters(Delimiters object) {
- return createDelimitersAdapter();
- }
- @Override
- public Adapter caseDescription(Description object) {
- return createDescriptionAdapter();
- }
- @Override
- public Adapter caseDocumentRoot(DocumentRoot object) {
- return createDocumentRootAdapter();
- }
- @Override
- public Adapter caseEdiMap(EdiMap object) {
- return createEdiMapAdapter();
- }
- @Override
- public Adapter caseField(Field object) {
- return createFieldAdapter();
- }
- @Override
- public Adapter caseMappingNode(MappingNode object) {
- return createMappingNodeAdapter();
- }
- @Override
- public Adapter caseSegment(Segment object) {
- return createSegmentAdapter();
- }
- @Override
- public Adapter caseSegments(Segments object) {
- return createSegmentsAdapter();
- }
- @Override
- public Adapter caseSubComponent(SubComponent object) {
- return createSubComponentAdapter();
- }
- @Override
- public Adapter caseAnyType(AnyType object) {
- return createAnyTypeAdapter();
- }
- @Override
- public Adapter caseAbstractAnyType(AbstractAnyType object) {
- return createAbstractAnyTypeAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject)target);
- }
-
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Component <em>Component</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.medi.Component
- * @generated
- */
- public Adapter createComponentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Delimiters <em>Delimiters</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.medi.Delimiters
- * @generated
- */
- public Adapter createDelimitersAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Description <em>Description</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.medi.Description
- * @generated
- */
- public Adapter createDescriptionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot <em>Document Root</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.medi.DocumentRoot
- * @generated
- */
- public Adapter createDocumentRootAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.EdiMap <em>Map</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.medi.EdiMap
- * @generated
- */
- public Adapter createEdiMapAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Field <em>Field</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.medi.Field
- * @generated
- */
- public Adapter createFieldAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.MappingNode <em>Mapping Node</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.medi.MappingNode
- * @generated
- */
- public Adapter createMappingNodeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Segment <em>Segment</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.medi.Segment
- * @generated
- */
- public Adapter createSegmentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Segments <em>Segments</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.medi.Segments
- * @generated
- */
- public Adapter createSegmentsAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.SubComponent <em>Sub Component</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.medi.SubComponent
- * @generated
- */
- public Adapter createSubComponentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.eclipse.emf.ecore.xml.type.AnyType <em>Any Type</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.ecore.xml.type.AnyType
- * @generated
- */
- public Adapter createAnyTypeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.common.AbstractAnyType <em>Abstract Any
Type</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.jboss.tools.smooks.model.common.AbstractAnyType
- * @generated
- */
- public Adapter createAbstractAnyTypeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} //EdiAdapterFactory
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiResourceFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiResourceFactoryImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiResourceFactoryImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,56 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.model.medi.util;
-
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.resource.Resource;
-
-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
-
-import org.eclipse.emf.ecore.xmi.XMLResource;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource Factory</b> associated with the package.
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.util.EdiResourceImpl
- * @generated
- */
-public class EdiResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdiResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new EdiResourceImpl(uri);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA,
Boolean.TRUE);
- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA,
Boolean.TRUE);
-
- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE,
Boolean.TRUE);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE,
Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER,
Boolean.TRUE);
- return result;
- }
-
-} //EdiResourceFactoryImpl
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiResourceImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiResourceImpl.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiResourceImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,32 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.model.medi.util;
-
-import org.eclipse.emf.common.util.URI;
-
-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource </b> associated with the package.
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.util.EdiResourceFactoryImpl
- * @generated
- */
-public class EdiResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param uri the URI of the new resource.
- * @generated
- */
- public EdiResourceImpl(URI uri) {
- super(uri);
- }
-
-} //EdiResourceImpl
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiSwitch.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiSwitch.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiSwitch.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,376 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.model.medi.util;
-
-
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.emf.ecore.xml.type.AnyType;
-import org.jboss.tools.smooks.model.common.AbstractAnyType;
-import org.jboss.tools.smooks.model.medi.*;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
- * @see org.jboss.tools.smooks.model.medi.EdiPackage
- * @generated
- */
-public class EdiSwitch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static EdiPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdiSwitch() {
- if (modelPackage == null) {
- modelPackage = EdiPackage.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code>
call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code>
call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- }
- else {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch(eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code>
call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case EdiPackage.COMPONENT: {
- Component component = (Component)theEObject;
- T result = caseComponent(component);
- if (result == null) result = caseMappingNode(component);
- if (result == null) result = caseAbstractAnyType(component);
- if (result == null) result = caseAnyType(component);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case EdiPackage.DELIMITERS: {
- Delimiters delimiters = (Delimiters)theEObject;
- T result = caseDelimiters(delimiters);
- if (result == null) result = caseAbstractAnyType(delimiters);
- if (result == null) result = caseAnyType(delimiters);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case EdiPackage.DESCRIPTION: {
- Description description = (Description)theEObject;
- T result = caseDescription(description);
- if (result == null) result = caseAbstractAnyType(description);
- if (result == null) result = caseAnyType(description);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case EdiPackage.DOCUMENT_ROOT: {
- DocumentRoot documentRoot = (DocumentRoot)theEObject;
- T result = caseDocumentRoot(documentRoot);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case EdiPackage.EDI_MAP: {
- EdiMap ediMap = (EdiMap)theEObject;
- T result = caseEdiMap(ediMap);
- if (result == null) result = caseAbstractAnyType(ediMap);
- if (result == null) result = caseAnyType(ediMap);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case EdiPackage.FIELD: {
- Field field = (Field)theEObject;
- T result = caseField(field);
- if (result == null) result = caseMappingNode(field);
- if (result == null) result = caseAbstractAnyType(field);
- if (result == null) result = caseAnyType(field);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case EdiPackage.MAPPING_NODE: {
- MappingNode mappingNode = (MappingNode)theEObject;
- T result = caseMappingNode(mappingNode);
- if (result == null) result = caseAbstractAnyType(mappingNode);
- if (result == null) result = caseAnyType(mappingNode);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case EdiPackage.SEGMENT: {
- Segment segment = (Segment)theEObject;
- T result = caseSegment(segment);
- if (result == null) result = caseMappingNode(segment);
- if (result == null) result = caseAbstractAnyType(segment);
- if (result == null) result = caseAnyType(segment);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case EdiPackage.SEGMENTS: {
- Segments segments = (Segments)theEObject;
- T result = caseSegments(segments);
- if (result == null) result = caseMappingNode(segments);
- if (result == null) result = caseAbstractAnyType(segments);
- if (result == null) result = caseAnyType(segments);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case EdiPackage.SUB_COMPONENT: {
- SubComponent subComponent = (SubComponent)theEObject;
- T result = caseSubComponent(subComponent);
- if (result == null) result = caseMappingNode(subComponent);
- if (result == null) result = caseAbstractAnyType(subComponent);
- if (result == null) result = caseAnyType(subComponent);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>Component</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>Component</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseComponent(Component object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>Delimiters</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>Delimiters</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDelimiters(Delimiters object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>Description</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>Description</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDescription(Description object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>Document Root</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>Document Root</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDocumentRoot(DocumentRoot object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>Map</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>Map</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEdiMap(EdiMap object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>Field</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>Field</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseField(Field object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>Mapping Node</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>Mapping Node</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMappingNode(MappingNode object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>Segment</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>Segment</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSegment(Segment object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>Segments</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>Segments</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSegments(Segments object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Sub
Component</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Sub
Component</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseSubComponent(SubComponent object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Any
Type</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Any
Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAnyType(AnyType object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAbstractAnyType(AbstractAnyType object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of
'<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case
anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of
'<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} //EdiSwitch
Deleted:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiXMLProcessor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiXMLProcessor.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiXMLProcessor.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -1,54 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.model.medi.util;
-
-
-import java.util.Map;
-
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.resource.Resource;
-
-import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
-import org.jboss.tools.smooks.model.medi.EdiPackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class EdiXMLProcessor extends XMLProcessor {
-
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EdiXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- EdiPackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the
EdiResourceFactoryImpl factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected Map<String, Resource.Factory> getRegistrations() {
- if (registrations == null) {
- super.getRegistrations();
- registrations.put(XML_EXTENSION, new EdiResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new EdiResourceFactoryImpl());
- }
- return registrations;
- }
-
-} //EdiXMLProcessor
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiAdapterFactory.java
(from rev 14729,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiAdapterFactory.java)
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiAdapterFactory.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,326 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.medi.util;
+
+
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.ecore.xml.type.AnyType;
+import org.jboss.tools.smooks.model.common.AbstractAnyType;
+import org.jboss.tools.smooks.model.medi.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the
model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage
+ * @generated
+ */
+public class MEdiAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static MEdiPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MEdiAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = MEdiPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the
model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected MEdiSwitch<Adapter> modelSwitch =
+ new MEdiSwitch<Adapter>() {
+ @Override
+ public Adapter caseComponent(Component object) {
+ return createComponentAdapter();
+ }
+ @Override
+ public Adapter caseDelimiters(Delimiters object) {
+ return createDelimitersAdapter();
+ }
+ @Override
+ public Adapter caseDescription(Description object) {
+ return createDescriptionAdapter();
+ }
+ @Override
+ public Adapter caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseEdiMap(EdiMap object) {
+ return createEdiMapAdapter();
+ }
+ @Override
+ public Adapter caseField(Field object) {
+ return createFieldAdapter();
+ }
+ @Override
+ public Adapter caseMappingNode(MappingNode object) {
+ return createMappingNodeAdapter();
+ }
+ @Override
+ public Adapter caseSegment(Segment object) {
+ return createSegmentAdapter();
+ }
+ @Override
+ public Adapter caseSegments(Segments object) {
+ return createSegmentsAdapter();
+ }
+ @Override
+ public Adapter caseSubComponent(SubComponent object) {
+ return createSubComponentAdapter();
+ }
+ @Override
+ public Adapter caseAnyType(AnyType object) {
+ return createAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractAnyType(AbstractAnyType object) {
+ return createAbstractAnyTypeAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Component <em>Component</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.medi.Component
+ * @generated
+ */
+ public Adapter createComponentAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Delimiters <em>Delimiters</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.medi.Delimiters
+ * @generated
+ */
+ public Adapter createDelimitersAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Description <em>Description</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.medi.Description
+ * @generated
+ */
+ public Adapter createDescriptionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.medi.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.EdiMap <em>Map</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.medi.EdiMap
+ * @generated
+ */
+ public Adapter createEdiMapAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Field <em>Field</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.medi.Field
+ * @generated
+ */
+ public Adapter createFieldAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.MappingNode <em>Mapping Node</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.medi.MappingNode
+ * @generated
+ */
+ public Adapter createMappingNodeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Segment <em>Segment</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.medi.Segment
+ * @generated
+ */
+ public Adapter createSegmentAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.Segments <em>Segments</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.medi.Segments
+ * @generated
+ */
+ public Adapter createSegmentsAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.medi.SubComponent <em>Sub Component</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.medi.SubComponent
+ * @generated
+ */
+ public Adapter createSubComponentAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.eclipse.emf.ecore.xml.type.AnyType <em>Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.emf.ecore.xml.type.AnyType
+ * @generated
+ */
+ public Adapter createAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.common.AbstractAnyType <em>Abstract Any
Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.common.AbstractAnyType
+ * @generated
+ */
+ public Adapter createAbstractAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //EdiAdapterFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiResourceFactoryImpl.java
(from rev 14729,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiResourceFactoryImpl.java)
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiResourceFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiResourceFactoryImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.medi.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+import org.eclipse.emf.ecore.xmi.XMLResource;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.util.MEdiResourceImpl
+ * @generated
+ */
+public class MEdiResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MEdiResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new MEdiResourceImpl(uri);
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA,
Boolean.TRUE);
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA,
Boolean.TRUE);
+
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
+
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE,
Boolean.TRUE);
+ result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE,
Boolean.TRUE);
+
+ result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER,
Boolean.TRUE);
+ return result;
+ }
+
+} //EdiResourceFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiResourceImpl.java
(from rev 14729,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiResourceImpl.java)
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiResourceImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiResourceImpl.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.medi.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.util.MEdiResourceFactoryImpl
+ * @generated
+ */
+public class MEdiResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public MEdiResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //EdiResourceImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiSwitch.java
(from rev 14729,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiSwitch.java)
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiSwitch.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiSwitch.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,376 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.medi.util;
+
+
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.ecore.xml.type.AnyType;
+import org.jboss.tools.smooks.model.common.AbstractAnyType;
+import org.jboss.tools.smooks.model.medi.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.medi.MEdiPackage
+ * @generated
+ */
+public class MEdiSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static MEdiPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MEdiSwitch() {
+ if (modelPackage == null) {
+ modelPackage = MEdiPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code>
call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject) {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code>
call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject) {
+ if (theEClass.eContainer() == modelPackage) {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return
+ eSuperTypes.isEmpty() ?
+ defaultCase(theEObject) :
+ doSwitch(eSuperTypes.get(0), theEObject);
+ }
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns
a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code>
call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case MEdiPackage.COMPONENT: {
+ Component component = (Component)theEObject;
+ T result = caseComponent(component);
+ if (result == null) result = caseMappingNode(component);
+ if (result == null) result = caseAbstractAnyType(component);
+ if (result == null) result = caseAnyType(component);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MEdiPackage.DELIMITERS: {
+ Delimiters delimiters = (Delimiters)theEObject;
+ T result = caseDelimiters(delimiters);
+ if (result == null) result = caseAbstractAnyType(delimiters);
+ if (result == null) result = caseAnyType(delimiters);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MEdiPackage.DESCRIPTION: {
+ Description description = (Description)theEObject;
+ T result = caseDescription(description);
+ if (result == null) result = caseAbstractAnyType(description);
+ if (result == null) result = caseAnyType(description);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MEdiPackage.DOCUMENT_ROOT: {
+ DocumentRoot documentRoot = (DocumentRoot)theEObject;
+ T result = caseDocumentRoot(documentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MEdiPackage.EDI_MAP: {
+ EdiMap ediMap = (EdiMap)theEObject;
+ T result = caseEdiMap(ediMap);
+ if (result == null) result = caseAbstractAnyType(ediMap);
+ if (result == null) result = caseAnyType(ediMap);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MEdiPackage.FIELD: {
+ Field field = (Field)theEObject;
+ T result = caseField(field);
+ if (result == null) result = caseMappingNode(field);
+ if (result == null) result = caseAbstractAnyType(field);
+ if (result == null) result = caseAnyType(field);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MEdiPackage.MAPPING_NODE: {
+ MappingNode mappingNode = (MappingNode)theEObject;
+ T result = caseMappingNode(mappingNode);
+ if (result == null) result = caseAbstractAnyType(mappingNode);
+ if (result == null) result = caseAnyType(mappingNode);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MEdiPackage.SEGMENT: {
+ Segment segment = (Segment)theEObject;
+ T result = caseSegment(segment);
+ if (result == null) result = caseMappingNode(segment);
+ if (result == null) result = caseAbstractAnyType(segment);
+ if (result == null) result = caseAnyType(segment);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MEdiPackage.SEGMENTS: {
+ Segments segments = (Segments)theEObject;
+ T result = caseSegments(segments);
+ if (result == null) result = caseMappingNode(segments);
+ if (result == null) result = caseAbstractAnyType(segments);
+ if (result == null) result = caseAnyType(segments);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case MEdiPackage.SUB_COMPONENT: {
+ SubComponent subComponent = (SubComponent)theEObject;
+ T result = caseSubComponent(subComponent);
+ if (result == null) result = caseMappingNode(subComponent);
+ if (result == null) result = caseAbstractAnyType(subComponent);
+ if (result == null) result = caseAnyType(subComponent);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Component</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Component</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseComponent(Component object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Delimiters</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Delimiters</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDelimiters(Delimiters object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Description</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Description</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDescription(Description object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDocumentRoot(DocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Map</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Map</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseEdiMap(EdiMap object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Field</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Field</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseField(Field object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Mapping Node</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Mapping Node</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMappingNode(MappingNode object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Segment</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Segment</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSegment(Segment object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Segments</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Segments</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSegments(Segments object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Sub
Component</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Sub
Component</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSubComponent(SubComponent object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAnyType(AnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractAnyType(AbstractAnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case
anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //EdiSwitch
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiXMLProcessor.java
(from rev 14729,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/EdiXMLProcessor.java)
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiXMLProcessor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiXMLProcessor.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.medi.util;
+
+
+import java.util.Map;
+
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class MEdiXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MEdiXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ MEdiPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the
EdiResourceFactoryImpl factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected Map<String, Resource.Factory> getRegistrations() {
+ if (registrations == null) {
+ super.getRegistrations();
+ registrations.put(XML_EXTENSION, new MEdiResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new MEdiResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //EdiXMLProcessor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/medi/util/MEdiXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -28,6 +28,8 @@
import org.jboss.tools.smooks.model.csv.CsvPackage;
import org.jboss.tools.smooks.model.dbrouting.DbroutingFactory;
import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.edi.EdiFactory;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
import org.jboss.tools.smooks.model.freemarker.FreemarkerFactory;
@@ -53,9 +55,8 @@
*
* @generated
*/
-public class SmooksResourceListTypeItemProvider extends AbstractAnyTypeItemProvider
implements
- IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider,
- IItemLabelProvider, IItemPropertySource {
+public class SmooksResourceListTypeItemProvider extends AbstractAnyTypeItemProvider
implements IEditingDomainItemProvider,
+ IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider,
IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier. <!--
* begin-user-doc --> <!-- end-user-doc -->
@@ -92,14 +93,11 @@
* @generated
*/
protected void addDefaultConditionRefPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultConditionRef_feature"),
getString(
- "_UI_PropertyDescriptor_description",
- "_UI_SmooksResourceListType_defaultConditionRef_feature",
- "_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_CONDITION_REF, true, false,
false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
getString("_UI_SmooksResourceListType_defaultConditionRef_feature"), getString(
+ "_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultConditionRef_feature",
+ "_UI_SmooksResourceListType_type"),
SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_CONDITION_REF, true, false,
+ false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
@@ -109,13 +107,10 @@
* @generated
*/
protected void addDefaultSelectorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultSelector_feature"),
getString(
- "_UI_PropertyDescriptor_description",
- "_UI_SmooksResourceListType_defaultSelector_feature",
- "_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR, true, false,
false,
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
getString("_UI_SmooksResourceListType_defaultSelector_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultSelector_feature",
+ "_UI_SmooksResourceListType_type"),
SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
@@ -126,14 +121,11 @@
* @generated
*/
protected void addDefaultSelectorNamespacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultSelectorNamespace_feature"),
getString(
- "_UI_PropertyDescriptor_description",
- "_UI_SmooksResourceListType_defaultSelectorNamespace_feature",
- "_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR_NAMESPACE, true,
false,
- false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
getString("_UI_SmooksResourceListType_defaultSelectorNamespace_feature"),
getString(
+ "_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultSelectorNamespace_feature",
+ "_UI_SmooksResourceListType_type"),
SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR_NAMESPACE, true,
+ false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
@@ -143,14 +135,11 @@
* @generated
*/
protected void addDefaultTargetProfilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory)
- .getRootAdapterFactory(), getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultTargetProfile_feature"),
getString(
- "_UI_PropertyDescriptor_description",
- "_UI_SmooksResourceListType_defaultTargetProfile_feature",
- "_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_TARGET_PROFILE, true,
false, false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
getString("_UI_SmooksResourceListType_defaultTargetProfile_feature"),
getString(
+ "_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultTargetProfile_feature",
+ "_UI_SmooksResourceListType_type"),
SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_TARGET_PROFILE, true, false,
+ false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
@@ -171,8 +160,7 @@
childrenFeatures.add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__CONDITIONS);
childrenFeatures.add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PROFILES);
childrenFeatures.add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP);
- childrenFeatures
- .add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP);
+ childrenFeatures.add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP);
}
return childrenFeatures;
}
@@ -211,8 +199,8 @@
@Override
public String getText(Object object) {
String label = ((SmooksResourceListType) object).getDefaultSelectorNamespace();
- return label == null || label.length() == 0 ?
getString("_UI_SmooksResourceListType_type")
- : getString("_UI_SmooksResourceListType_type") + " " + label;
+ return label == null || label.length() == 0 ?
getString("_UI_SmooksResourceListType_type") :
getString("_UI_SmooksResourceListType_type")
+ + " " + label;
}
/**
@@ -256,90 +244,66 @@
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PARAMS, SmooksFactory.eINSTANCE
- .createParamsType()));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PARAMS,
SmooksFactory.eINSTANCE
+ .createParamsType()));
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__CONDITIONS,
SmooksFactory.eINSTANCE
- .createConditionsType()));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__CONDITIONS,
SmooksFactory.eINSTANCE
+ .createConditionsType()));
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PROFILES, SmooksFactory.eINSTANCE
- .createProfilesType()));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PROFILES,
SmooksFactory.eINSTANCE
+ .createProfilesType()));
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
- .createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__READER, SmooksFactory.eINSTANCE
- .createReaderType())));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
+ .createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__READER,
SmooksFactory.eINSTANCE.createReaderType())));
+
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT,
SmooksFactory.eINSTANCE.createImportType())));
+
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG,
SmooksFactory.eINSTANCE.createResourceConfigType())));
+ /***********************************************/
// for CSV
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
- .createEntry(CsvPackage.Literals.DOCUMENT_ROOT__READER, CsvFactory.eINSTANCE
- .createReader())));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
+ .createEntry(CsvPackage.Literals.DOCUMENT_ROOT__READER,
CsvFactory.eINSTANCE.createReader())));
+ // for EDI
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
+ .createEntry(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER,
EdiFactory.eINSTANCE.createEDIReader())));
// for JSON
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
- .createEntry(JsonPackage.Literals.DOCUMENT_ROOT__READER, JsonFactory.eINSTANCE
- .createReader())));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
+ .createEntry(JsonPackage.Literals.DOCUMENT_ROOT__READER,
JsonFactory.eINSTANCE.createReader())));
// for javabean
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry(JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS,
- JavabeanFactory.eINSTANCE.createBindingsType())));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS,
JavabeanFactory.eINSTANCE.createBindingsType())));
// for xsl
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry(XslPackage.Literals.DOCUMENT_ROOT__XSL,
XslFactory.eINSTANCE
- .createXsl())));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(XslPackage.Literals.DOCUMENT_ROOT__XSL,
XslFactory.eINSTANCE.createXsl())));
// for freemarker
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry(FreemarkerPackage.Literals.DOCUMENT_ROOT__FREEMARKER,
- FreemarkerFactory.eINSTANCE.createFreemarker())));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(FreemarkerPackage.Literals.DOCUMENT_ROOT__FREEMARKER,
FreemarkerFactory.eINSTANCE.createFreemarker())));
// for DB routing
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry(DbroutingPackage.Literals.DOCUMENT_ROOT__EXECUTOR,
- DbroutingFactory.eINSTANCE.createExecutor())));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(DbroutingPackage.Literals.DOCUMENT_ROOT__EXECUTOR,
DbroutingFactory.eINSTANCE.createExecutor())));
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry(DbroutingPackage.Literals.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR,
- DbroutingFactory.eINSTANCE.createResultSetRowSelector())));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(DbroutingPackage.Literals.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR,
DbroutingFactory.eINSTANCE
+ .createResultSetRowSelector())));
// for IO routing
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry(IoroutingPackage.Literals.DOCUMENT_ROOT__ROUTER,
- IoroutingFactory.eINSTANCE.createRouter())));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(IoroutingPackage.Literals.DOCUMENT_ROOT__ROUTER,
IoroutingFactory.eINSTANCE.createRouter())));
// for JMS routing
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry(JmsroutingPackage.Literals.DOCUMENT_ROOT__ROUTER,
- JmsroutingFactory.eINSTANCE.createRouter())));
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(JmsroutingPackage.Literals.DOCUMENT_ROOT__ROUTER,
JmsroutingFactory.eINSTANCE.createRouter())));
// for File routing
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
- FileRoutingFactory.eINSTANCE.createOutputStream())));
-
- /***********************************************/
+ newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
+ .createEntry(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
FileRoutingFactory.eINSTANCE.createOutputStream())));
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT,
- SmooksFactory.eINSTANCE.createImportType())));
-
- newChildDescriptors.add(createChildParameter(
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG,
- SmooksFactory.eINSTANCE.createResourceConfigType())));
+ /***********************************************/
}
/**
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -13,10 +13,10 @@
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
-import org.jboss.tools.smooks.model.edi.EdiPackage;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
import org.jboss.tools.smooks.model.groovy.GroovyPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
public class Codegenerator {
String basePath =
"/home/Dart/Works/eclipse_wtp.3.0.4/eclipse/workspace/jbosstools/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/temp/";
@@ -46,7 +46,7 @@
public static void main(String[] args) {
Codegenerator g = new Codegenerator();
try {
- g.generateCodes(EdiPackage.eINSTANCE);
+ g.generateCodes(MEdiPackage.eINSTANCE);
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -41,15 +41,6 @@
import org.jboss.tools.smooks.configuration.editors.xsl.OutputToUICreator;
import org.jboss.tools.smooks.configuration.editors.xsl.TemplateUICreator;
import org.jboss.tools.smooks.configuration.editors.xsl.XslUICreator;
-import org.jboss.tools.smooks.model.edi.impl.ComponentImpl;
-import org.jboss.tools.smooks.model.edi.impl.DelimitersImpl;
-import org.jboss.tools.smooks.model.edi.impl.DescriptionImpl;
-import org.jboss.tools.smooks.model.edi.impl.EdiMapImpl;
-import org.jboss.tools.smooks.model.edi.impl.FieldImpl;
-import org.jboss.tools.smooks.model.edi.impl.MappingNodeImpl;
-import org.jboss.tools.smooks.model.edi.impl.SegmentImpl;
-import org.jboss.tools.smooks.model.edi.impl.SegmentsImpl;
-import org.jboss.tools.smooks.model.edi.impl.SubComponentImpl;
import org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl;
import org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl;
import org.jboss.tools.smooks.model.freemarker.impl.FreemarkerImpl;
@@ -60,6 +51,15 @@
import org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl;
import org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl;
import org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl;
+import org.jboss.tools.smooks.model.medi.impl.ComponentImpl;
+import org.jboss.tools.smooks.model.medi.impl.DelimitersImpl;
+import org.jboss.tools.smooks.model.medi.impl.DescriptionImpl;
+import org.jboss.tools.smooks.model.medi.impl.EdiMapImpl;
+import org.jboss.tools.smooks.model.medi.impl.FieldImpl;
+import org.jboss.tools.smooks.model.medi.impl.MappingNodeImpl;
+import org.jboss.tools.smooks.model.medi.impl.SegmentImpl;
+import org.jboss.tools.smooks.model.medi.impl.SegmentsImpl;
+import org.jboss.tools.smooks.model.medi.impl.SubComponentImpl;
import org.jboss.tools.smooks.model.smooks.impl.ConditionTypeImpl;
import org.jboss.tools.smooks.model.smooks.impl.ImportTypeImpl;
import org.jboss.tools.smooks.model.smooks.impl.ParamTypeImpl;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigurationFormPage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigurationFormPage.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksConfigurationFormPage.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -18,6 +18,7 @@
import java.util.List;
import java.util.Properties;
+import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
@@ -46,6 +47,7 @@
import org.jboss.tools.smooks.model.graphics.ext.ParamType;
import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtFactory;
import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
+import org.jboss.tools.smooks.model.smooks.DocumentRoot;
import org.jboss.tools.smooks10.model.smooks.util.SmooksModelUtils;
/**
@@ -69,7 +71,26 @@
final ScrolledForm form = managedForm.getForm();
FormToolkit toolkit = managedForm.getToolkit();
toolkit.decorateFormHeading(form.getForm());
- form.setText(getTitle());
+ String title = getTitle();
+ EObject smooksModel = ((SmooksMultiFormEditor) getEditor()).getSmooksModel();
+ if (smooksModel != null) {
+ EObject parent = smooksModel;
+ while(parent != null){
+ EObject old = parent;
+ parent = parent.eContainer();
+ if(parent == null){
+ parent = old;
+ break;
+ }
+ }
+ if (parent instanceof DocumentRoot) {
+ title = "Smooks 1.1 - " + title;
+ }
+ if (parent instanceof org.jboss.tools.smooks10.model.smooks.DocumentRoot) {
+ title = "Smooks 1.0 - " + title;
+ }
+ }
+ form.setText(title);
// create master details UI
createMasterDetailBlock(managedForm);
GridLayout gridLayout = new GridLayout();
@@ -82,8 +103,8 @@
}
protected void createMasterDetailBlock(IManagedForm managedForm) {
- masterDetailBlock = new SmooksMasterDetailBlock(getEditor(),
- (AdapterFactoryEditingDomain) ((SmooksMultiFormEditor)
getEditor()).getEditingDomain());
+ masterDetailBlock = new SmooksMasterDetailBlock(getEditor(),
(AdapterFactoryEditingDomain) ((SmooksMultiFormEditor) getEditor())
+ .getEditingDomain());
masterDetailBlock.createContent(managedForm);
}
@@ -191,8 +212,7 @@
wizard.setInput(getEditorInput());
wizard.setSite(getEditorSite());
wizard.setForcePreviousAndNextButtons(true);
- StructuredDataSelectionWizardDailog dialog = new
StructuredDataSelectionWizardDailog(getEditorSite()
- .getShell(), wizard);
+ StructuredDataSelectionWizardDailog dialog = new
StructuredDataSelectionWizardDailog(getEditorSite().getShell(), wizard);
if (dialog.open() == WizardDialog.OK) {
IStructuredDataSelectionWizard wizard1 = dialog.getCurrentCreationWizard();
String type = wizard1.getInputDataTypeID();
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -73,6 +73,7 @@
import
org.jboss.tools.smooks.model.javabean.provider.JavabeanItemProviderAdapterFactory;
import
org.jboss.tools.smooks.model.jmsrouting.provider.JmsroutingItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.json.provider.JsonItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.medi.provider.MEdiItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.smooks.provider.SmooksItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.xsl.provider.XslItemProviderAdapterFactory;
import org.jboss.tools.smooks10.model.smooks.util.SmooksResourceFactoryImpl;
@@ -141,8 +142,7 @@
}
int newEndIndex = newContent.length() - 1;
int oldEndIndex = oldContent.length() - 1;
- while (newEndIndex >= startIndex && oldEndIndex >= startIndex
- && newContent.charAt(newEndIndex) == oldContent.charAt(oldEndIndex)) {
+ while (newEndIndex >= startIndex && oldEndIndex >= startIndex &&
newContent.charAt(newEndIndex) == oldContent.charAt(oldEndIndex)) {
--newEndIndex;
--oldEndIndex;
}
@@ -179,6 +179,7 @@
adapterFactory.addAdapterFactory(new JavabeanItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new CommonItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new SmooksItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new MEdiItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new EdiItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new IoroutingItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new JsonItemProviderAdapterFactory());
@@ -190,8 +191,7 @@
adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());
BasicCommandStack commandStack = new BasicCommandStack();
handleCommandStack(commandStack);
- editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack,
- new HashMap<Resource, Boolean>());
+ editingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack, new
HashMap<Resource, Boolean>());
}
public void setSelectionToViewer(Collection<?> collection) {
@@ -231,8 +231,6 @@
e.printStackTrace();
}
}
-
-
/**
* @return the smooksGraphicsExt
@@ -357,8 +355,8 @@
@Override
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
IFile file = ((IFileEditorInput) input).getFile();
- Resource smooksResource = new SmooksResourceFactoryImpl().createResource(URI
- .createPlatformResourceURI(file.getFullPath().toPortableString(), false));
+ Resource smooksResource = new
SmooksResourceFactoryImpl().createResource(URI.createPlatformResourceURI(file.getFullPath().toPortableString(),
+ false));
try {
smooksResource.load(Collections.emptyMap());
smooksModel = smooksResource.getContents().get(0);
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/ComponentUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/ComponentUICreator.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/ComponentUICreator.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -16,7 +16,7 @@
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
-import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
@@ -35,9 +35,9 @@
public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
SmooksMultiFormEditor formEditor) {
- if (feature == EdiPackage.eINSTANCE.getComponent_Required()) {
+ if (feature == MEdiPackage.eINSTANCE.getComponent_Required()) {
}
- if (feature == EdiPackage.eINSTANCE.getComponent_Truncatable()) {
+ if (feature == MEdiPackage.eINSTANCE.getComponent_Truncatable()) {
}
return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/DelimitersUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/DelimitersUICreator.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/DelimitersUICreator.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -16,7 +16,7 @@
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
-import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
@@ -36,13 +36,13 @@
IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
SmooksMultiFormEditor formEditor) {
- if (feature == EdiPackage.eINSTANCE.getDelimiters_Component()) {
+ if (feature == MEdiPackage.eINSTANCE.getDelimiters_Component()) {
}
- if (feature == EdiPackage.eINSTANCE.getDelimiters_Field()) {
+ if (feature == MEdiPackage.eINSTANCE.getDelimiters_Field()) {
}
- if (feature == EdiPackage.eINSTANCE.getDelimiters_Segment()) {
+ if (feature == MEdiPackage.eINSTANCE.getDelimiters_Segment()) {
}
- if (feature == EdiPackage.eINSTANCE.getDelimiters_SubComponent()) {
+ if (feature == MEdiPackage.eINSTANCE.getDelimiters_SubComponent()) {
}
return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/DescriptionUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/DescriptionUICreator.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/DescriptionUICreator.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -16,7 +16,7 @@
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
-import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
@@ -36,9 +36,9 @@
IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
SmooksMultiFormEditor formEditor) {
- if (feature == EdiPackage.eINSTANCE.getDescription_Name()) {
+ if (feature == MEdiPackage.eINSTANCE.getDescription_Name()) {
}
- if (feature == EdiPackage.eINSTANCE.getDescription_Version()) {
+ if (feature == MEdiPackage.eINSTANCE.getDescription_Version()) {
}
return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/FieldUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/FieldUICreator.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/FieldUICreator.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -16,7 +16,7 @@
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
-import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
@@ -36,9 +36,9 @@
IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
SmooksMultiFormEditor formEditor) {
- if (feature == EdiPackage.eINSTANCE.getField_Required()) {
+ if (feature == MEdiPackage.eINSTANCE.getField_Required()) {
}
- if (feature == EdiPackage.eINSTANCE.getField_Truncatable()) {
+ if (feature == MEdiPackage.eINSTANCE.getField_Truncatable()) {
}
return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/MappingNodeUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/MappingNodeUICreator.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/MappingNodeUICreator.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -16,7 +16,7 @@
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
-import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
@@ -36,7 +36,7 @@
IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
SmooksMultiFormEditor formEditor) {
- if (feature == EdiPackage.eINSTANCE.getMappingNode_Xmltag()) {
+ if (feature == MEdiPackage.eINSTANCE.getMappingNode_Xmltag()) {
}
return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/SegmentUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/SegmentUICreator.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/SegmentUICreator.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -16,7 +16,7 @@
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
-import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
@@ -36,13 +36,13 @@
IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
SmooksMultiFormEditor formEditor) {
- if (feature == EdiPackage.eINSTANCE.getSegment_MaxOccurs()) {
+ if (feature == MEdiPackage.eINSTANCE.getSegment_MaxOccurs()) {
}
- if (feature == EdiPackage.eINSTANCE.getSegment_MinOccurs()) {
+ if (feature == MEdiPackage.eINSTANCE.getSegment_MinOccurs()) {
}
- if (feature == EdiPackage.eINSTANCE.getSegment_Segcode()) {
+ if (feature == MEdiPackage.eINSTANCE.getSegment_Segcode()) {
}
- if (feature == EdiPackage.eINSTANCE.getSegment_Truncatable()) {
+ if (feature == MEdiPackage.eINSTANCE.getSegment_Truncatable()) {
}
return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/SubComponentUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/SubComponentUICreator.java 2009-04-14
09:24:00 UTC (rev 14730)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edi/SubComponentUICreator.java 2009-04-14
09:39:47 UTC (rev 14731)
@@ -16,7 +16,7 @@
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
-import org.jboss.tools.smooks.model.edi.EdiPackage;
+import org.jboss.tools.smooks.model.medi.MEdiPackage;
/**
* @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
@@ -36,7 +36,7 @@
IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature,
SmooksMultiFormEditor formEditor) {
- if (feature == EdiPackage.eINSTANCE.getSubComponent_Required()) {
+ if (feature == MEdiPackage.eINSTANCE.getSubComponent_Required()) {
}
return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,