Author: DartPeng
Date: 2009-04-12 06:57:04 -0400 (Sun, 12 Apr 2009)
New Revision: 14693
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/ext.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-ext.genmodel
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-ext.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/test.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/DocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/InputType.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/ParamType.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtType.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/DocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/InputTypeImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/ParamTypeImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtTypeImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtXMLProcessor.java
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks10/model/smooks/util/SmooksModelUtils.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.xml
Log:
Add new feature for smooks-configuration-editor:
1.Add input data path
2.Show editor to select input data and transform the data to "selector"
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/ext.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/ext.ecore
(rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/ext.ecore 2009-04-12 10:57:04
UTC (rev 14693)
@@ -0,0 +1,135 @@
+<?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="ext"
+
nsURI="http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.xs...
nsPrefix="ext">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks
Graphics
			Editor Extention File
Schema
"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <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="input"
upperBound="-2"
+ eType="#//InputType" volatile="true"
transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="input"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="param"
upperBound="-2"
+ eType="#//ParamType" volatile="true"
transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="param"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference"
name="smooksGraphicsExt" upperBound="-2"
+ eType="#//SmooksGraphicsExtType" volatile="true"
transient="true" derived="true"
+ containment="true" resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="smooks-graphics-ext"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="InputType">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="input_._type"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="param"
upperBound="-1"
+ eType="#//ParamType" containment="true"
resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="param"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="type"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ParamType">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="param_._type"/>
+ <details key="kind" value="simple"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="value"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=":0"/>
+ <details key="kind" value="simple"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="name"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="type"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="type"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass"
name="SmooksGraphicsExtType">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="smooks-graphics-ext_._type"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="input"
upperBound="-1"
+ eType="#//InputType" containment="true"
resolveProxies="false">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="input"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="inputType" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="inputType"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="outputType" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="outputType"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/ext.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-ext.genmodel
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-ext.genmodel
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-ext.genmodel 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,33 @@
+<?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="/org.jboss.tools.smooks.core/src"
+ modelPluginID="org.jboss.tools.smooks.core"
modelName="SmooksGraphicsExtention"
+ importerID="org.eclipse.xsd.ecore.importer" complianceLevel="5.0"
copyrightFields="false">
+ <foreignModel>smooks-graphics-ext.xsd</foreignModel>
+ <genPackages prefix="SmooksGraphicsExt"
basePackage="org.jboss.tools.smooks.model.graphics"
+ resource="XML" disposableProviderFactory="true"
ecorePackage="ext.ecore#/">
+ <genClasses ecoreClass="ext.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EAttribute
ext.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
ext.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
ext.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
ext.ecore#//DocumentRoot/input"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
ext.ecore#//DocumentRoot/param"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
ext.ecore#//DocumentRoot/smooksGraphicsExt"/>
+ </genClasses>
+ <genClasses ecoreClass="ext.ecore#//InputType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
ext.ecore#//InputType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
ext.ecore#//InputType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="ext.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
ext.ecore#//ParamType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
ext.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
ext.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="ext.ecore#//SmooksGraphicsExtType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
ext.ecore#//SmooksGraphicsExtType/input"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
ext.ecore#//SmooksGraphicsExtType/inputType"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
ext.ecore#//SmooksGraphicsExtType/outputType"/>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-ext.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-ext.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-ext.xsd
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-ext.xsd 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
+
targetNamespace="http://www.jboss.org/jbosstools/smooks/smooks-graph...
+ elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
+
xmlns:ext="http://www.jboss.org/jbosstools/smooks/smooks-graphics-ex...
+
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks Graphics
+ Editor Extention File Schema
+</xs:documentation>
+ </xs:annotation>
+
+ <xs:element name="smooks-graphics-ext">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="ext:input" minOccurs="0"
maxOccurs="unbounded">
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="inputType"
type="xs:string"></xs:attribute>
+ <xs:attribute name="outputType"
type="xs:string"></xs:attribute>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="input">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="ext:param" minOccurs="0"
+ maxOccurs="unbounded">
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="type"
type="xs:string"></xs:attribute>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="param">
+
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="type" type="xs:string" />
+ <xs:attribute name="name" type="xs:string">
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/smooks-graphics-ext.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/test.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/test.xml
(rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/test.xml 2009-04-12 10:57:04
UTC (rev 14693)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<smooks-graphics-ext
+
xmlns="http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.xs...
+ <input type="java">
+ <param name="class">com.test.Clazz</param>
+ </input>
+ <input type="xml">
+ <param name="path">
+ /test/path/test.xml
+ </param>
+ </input>
+</smooks-graphics-ext>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/test.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-04-12 10:55:55 UTC
(rev 14692)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-04-12 10:57:04 UTC
(rev 14693)
@@ -133,5 +133,18 @@
class="org.jboss.tools.smooks.model.fileRouting.util.FileRoutingResourceFactoryImpl"/>
</extension>
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <package
+
uri="http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.xsd&...
+
class="org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage"
+ genModel="model/smooks-graphics-ext.genmodel"/>
+ </extension>
+
+ <extension point="org.eclipse.emf.ecore.extension_parser">
+ <parser
+ type="filerouting"
+
class="org.jboss.tools.smooks.model.graphics.ext.util.SmooksGraphicsExtResourceFactoryImpl"/>
+ </extension>
+
</plugin>
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/DocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/DocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/DocumentRoot.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext;
+
+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>Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getInput
<em>Input</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getParam
<em>Param</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getSmooksGraphicsExt
<em>Smooks Graphics Ext</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface DocumentRoot 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.graphics.ext.SmooksGraphicsExtPackage#getDocumentRoot_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.graphics.ext.SmooksGraphicsExtPackage#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
+ */
+ 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.graphics.ext.SmooksGraphicsExtPackage#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
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>Input</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Input</em>' containment reference
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Input</em>' containment reference.
+ * @see #setInput(InputType)
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getDocumentRoot_Input()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='input'
namespace='##targetNamespace'"
+ * @generated
+ */
+ InputType getInput();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getInput
<em>Input</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Input</em>' containment
reference.
+ * @see #getInput()
+ * @generated
+ */
+ void setInput(InputType value);
+
+ /**
+ * Returns the value of the '<em><b>Param</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Param</em>' containment reference
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Param</em>' containment reference.
+ * @see #setParam(ParamType)
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getDocumentRoot_Param()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='param'
namespace='##targetNamespace'"
+ * @generated
+ */
+ ParamType getParam();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getParam
<em>Param</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Param</em>' containment
reference.
+ * @see #getParam()
+ * @generated
+ */
+ void setParam(ParamType value);
+
+ /**
+ * Returns the value of the '<em><b>Smooks Graphics
Ext</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Smooks Graphics Ext</em>' containment
reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Smooks Graphics Ext</em>'
containment reference.
+ * @see #setSmooksGraphicsExt(SmooksGraphicsExtType)
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getDocumentRoot_SmooksGraphicsExt()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element'
name='smooks-graphics-ext' namespace='##targetNamespace'"
+ * @generated
+ */
+ SmooksGraphicsExtType getSmooksGraphicsExt();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getSmooksGraphicsExt
<em>Smooks Graphics Ext</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Smooks Graphics Ext</em>'
containment reference.
+ * @see #getSmooksGraphicsExt()
+ * @generated
+ */
+ void setSmooksGraphicsExt(SmooksGraphicsExtType value);
+
+} // DocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/DocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/InputType.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/InputType.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/InputType.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,75 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Input
Type</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.graphics.ext.InputType#getParam
<em>Param</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.graphics.ext.InputType#getType
<em>Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getInputType()
+ * @model extendedMetaData="name='input_._type'
kind='elementOnly'"
+ * @generated
+ */
+public interface InputType extends EObject {
+ /**
+ * Returns the value of the '<em><b>Param</b></em>'
containment reference list.
+ * The list contents are of type {@link
org.jboss.tools.smooks.model.graphics.ext.ParamType}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Param</em>' containment reference list
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Param</em>' containment reference
list.
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getInputType_Param()
+ * @model containment="true"
+ * extendedMetaData="kind='element' name='param'
namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<ParamType> getParam();
+
+ /**
+ * Returns the value of the '<em><b>Type</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Type</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Type</em>' attribute.
+ * @see #setType(String)
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getInputType_Type()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='type'"
+ * @generated
+ */
+ String getType();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.graphics.ext.InputType#getType
<em>Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type</em>' attribute.
+ * @see #getType()
+ * @generated
+ */
+ void setType(String value);
+
+} // InputType
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/InputType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/ParamType.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/ParamType.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/ParamType.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,111 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Param
Type</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.graphics.ext.ParamType#getValue
<em>Value</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.graphics.ext.ParamType#getName
<em>Name</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.graphics.ext.ParamType#getType
<em>Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getParamType()
+ * @model extendedMetaData="name='param_._type' kind='simple'"
+ * @generated
+ */
+public interface ParamType extends EObject {
+ /**
+ * Returns the value of the '<em><b>Value</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value</em>' attribute isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Value</em>' attribute.
+ * @see #setValue(String)
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getParamType_Value()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="name=':0' kind='simple'"
+ * @generated
+ */
+ String getValue();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.graphics.ext.ParamType#getValue
<em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Value</em>' attribute.
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(String value);
+
+ /**
+ * Returns the value of the '<em><b>Name</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getParamType_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='name'"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.graphics.ext.ParamType#getName
<em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Type</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Type</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Type</em>' attribute.
+ * @see #setType(String)
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getParamType_Type()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='type'"
+ * @generated
+ */
+ String getType();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.graphics.ext.ParamType#getType
<em>Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type</em>' attribute.
+ * @see #getType()
+ * @generated
+ */
+ void setType(String value);
+
+} // ParamType
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/ParamType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtFactory.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,73 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext;
+
+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.graphics.ext.SmooksGraphicsExtPackage
+ * @generated
+ */
+public interface SmooksGraphicsExtFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ SmooksGraphicsExtFactory eINSTANCE =
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtFactoryImpl.init();
+
+ /**
+ * 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>Input Type</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Input Type</em>'.
+ * @generated
+ */
+ InputType createInputType();
+
+ /**
+ * Returns a new object of class '<em>Param Type</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Param Type</em>'.
+ * @generated
+ */
+ ParamType createParamType();
+
+ /**
+ * Returns a new object of class '<em>Type</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Type</em>'.
+ * @generated
+ */
+ SmooksGraphicsExtType createSmooksGraphicsExtType();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ SmooksGraphicsExtPackage getSmooksGraphicsExtPackage();
+
+} //SmooksGraphicsExtFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtPackage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtPackage.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtPackage.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,640 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+/**
+ * <!-- 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 Graphics
+ * Editor Extention File Schema
+ *
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface SmooksGraphicsExtPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "ext";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI =
"http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "ext";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ SmooksGraphicsExtPackage eINSTANCE =
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.graphics.ext.impl.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.graphics.ext.impl.DocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ int DOCUMENT_ROOT = 0;
+
+ /**
+ * 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>Input</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__INPUT = 3;
+
+ /**
+ * The feature id for the '<em><b>Param</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__PARAM = 4;
+
+ /**
+ * The feature id for the '<em><b>Smooks Graphics
Ext</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT = 5;
+
+ /**
+ * 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 = 6;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.graphics.ext.impl.InputTypeImpl <em>Input
Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.graphics.ext.impl.InputTypeImpl
+ * @see
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtPackageImpl#getInputType()
+ * @generated
+ */
+ int INPUT_TYPE = 1;
+
+ /**
+ * The feature id for the '<em><b>Param</b></em>'
containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INPUT_TYPE__PARAM = 0;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INPUT_TYPE__TYPE = 1;
+
+ /**
+ * The number of structural features of the '<em>Input Type</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INPUT_TYPE_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.graphics.ext.impl.ParamTypeImpl <em>Param
Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.graphics.ext.impl.ParamTypeImpl
+ * @see
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtPackageImpl#getParamType()
+ * @generated
+ */
+ int PARAM_TYPE = 2;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PARAM_TYPE__VALUE = 0;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PARAM_TYPE__NAME = 1;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PARAM_TYPE__TYPE = 2;
+
+ /**
+ * The number of structural features of the '<em>Param Type</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int PARAM_TYPE_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtTypeImpl
<em>Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtTypeImpl
+ * @see
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtPackageImpl#getSmooksGraphicsExtType()
+ * @generated
+ */
+ int SMOOKS_GRAPHICS_EXT_TYPE = 3;
+
+ /**
+ * The feature id for the '<em><b>Input</b></em>'
containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SMOOKS_GRAPHICS_EXT_TYPE__INPUT = 0;
+
+ /**
+ * The feature id for the '<em><b>Input Type</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SMOOKS_GRAPHICS_EXT_TYPE__INPUT_TYPE = 1;
+
+ /**
+ * The feature id for the '<em><b>Output Type</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SMOOKS_GRAPHICS_EXT_TYPE__OUTPUT_TYPE = 2;
+
+ /**
+ * The number of structural features of the '<em>Type</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SMOOKS_GRAPHICS_EXT_TYPE_FEATURE_COUNT = 3;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.graphics.ext.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.graphics.ext.DocumentRoot
+ * @generated
+ */
+ EClass getDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.graphics.ext.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.graphics.ext.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EAttribute getDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.graphics.ext.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.graphics.ext.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.graphics.ext.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.graphics.ext.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getInput
<em>Input</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Input</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getInput()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_Input();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getParam
<em>Param</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Param</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getParam()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_Param();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getSmooksGraphicsExt
<em>Smooks Graphics Ext</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Smooks Graphics
Ext</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.DocumentRoot#getSmooksGraphicsExt()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_SmooksGraphicsExt();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.graphics.ext.InputType <em>Input
Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Input Type</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.InputType
+ * @generated
+ */
+ EClass getInputType();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.graphics.ext.InputType#getParam
<em>Param</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list
'<em>Param</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.InputType#getParam()
+ * @see #getInputType()
+ * @generated
+ */
+ EReference getInputType_Param();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.graphics.ext.InputType#getType
<em>Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Type</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.InputType#getType()
+ * @see #getInputType()
+ * @generated
+ */
+ EAttribute getInputType_Type();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.graphics.ext.ParamType <em>Param
Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Param Type</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.ParamType
+ * @generated
+ */
+ EClass getParamType();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.graphics.ext.ParamType#getValue
<em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Value</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.ParamType#getValue()
+ * @see #getParamType()
+ * @generated
+ */
+ EAttribute getParamType_Value();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.graphics.ext.ParamType#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.graphics.ext.ParamType#getName()
+ * @see #getParamType()
+ * @generated
+ */
+ EAttribute getParamType_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.graphics.ext.ParamType#getType
<em>Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Type</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.ParamType#getType()
+ * @see #getParamType()
+ * @generated
+ */
+ EAttribute getParamType_Type();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType
<em>Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Type</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType
+ * @generated
+ */
+ EClass getSmooksGraphicsExtType();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getInput
<em>Input</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list
'<em>Input</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getInput()
+ * @see #getSmooksGraphicsExtType()
+ * @generated
+ */
+ EReference getSmooksGraphicsExtType_Input();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getInputType
<em>Input Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Input Type</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getInputType()
+ * @see #getSmooksGraphicsExtType()
+ * @generated
+ */
+ EAttribute getSmooksGraphicsExtType_InputType();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getOutputType
<em>Output Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Output
Type</em>'.
+ * @see org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getOutputType()
+ * @see #getSmooksGraphicsExtType()
+ * @generated
+ */
+ EAttribute getSmooksGraphicsExtType_OutputType();
+
+ /**
+ * 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
+ */
+ SmooksGraphicsExtFactory getSmooksGraphicsExtFactory();
+
+ /**
+ * <!-- 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.graphics.ext.impl.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.graphics.ext.impl.DocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtPackageImpl#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>Input</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__INPUT = eINSTANCE.getDocumentRoot_Input();
+
+ /**
+ * The meta object literal for the
'<em><b>Param</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__PARAM = eINSTANCE.getDocumentRoot_Param();
+
+ /**
+ * The meta object literal for the '<em><b>Smooks Graphics
Ext</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT =
eINSTANCE.getDocumentRoot_SmooksGraphicsExt();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.graphics.ext.impl.InputTypeImpl <em>Input
Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.graphics.ext.impl.InputTypeImpl
+ * @see
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtPackageImpl#getInputType()
+ * @generated
+ */
+ EClass INPUT_TYPE = eINSTANCE.getInputType();
+
+ /**
+ * The meta object literal for the
'<em><b>Param</b></em>' containment reference list
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference INPUT_TYPE__PARAM = eINSTANCE.getInputType_Param();
+
+ /**
+ * The meta object literal for the
'<em><b>Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute INPUT_TYPE__TYPE = eINSTANCE.getInputType_Type();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.graphics.ext.impl.ParamTypeImpl <em>Param
Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.graphics.ext.impl.ParamTypeImpl
+ * @see
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtPackageImpl#getParamType()
+ * @generated
+ */
+ EClass PARAM_TYPE = eINSTANCE.getParamType();
+
+ /**
+ * The meta object literal for the
'<em><b>Value</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PARAM_TYPE__VALUE = eINSTANCE.getParamType_Value();
+
+ /**
+ * The meta object literal for the
'<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PARAM_TYPE__NAME = eINSTANCE.getParamType_Name();
+
+ /**
+ * The meta object literal for the
'<em><b>Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute PARAM_TYPE__TYPE = eINSTANCE.getParamType_Type();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtTypeImpl
<em>Type</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtTypeImpl
+ * @see
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtPackageImpl#getSmooksGraphicsExtType()
+ * @generated
+ */
+ EClass SMOOKS_GRAPHICS_EXT_TYPE = eINSTANCE.getSmooksGraphicsExtType();
+
+ /**
+ * The meta object literal for the
'<em><b>Input</b></em>' containment reference list
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference SMOOKS_GRAPHICS_EXT_TYPE__INPUT =
eINSTANCE.getSmooksGraphicsExtType_Input();
+
+ /**
+ * The meta object literal for the '<em><b>Input
Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SMOOKS_GRAPHICS_EXT_TYPE__INPUT_TYPE =
eINSTANCE.getSmooksGraphicsExtType_InputType();
+
+ /**
+ * The meta object literal for the '<em><b>Output
Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SMOOKS_GRAPHICS_EXT_TYPE__OUTPUT_TYPE =
eINSTANCE.getSmooksGraphicsExtType_OutputType();
+
+ }
+
+} //SmooksGraphicsExtPackage
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtType.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtType.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtType.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,103 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object
'<em><b>Type</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getInput
<em>Input</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getInputType
<em>Input Type</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getOutputType
<em>Output Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getSmooksGraphicsExtType()
+ * @model extendedMetaData="name='smooks-graphics-ext_._type'
kind='elementOnly'"
+ * @generated
+ */
+public interface SmooksGraphicsExtType extends EObject {
+ /**
+ * Returns the value of the '<em><b>Input</b></em>'
containment reference list.
+ * The list contents are of type {@link
org.jboss.tools.smooks.model.graphics.ext.InputType}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Input</em>' containment reference list
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Input</em>' containment reference
list.
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getSmooksGraphicsExtType_Input()
+ * @model containment="true"
+ * extendedMetaData="kind='element' name='input'
namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<InputType> getInput();
+
+ /**
+ * Returns the value of the '<em><b>Input Type</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Input Type</em>' attribute isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Input Type</em>' attribute.
+ * @see #setInputType(String)
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getSmooksGraphicsExtType_InputType()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='inputType'"
+ * @generated
+ */
+ String getInputType();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getInputType
<em>Input Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Input Type</em>'
attribute.
+ * @see #getInputType()
+ * @generated
+ */
+ void setInputType(String value);
+
+ /**
+ * Returns the value of the '<em><b>Output
Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Output Type</em>' attribute isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Output Type</em>' attribute.
+ * @see #setOutputType(String)
+ * @see
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage#getSmooksGraphicsExtType_OutputType()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='outputType'"
+ * @generated
+ */
+ String getOutputType();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType#getOutputType
<em>Output Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Output Type</em>'
attribute.
+ * @see #getOutputType()
+ * @generated
+ */
+ void setOutputType(String value);
+
+} // SmooksGraphicsExtType
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/SmooksGraphicsExtType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/DocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/DocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/DocumentRootImpl.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,368 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.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.graphics.ext.DocumentRoot;
+import org.jboss.tools.smooks.model.graphics.ext.InputType;
+import org.jboss.tools.smooks.model.graphics.ext.ParamType;
+import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage;
+import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.DocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.DocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.DocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.DocumentRootImpl#getInput
<em>Input</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.DocumentRootImpl#getParam
<em>Param</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.DocumentRootImpl#getSmooksGraphicsExt
<em>Smooks Graphics Ext</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+ /**
+ * 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 DocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SmooksGraphicsExtPackage.Literals.DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, SmooksGraphicsExtPackage.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,
SmooksGraphicsExtPackage.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,
SmooksGraphicsExtPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InputType getInput() {
+ return
(InputType)getMixed().get(SmooksGraphicsExtPackage.Literals.DOCUMENT_ROOT__INPUT, true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetInput(InputType newInput, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(SmooksGraphicsExtPackage.Literals.DOCUMENT_ROOT__INPUT,
newInput, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setInput(InputType newInput) {
+ ((FeatureMap.Internal)getMixed()).set(SmooksGraphicsExtPackage.Literals.DOCUMENT_ROOT__INPUT,
newInput);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ParamType getParam() {
+ return
(ParamType)getMixed().get(SmooksGraphicsExtPackage.Literals.DOCUMENT_ROOT__PARAM, true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetParam(ParamType newParam, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(SmooksGraphicsExtPackage.Literals.DOCUMENT_ROOT__PARAM,
newParam, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParam(ParamType newParam) {
+ ((FeatureMap.Internal)getMixed()).set(SmooksGraphicsExtPackage.Literals.DOCUMENT_ROOT__PARAM,
newParam);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SmooksGraphicsExtType getSmooksGraphicsExt() {
+ return
(SmooksGraphicsExtType)getMixed().get(SmooksGraphicsExtPackage.Literals.DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT,
true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetSmooksGraphicsExt(SmooksGraphicsExtType
newSmooksGraphicsExt, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(SmooksGraphicsExtPackage.Literals.DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT,
newSmooksGraphicsExt, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSmooksGraphicsExt(SmooksGraphicsExtType newSmooksGraphicsExt) {
+ ((FeatureMap.Internal)getMixed()).set(SmooksGraphicsExtPackage.Literals.DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT,
newSmooksGraphicsExt);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__INPUT:
+ return basicSetInput(null, msgs);
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__PARAM:
+ return basicSetParam(null, msgs);
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT:
+ return basicSetSmooksGraphicsExt(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 SmooksGraphicsExtPackage.DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__INPUT:
+ return getInput();
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__PARAM:
+ return getParam();
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT:
+ return getSmooksGraphicsExt();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__INPUT:
+ setInput((InputType)newValue);
+ return;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__PARAM:
+ setParam((ParamType)newValue);
+ return;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT:
+ setSmooksGraphicsExt((SmooksGraphicsExtType)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__INPUT:
+ setInput((InputType)null);
+ return;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__PARAM:
+ setParam((ParamType)null);
+ return;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT:
+ setSmooksGraphicsExt((SmooksGraphicsExtType)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__INPUT:
+ return getInput() != null;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__PARAM:
+ return getParam() != null;
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT:
+ return getSmooksGraphicsExt() != 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();
+ }
+
+} //DocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/DocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/InputTypeImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/InputTypeImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/InputTypeImpl.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,225 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.jboss.tools.smooks.model.graphics.ext.InputType;
+import org.jboss.tools.smooks.model.graphics.ext.ParamType;
+import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Input
Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.InputTypeImpl#getParam
<em>Param</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.InputTypeImpl#getType
<em>Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class InputTypeImpl extends EObjectImpl implements InputType {
+ /**
+ * The cached value of the '{@link #getParam() <em>Param</em>}'
containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getParam()
+ * @generated
+ * @ordered
+ */
+ protected EList<ParamType> param;
+
+ /**
+ * The default value of the '{@link #getType() <em>Type</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPE_EDEFAULT = null;
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected String type = TYPE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected InputTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SmooksGraphicsExtPackage.Literals.INPUT_TYPE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<ParamType> getParam() {
+ if (param == null) {
+ param = new EObjectContainmentEList<ParamType>(ParamType.class, this,
SmooksGraphicsExtPackage.INPUT_TYPE__PARAM);
+ }
+ return param;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(String newType) {
+ String oldType = type;
+ type = newType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
SmooksGraphicsExtPackage.INPUT_TYPE__TYPE, oldType, type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.INPUT_TYPE__PARAM:
+ return ((InternalEList<?>)getParam()).basicRemove(otherEnd, 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 SmooksGraphicsExtPackage.INPUT_TYPE__PARAM:
+ return getParam();
+ case SmooksGraphicsExtPackage.INPUT_TYPE__TYPE:
+ return getType();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.INPUT_TYPE__PARAM:
+ getParam().clear();
+ getParam().addAll((Collection<? extends ParamType>)newValue);
+ return;
+ case SmooksGraphicsExtPackage.INPUT_TYPE__TYPE:
+ setType((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.INPUT_TYPE__PARAM:
+ getParam().clear();
+ return;
+ case SmooksGraphicsExtPackage.INPUT_TYPE__TYPE:
+ setType(TYPE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.INPUT_TYPE__PARAM:
+ return param != null && !param.isEmpty();
+ case SmooksGraphicsExtPackage.INPUT_TYPE__TYPE:
+ return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+ }
+ 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(" (type: ");
+ result.append(type);
+ result.append(')');
+ return result.toString();
+ }
+
+} //InputTypeImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/InputTypeImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/ParamTypeImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/ParamTypeImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/ParamTypeImpl.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,275 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.jboss.tools.smooks.model.graphics.ext.ParamType;
+import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Param
Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.ParamTypeImpl#getValue
<em>Value</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.ParamTypeImpl#getName
<em>Name</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.ParamTypeImpl#getType
<em>Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ParamTypeImpl extends EObjectImpl implements ParamType {
+ /**
+ * The default value of the '{@link #getValue() <em>Value</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected static final String VALUE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected String value = VALUE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getType() <em>Type</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected String type = TYPE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ParamTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SmooksGraphicsExtPackage.Literals.PARAM_TYPE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValue(String newValue) {
+ String oldValue = value;
+ value = newValue;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
SmooksGraphicsExtPackage.PARAM_TYPE__VALUE, oldValue, value));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
SmooksGraphicsExtPackage.PARAM_TYPE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(String newType) {
+ String oldType = type;
+ type = newType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
SmooksGraphicsExtPackage.PARAM_TYPE__TYPE, oldType, type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.PARAM_TYPE__VALUE:
+ return getValue();
+ case SmooksGraphicsExtPackage.PARAM_TYPE__NAME:
+ return getName();
+ case SmooksGraphicsExtPackage.PARAM_TYPE__TYPE:
+ return getType();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.PARAM_TYPE__VALUE:
+ setValue((String)newValue);
+ return;
+ case SmooksGraphicsExtPackage.PARAM_TYPE__NAME:
+ setName((String)newValue);
+ return;
+ case SmooksGraphicsExtPackage.PARAM_TYPE__TYPE:
+ setType((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.PARAM_TYPE__VALUE:
+ setValue(VALUE_EDEFAULT);
+ return;
+ case SmooksGraphicsExtPackage.PARAM_TYPE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case SmooksGraphicsExtPackage.PARAM_TYPE__TYPE:
+ setType(TYPE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.PARAM_TYPE__VALUE:
+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
+ case SmooksGraphicsExtPackage.PARAM_TYPE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case SmooksGraphicsExtPackage.PARAM_TYPE__TYPE:
+ return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+ }
+ 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(" (value: ");
+ result.append(value);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", type: ");
+ result.append(type);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ParamTypeImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/ParamTypeImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtFactoryImpl.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,132 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.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.graphics.ext.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class SmooksGraphicsExtFactoryImpl extends EFactoryImpl implements
SmooksGraphicsExtFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static SmooksGraphicsExtFactory init() {
+ try {
+ SmooksGraphicsExtFactory theSmooksGraphicsExtFactory =
(
SmooksGraphicsExtFactory)EPackage.Registry.INSTANCE.getEFactory("htt...);
+ if (theSmooksGraphicsExtFactory != null) {
+ return theSmooksGraphicsExtFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new SmooksGraphicsExtFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SmooksGraphicsExtFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case SmooksGraphicsExtPackage.DOCUMENT_ROOT: return createDocumentRoot();
+ case SmooksGraphicsExtPackage.INPUT_TYPE: return createInputType();
+ case SmooksGraphicsExtPackage.PARAM_TYPE: return createParamType();
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE: return
createSmooksGraphicsExtType();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InputType createInputType() {
+ InputTypeImpl inputType = new InputTypeImpl();
+ return inputType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ParamType createParamType() {
+ ParamTypeImpl paramType = new ParamTypeImpl();
+ return paramType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SmooksGraphicsExtType createSmooksGraphicsExtType() {
+ SmooksGraphicsExtTypeImpl smooksGraphicsExtType = new SmooksGraphicsExtTypeImpl();
+ return smooksGraphicsExtType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SmooksGraphicsExtPackage getSmooksGraphicsExtPackage() {
+ return (SmooksGraphicsExtPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static SmooksGraphicsExtPackage getPackage() {
+ return SmooksGraphicsExtPackage.eINSTANCE;
+ }
+
+} //SmooksGraphicsExtFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtPackageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtPackageImpl.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,548 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.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.graphics.ext.DocumentRoot;
+import org.jboss.tools.smooks.model.graphics.ext.InputType;
+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.SmooksGraphicsExtPackage;
+import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class SmooksGraphicsExtPackageImpl extends EPackageImpl implements
SmooksGraphicsExtPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass documentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass inputTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass paramTypeEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass smooksGraphicsExtTypeEClass = 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.graphics.ext.SmooksGraphicsExtPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private SmooksGraphicsExtPackageImpl() {
+ super(eNS_URI, SmooksGraphicsExtFactory.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 SmooksGraphicsExtPackage init() {
+ if (isInited) return
(SmooksGraphicsExtPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksGraphicsExtPackage.eNS_URI);
+
+ // Obtain or create and register package
+ SmooksGraphicsExtPackageImpl theSmooksGraphicsExtPackage =
(SmooksGraphicsExtPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof
SmooksGraphicsExtPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new
SmooksGraphicsExtPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ XMLTypePackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theSmooksGraphicsExtPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theSmooksGraphicsExtPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theSmooksGraphicsExtPackage.freeze();
+
+ return theSmooksGraphicsExtPackage;
+ }
+
+ /**
+ * <!-- 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_Input() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_Param() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_SmooksGraphicsExt() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getInputType() {
+ return inputTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getInputType_Param() {
+ return (EReference)inputTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getInputType_Type() {
+ return (EAttribute)inputTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getParamType() {
+ return paramTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getParamType_Value() {
+ return (EAttribute)paramTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getParamType_Name() {
+ return (EAttribute)paramTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getParamType_Type() {
+ return (EAttribute)paramTypeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSmooksGraphicsExtType() {
+ return smooksGraphicsExtTypeEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getSmooksGraphicsExtType_Input() {
+ return (EReference)smooksGraphicsExtTypeEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSmooksGraphicsExtType_InputType() {
+ return (EAttribute)smooksGraphicsExtTypeEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSmooksGraphicsExtType_OutputType() {
+ return (EAttribute)smooksGraphicsExtTypeEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SmooksGraphicsExtFactory getSmooksGraphicsExtFactory() {
+ return (SmooksGraphicsExtFactory)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
+ 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__INPUT);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__PARAM);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__SMOOKS_GRAPHICS_EXT);
+
+ inputTypeEClass = createEClass(INPUT_TYPE);
+ createEReference(inputTypeEClass, INPUT_TYPE__PARAM);
+ createEAttribute(inputTypeEClass, INPUT_TYPE__TYPE);
+
+ paramTypeEClass = createEClass(PARAM_TYPE);
+ createEAttribute(paramTypeEClass, PARAM_TYPE__VALUE);
+ createEAttribute(paramTypeEClass, PARAM_TYPE__NAME);
+ createEAttribute(paramTypeEClass, PARAM_TYPE__TYPE);
+
+ smooksGraphicsExtTypeEClass = createEClass(SMOOKS_GRAPHICS_EXT_TYPE);
+ createEReference(smooksGraphicsExtTypeEClass, SMOOKS_GRAPHICS_EXT_TYPE__INPUT);
+ createEAttribute(smooksGraphicsExtTypeEClass, SMOOKS_GRAPHICS_EXT_TYPE__INPUT_TYPE);
+ createEAttribute(smooksGraphicsExtTypeEClass, SMOOKS_GRAPHICS_EXT_TYPE__OUTPUT_TYPE);
+ }
+
+ /**
+ * <!-- 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);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+
+ // Initialize classes and features; add operations and parameters
+ 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_Input(), this.getInputType(), null, "input",
null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_Param(), this.getParamType(), null, "param",
null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_SmooksGraphicsExt(), this.getSmooksGraphicsExtType(),
null, "smooksGraphicsExt", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED,
IS_ORDERED);
+
+ initEClass(inputTypeEClass, InputType.class, "InputType", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getInputType_Param(), this.getParamType(), null, "param",
null, 0, -1, InputType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getInputType_Type(), theXMLTypePackage.getString(), "type",
null, 0, 1, InputType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(paramTypeEClass, ParamType.class, "ParamType", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getParamType_Value(), theXMLTypePackage.getString(), "value",
null, 0, 1, ParamType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getParamType_Name(), theXMLTypePackage.getString(), "name",
null, 0, 1, ParamType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getParamType_Type(), theXMLTypePackage.getString(), "type",
null, 0, 1, ParamType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(smooksGraphicsExtTypeEClass, SmooksGraphicsExtType.class,
"SmooksGraphicsExtType", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getSmooksGraphicsExtType_Input(), this.getInputType(), null,
"input", null, 0, -1, SmooksGraphicsExtType.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEAttribute(getSmooksGraphicsExtType_InputType(), theXMLTypePackage.getString(),
"inputType", null, 0, 1, SmooksGraphicsExtType.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getSmooksGraphicsExtType_OutputType(), theXMLTypePackage.getString(),
"outputType", null, 0, 1, SmooksGraphicsExtType.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
+ (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_Input(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "input",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getDocumentRoot_Param(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "param",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getDocumentRoot_SmooksGraphicsExt(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "smooks-graphics-ext",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (inputTypeEClass,
+ source,
+ new String[] {
+ "name", "input_._type",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getInputType_Param(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "param",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getInputType_Type(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "type"
+ });
+ addAnnotation
+ (paramTypeEClass,
+ source,
+ new String[] {
+ "name", "param_._type",
+ "kind", "simple"
+ });
+ addAnnotation
+ (getParamType_Value(),
+ source,
+ new String[] {
+ "name", ":0",
+ "kind", "simple"
+ });
+ addAnnotation
+ (getParamType_Name(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "name"
+ });
+ addAnnotation
+ (getParamType_Type(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "type"
+ });
+ addAnnotation
+ (smooksGraphicsExtTypeEClass,
+ source,
+ new String[] {
+ "name", "smooks-graphics-ext_._type",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getSmooksGraphicsExtType_Input(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "input",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getSmooksGraphicsExtType_InputType(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "inputType"
+ });
+ addAnnotation
+ (getSmooksGraphicsExtType_OutputType(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "outputType"
+ });
+ }
+
+} //SmooksGraphicsExtPackageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtTypeImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtTypeImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtTypeImpl.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,280 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.jboss.tools.smooks.model.graphics.ext.InputType;
+import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtPackage;
+import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object
'<em><b>Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtTypeImpl#getInput
<em>Input</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtTypeImpl#getInputType
<em>Input Type</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.graphics.ext.impl.SmooksGraphicsExtTypeImpl#getOutputType
<em>Output Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SmooksGraphicsExtTypeImpl extends EObjectImpl implements
SmooksGraphicsExtType {
+ /**
+ * The cached value of the '{@link #getInput() <em>Input</em>}'
containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getInput()
+ * @generated
+ * @ordered
+ */
+ protected EList<InputType> input;
+
+ /**
+ * The default value of the '{@link #getInputType() <em>Input
Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getInputType()
+ * @generated
+ * @ordered
+ */
+ protected static final String INPUT_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getInputType() <em>Input
Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getInputType()
+ * @generated
+ * @ordered
+ */
+ protected String inputType = INPUT_TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOutputType() <em>Output
Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOutputType()
+ * @generated
+ * @ordered
+ */
+ protected static final String OUTPUT_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOutputType() <em>Output
Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOutputType()
+ * @generated
+ * @ordered
+ */
+ protected String outputType = OUTPUT_TYPE_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SmooksGraphicsExtTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SmooksGraphicsExtPackage.Literals.SMOOKS_GRAPHICS_EXT_TYPE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<InputType> getInput() {
+ if (input == null) {
+ input = new EObjectContainmentEList<InputType>(InputType.class, this,
SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT);
+ }
+ return input;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getInputType() {
+ return inputType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setInputType(String newInputType) {
+ String oldInputType = inputType;
+ inputType = newInputType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT_TYPE, oldInputType, inputType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getOutputType() {
+ return outputType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOutputType(String newOutputType) {
+ String oldOutputType = outputType;
+ outputType = newOutputType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__OUTPUT_TYPE, oldOutputType,
outputType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT:
+ return ((InternalEList<?>)getInput()).basicRemove(otherEnd, 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 SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT:
+ return getInput();
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT_TYPE:
+ return getInputType();
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__OUTPUT_TYPE:
+ return getOutputType();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT:
+ getInput().clear();
+ getInput().addAll((Collection<? extends InputType>)newValue);
+ return;
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT_TYPE:
+ setInputType((String)newValue);
+ return;
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__OUTPUT_TYPE:
+ setOutputType((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT:
+ getInput().clear();
+ return;
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT_TYPE:
+ setInputType(INPUT_TYPE_EDEFAULT);
+ return;
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__OUTPUT_TYPE:
+ setOutputType(OUTPUT_TYPE_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT:
+ return input != null && !input.isEmpty();
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__INPUT_TYPE:
+ return INPUT_TYPE_EDEFAULT == null ? inputType != null :
!INPUT_TYPE_EDEFAULT.equals(inputType);
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE__OUTPUT_TYPE:
+ return OUTPUT_TYPE_EDEFAULT == null ? outputType != null :
!OUTPUT_TYPE_EDEFAULT.equals(outputType);
+ }
+ 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(" (inputType: ");
+ result.append(inputType);
+ result.append(", outputType: ");
+ result.append(outputType);
+ result.append(')');
+ return result.toString();
+ }
+
+} //SmooksGraphicsExtTypeImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/impl/SmooksGraphicsExtTypeImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtAdapterFactory.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,178 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.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.jboss.tools.smooks.model.graphics.ext.*;
+
+/**
+ * <!-- 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.graphics.ext.SmooksGraphicsExtPackage
+ * @generated
+ */
+public class SmooksGraphicsExtAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static SmooksGraphicsExtPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SmooksGraphicsExtAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = SmooksGraphicsExtPackage.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 SmooksGraphicsExtSwitch<Adapter> modelSwitch =
+ new SmooksGraphicsExtSwitch<Adapter>() {
+ @Override
+ public Adapter caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseInputType(InputType object) {
+ return createInputTypeAdapter();
+ }
+ @Override
+ public Adapter caseParamType(ParamType object) {
+ return createParamTypeAdapter();
+ }
+ @Override
+ public Adapter caseSmooksGraphicsExtType(SmooksGraphicsExtType object) {
+ return createSmooksGraphicsExtTypeAdapter();
+ }
+ @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.graphics.ext.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.graphics.ext.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.graphics.ext.InputType <em>Input
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.graphics.ext.InputType
+ * @generated
+ */
+ public Adapter createInputTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.graphics.ext.ParamType <em>Param
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.graphics.ext.ParamType
+ * @generated
+ */
+ public Adapter createParamTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType
<em>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.graphics.ext.SmooksGraphicsExtType
+ * @generated
+ */
+ public Adapter createSmooksGraphicsExtTypeAdapter() {
+ 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;
+ }
+
+} //SmooksGraphicsExtAdapterFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtResourceFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtResourceFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtResourceFactoryImpl.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.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.graphics.ext.util.SmooksGraphicsExtResourceImpl
+ * @generated
+ */
+public class SmooksGraphicsExtResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SmooksGraphicsExtResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new SmooksGraphicsExtResourceImpl(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;
+ }
+
+} //SmooksGraphicsExtResourceFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtResourceImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtResourceImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtResourceImpl.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.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.graphics.ext.util.SmooksGraphicsExtResourceFactoryImpl
+ * @generated
+ */
+public class SmooksGraphicsExtResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public SmooksGraphicsExtResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //SmooksGraphicsExtResourceImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtSwitch.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtSwitch.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtSwitch.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,193 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.util;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import org.jboss.tools.smooks.model.graphics.ext.*;
+
+/**
+ * <!-- 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.graphics.ext.SmooksGraphicsExtPackage
+ * @generated
+ */
+public class SmooksGraphicsExtSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static SmooksGraphicsExtPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SmooksGraphicsExtSwitch() {
+ if (modelPackage == null) {
+ modelPackage = SmooksGraphicsExtPackage.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 SmooksGraphicsExtPackage.DOCUMENT_ROOT: {
+ DocumentRoot documentRoot = (DocumentRoot)theEObject;
+ T result = caseDocumentRoot(documentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SmooksGraphicsExtPackage.INPUT_TYPE: {
+ InputType inputType = (InputType)theEObject;
+ T result = caseInputType(inputType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SmooksGraphicsExtPackage.PARAM_TYPE: {
+ ParamType paramType = (ParamType)theEObject;
+ T result = caseParamType(paramType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SmooksGraphicsExtPackage.SMOOKS_GRAPHICS_EXT_TYPE: {
+ SmooksGraphicsExtType smooksGraphicsExtType = (SmooksGraphicsExtType)theEObject;
+ T result = caseSmooksGraphicsExtType(smooksGraphicsExtType);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * 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>Input
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>Input
Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseInputType(InputType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Param
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>Param
Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseParamType(ParamType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>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>Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSmooksGraphicsExtType(SmooksGraphicsExtType 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;
+ }
+
+} //SmooksGraphicsExtSwitch
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtXMLProcessor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtXMLProcessor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtXMLProcessor.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.graphics.ext.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.graphics.ext.SmooksGraphicsExtPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class SmooksGraphicsExtXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SmooksGraphicsExtXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ SmooksGraphicsExtPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the
SmooksGraphicsExtResourceFactoryImpl 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 SmooksGraphicsExtResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new SmooksGraphicsExtResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //SmooksGraphicsExtXMLProcessor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/graphics/ext/util/SmooksGraphicsExtXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks10/model/smooks/util/SmooksModelUtils.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks10/model/smooks/util/SmooksModelUtils.java 2009-04-12
10:55:55 UTC (rev 14692)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks10/model/smooks/util/SmooksModelUtils.java 2009-04-12
10:57:04 UTC (rev 14693)
@@ -28,6 +28,9 @@
import org.eclipse.emf.edit.command.CommandParameter;
import org.eclipse.emf.edit.command.RemoveCommand;
import org.eclipse.emf.edit.domain.EditingDomain;
+import org.jboss.tools.smooks.model.graphics.ext.InputType;
+import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtFactory;
+import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
import org.jboss.tools.smooks10.model.smooks.ParamType;
import org.jboss.tools.smooks10.model.smooks.ResourceConfigType;
import org.jboss.tools.smooks10.model.smooks.ResourceType;
@@ -41,6 +44,16 @@
public class SmooksModelUtils {
+ public static final String INPUT_TYPE_JAVA = "java";
+
+ public static final String PARAM_NAME_CLASS = "class";
+
+ public static final String PARAM_NAME_PATH = "path";
+
+ public static final String INPUT_TYPE_XML = "xml";
+
+ public static final String INPUT_TYPE_XSD = "xsd";
+
public static final String TYPE_XSL = "xsl";
public static final String[] TEMPLATE_TYPES = new String[] { "xsl",
"ftl" };
@@ -51,34 +64,34 @@
public static final String BINDINGS = "bindings";
- public static EStructuralFeature ATTRIBUTE_PROPERTY =
ExtendedMetaData.INSTANCE.demandFeature(
- null, "property", false);
+ public static EStructuralFeature ATTRIBUTE_PROPERTY =
ExtendedMetaData.INSTANCE.demandFeature(null,
+ "property", false);
- public static EStructuralFeature ATTRIBUTE_SELECTOR =
ExtendedMetaData.INSTANCE.demandFeature(
- null, "selector", false);
+ public static EStructuralFeature ATTRIBUTE_SELECTOR =
ExtendedMetaData.INSTANCE.demandFeature(null,
+ "selector", false);
- public static EStructuralFeature ATTRIBUTE_TYPE =
ExtendedMetaData.INSTANCE.demandFeature(null,
- "type", false);
+ public static EStructuralFeature ATTRIBUTE_TYPE =
ExtendedMetaData.INSTANCE.demandFeature(null, "type",
+ false);
public static EStructuralFeature ELEMENT_BINDING =
ExtendedMetaData.INSTANCE.demandFeature(
- "http://www.milyn.org/xsd/smooks-1.0.xsd", "binding", true);
+ "http://www.milyn.org/xsd/smooks-1.0.xsd", "binding", true);
- public static AnyType addBindingTypeToParamType(ParamType param, String property,
- String selector, String type, String uri) {
+ public static AnyType addBindingTypeToParamType(ParamType param, String property, String
selector,
+ String type, String uri) {
AnyType binding = createBindingType(property, selector, type, uri);
param.getMixed().add(ELEMENT_BINDING, binding);
return binding;
}
- public static List<Object> getBindingListFromResourceConfigType(
- ResourceConfigType resourceConfig) {
+ public static List<Object> getBindingListFromResourceConfigType(ResourceConfigType
resourceConfig) {
List<ParamType> paramList = resourceConfig.getParam();
for (Iterator<ParamType> iterator = paramList.iterator(); iterator.hasNext();) {
ParamType param = iterator.next();
if ("bindings".equals(param.getName())) {
- if (param.eContents().isEmpty()) continue;
+ if (param.eContents().isEmpty())
+ continue;
List<Object> bindingList = (List<Object>) param.getMixed().get(
- SmooksModelUtils.ELEMENT_BINDING, false);
+ SmooksModelUtils.ELEMENT_BINDING, false);
return bindingList;
}
}
@@ -87,17 +100,18 @@
public static boolean isBeanPopulatorResource(ResourceConfigType type) {
ResourceType resource = type.getResource();
- if (resource == null) return false;
+ if (resource == null)
+ return false;
String value = resource.getStringValue();
- if (value != null) value = value.trim();
+ if (value != null)
+ value = value.trim();
if (SmooksModelConstants.BEAN_POPULATOR.equals(value)) {
return true;
}
return false;
}
- public static void setPropertyValueToAnyType(Object value, EStructuralFeature
attribute,
- AnyType anyType) {
+ public static void setPropertyValueToAnyType(Object value, EStructuralFeature attribute,
AnyType anyType) {
anyType.getAnyAttribute().set(attribute, value);
}
@@ -106,7 +120,8 @@
for (Iterator iterator = bindingList.iterator(); iterator.hasNext();) {
AnyType binding = (AnyType) iterator.next();
String pro = getAttributeValueFromAnyType(binding, ATTRIBUTE_PROPERTY);
- if (pro != null) pro = pro.trim();
+ if (pro != null)
+ pro = pro.trim();
if (property.equals(pro)) {
return binding;
}
@@ -116,21 +131,26 @@
public static boolean isInnerFileContents(ResourceConfigType resourceConfig) {
ResourceType resource = resourceConfig.getResource();
- if (resource == null) return false;
+ if (resource == null)
+ return false;
String type = resource.getType();
- if (type != null) type = type.trim();
+ if (type != null)
+ type = type.trim();
for (int i = 0; i < TEMPLATE_TYPES.length; i++) {
String type1 = TEMPLATE_TYPES[i];
- if (type1.equalsIgnoreCase(type)) return true;
+ if (type1.equalsIgnoreCase(type))
+ return true;
}
return false;
}
public static boolean isDateTypeSelector(ResourceConfigType type) {
ResourceType resource = type.getResource();
- if (resource == null) return false;
+ if (resource == null)
+ return false;
String value = resource.getStringValue();
- if (value != null) value = value.trim();
+ if (value != null)
+ value = value.trim();
for (int i = 0; i < SmooksModelConstants.DECODER_CLASSES.length; i++) {
String decoderClass = SmooksModelConstants.DECODER_CLASSES[i];
if (decoderClass.equals(value)) {
@@ -142,13 +162,15 @@
public static String getTransformType(ResourceConfigType resourceConfig) {
ParamType typeParam = null;
- if (resourceConfig == null) return "";
+ if (resourceConfig == null)
+ return "";
if (isTransformTypeResourceConfig(resourceConfig)) {
List paramList = resourceConfig.getParam();
for (Iterator iterator = paramList.iterator(); iterator.hasNext();) {
ParamType param = (ParamType) iterator.next();
String name = param.getName();
- if (name != null) name = name.trim();
+ if (name != null)
+ name = name.trim();
if (SmooksModelConstants.STREAM_FILTER_TYPE.equals(name)) {
typeParam = param;
break;
@@ -162,7 +184,8 @@
}
public static void setTransformType(ResourceConfigType resourceConfig, String type) {
- if (type == null) type = "";
+ if (type == null)
+ type = "";
if (isTransformTypeResourceConfig(resourceConfig)) {
List paramList = resourceConfig.getParam();
for (Iterator iterator = paramList.iterator(); iterator.hasNext();) {
@@ -193,7 +216,8 @@
public static boolean isTransformTypeResourceConfig(ResourceConfigType resourceConfig)
{
String selector = resourceConfig.getSelector();
- if (selector != null) selector = selector.trim();
+ if (selector != null)
+ selector = selector.trim();
if (!SmooksModelConstants.GLOBAL_PARAMETERS.equals(selector)) {
return false;
}
@@ -205,7 +229,8 @@
for (Iterator iterator = paramList.iterator(); iterator.hasNext();) {
ParamType p = (ParamType) iterator.next();
String paramName = p.getName();
- if (paramName != null) paramName = paramName.trim();
+ if (paramName != null)
+ paramName = paramName.trim();
if (SmooksModelConstants.STREAM_FILTER_TYPE.equals(paramName)) {
return true;
}
@@ -214,14 +239,14 @@
}
}
- public static void setParamText(String paramName, String value,
- ResourceConfigType resourceConfigType) {
+ public static void setParamText(String paramName, String value, ResourceConfigType
resourceConfigType) {
List<ParamType> list = resourceConfigType.getParam();
ParamType param = null;
for (Iterator<ParamType> iterator = list.iterator(); iterator.hasNext();) {
ParamType paramType = (ParamType) iterator.next();
String n = paramType.getName();
- if (n == null) continue;
+ if (n == null)
+ continue;
n = n.trim();
if (n.equalsIgnoreCase(paramName)) {
param = paramType;
@@ -241,7 +266,8 @@
for (Iterator iterator = plist.iterator(); iterator.hasNext();) {
ParamType p = (ParamType) iterator.next();
String n = p.getName();
- if (n == null) continue;
+ if (n == null)
+ continue;
n = n.trim();
if (paramName.equalsIgnoreCase(n)) {
return getAnyTypeText(p);
@@ -256,8 +282,7 @@
}
public static String getAnyTypeText(AnyType anyType) {
- Object value =
anyType.getMixed().get(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
- true);
+ Object value =
anyType.getMixed().get(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, true);
if (value != null) {
if (value instanceof List && !((List) value).isEmpty()) {
return ((List) value).get(0).toString().trim();
@@ -268,8 +293,7 @@
}
public static String getAnyTypeCDATA(AnyType anyType) {
- Object value = anyType.getMixed().get(
- XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, true);
+ Object value =
anyType.getMixed().get(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, true);
if (value != null) {
if (value instanceof List && !((List) value).isEmpty()) {
return ((List) value).get(0).toString().trim();
@@ -279,8 +303,7 @@
return null;
}
- public static AnyType createBindingType(String property, String selector, String type,
- String uri) {
+ public static AnyType createBindingType(String property, String selector, String type,
String uri) {
if (uri == null) {
uri = SmooksPackage.eNS_URI;
}
@@ -303,23 +326,21 @@
smooksModel.getMixed().add(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
text);
}
- public static void setTextToSmooksType(EditingDomain editingDomain, AnyType
smooksModel,
- String text) {
+ public static void setTextToSmooksType(EditingDomain editingDomain, AnyType smooksModel,
String text) {
CompoundCommand ccommand = new CompoundCommand();
List<String> listValue = new ArrayList<String>();
listValue.add(text);
Command addCommand = AddCommand.create(editingDomain, smooksModel,
- XMLTypePackage.Literals.ANY_TYPE__MIXED, FeatureMapUtil.createEntry(
- XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, text));
+ XMLTypePackage.Literals.ANY_TYPE__MIXED, FeatureMapUtil.createEntry(
+ XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, text));
Object removeValue = (smooksModel.getMixed().get(
- XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, true));
+ XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, true));
if (removeValue != null && removeValue instanceof Collection<?>) {
List<Object> rList = new ArrayList<Object>();
- for (Iterator<?> iterator = ((Collection<?>) removeValue).iterator();
iterator
- .hasNext();) {
+ for (Iterator<?> iterator = ((Collection<?>) removeValue).iterator();
iterator.hasNext();) {
Object string = (Object) iterator.next();
- rList.add(FeatureMapUtil.createEntry(
- XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, string));
+ rList.add(FeatureMapUtil.createEntry(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
+ string));
}
Command cc = RemoveCommand.create(editingDomain, smooksModel, null, rList);
if (cc != null && cc.canExecute()) {
@@ -331,24 +352,22 @@
}
editingDomain.getCommandStack().execute(ccommand);
}
-
- public static void setCDATAToSmooksType(EditingDomain editingDomain, AnyType
smooksModel,
- String cdata) {
+
+ public static void setCDATAToSmooksType(EditingDomain editingDomain, AnyType
smooksModel, String cdata) {
CompoundCommand ccommand = new CompoundCommand();
List<String> listValue = new ArrayList<String>();
listValue.add(cdata);
Command addCommand = AddCommand.create(editingDomain, smooksModel,
- XMLTypePackage.Literals.ANY_TYPE__MIXED, FeatureMapUtil.createEntry(
- XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, cdata));
+ XMLTypePackage.Literals.ANY_TYPE__MIXED, FeatureMapUtil.createEntry(
+ XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, cdata));
Object removeValue = (smooksModel.getMixed().get(
- XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, true));
+ XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, true));
if (removeValue != null && removeValue instanceof Collection<?>) {
List<Object> rList = new ArrayList<Object>();
- for (Iterator<?> iterator = ((Collection<?>) removeValue).iterator();
iterator
- .hasNext();) {
+ for (Iterator<?> iterator = ((Collection<?>) removeValue).iterator();
iterator.hasNext();) {
Object string = (Object) iterator.next();
- rList.add(FeatureMapUtil.createEntry(
- XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, string));
+ rList.add(FeatureMapUtil.createEntry(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
+ string));
}
Command cc = RemoveCommand.create(editingDomain, smooksModel, null, rList);
if (cc != null && cc.canExecute()) {
@@ -376,16 +395,14 @@
}
public static void cleanTextToSmooksType(AnyType smooksModel) {
- Object obj = smooksModel.getMixed().get(
- XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, true);
+ Object obj =
smooksModel.getMixed().get(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, true);
if (obj instanceof List) {
((List) obj).clear();
}
}
public static void cleanCDATAToSmooksType(AnyType smooksModel) {
- Object obj = smooksModel.getMixed().get(
- XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, true);
+ Object obj =
smooksModel.getMixed().get(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA, true);
if (obj instanceof List) {
((List) obj).clear();
}
@@ -393,11 +410,40 @@
public static CommandParameter createTextCommandParamter(Object owner, String value) {
return createChildParameter(owner, XMLTypePackage.Literals.ANY_TYPE__MIXED,
FeatureMapUtil
- .createEntry(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, value));
+ .createEntry(XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT, value));
}
public static CommandParameter createChildParameter(Object owner, Object feature, Object
child) {
return new CommandParameter(owner, feature, child);
}
+ public static void addJavaInput(SmooksGraphicsExtType ext, String className) {
+ InputType javaInput = SmooksGraphicsExtFactory.eINSTANCE.createInputType();
+ javaInput.setType(INPUT_TYPE_JAVA);
+ org.jboss.tools.smooks.model.graphics.ext.ParamType p =
SmooksGraphicsExtFactory.eINSTANCE
+ .createParamType();
+ p.setName(PARAM_NAME_CLASS);
+ p.setValue(className);
+ javaInput.getParam().add(p);
+ ext.getInput().add(javaInput);
+ }
+
+ public static String getInputPath(InputType input) {
+ List<org.jboss.tools.smooks.model.graphics.ext.ParamType> list =
input.getParam();
+ if (INPUT_TYPE_JAVA.equals(input.getType()) || INPUT_TYPE_XML.equals(input.getType())
+ || INPUT_TYPE_XSD.equals(input.getType())) {
+ for (Iterator<?> iterator = list.iterator(); iterator.hasNext();) {
+ org.jboss.tools.smooks.model.graphics.ext.ParamType paramType =
(org.jboss.tools.smooks.model.graphics.ext.ParamType) iterator
+ .next();
+ if ("path".equals(paramType.getName())) {
+ String value = paramType.getValue();
+ if (value != null)
+ value = value.trim();
+ return value;
+ }
+ }
+ }
+ return null;
+ }
+
}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.xml 2009-04-12 10:55:55 UTC (rev
14692)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.xml 2009-04-12 10:57:04 UTC (rev
14693)
@@ -38,5 +38,11 @@
priority="low">
</content-type>
</extension>
+ <extension
+ point="org.eclipse.ui.startup">
+ <startup
+
class="org.jboss.tools.smooks.configuration.editors.SmooksToolsStartup">
+ </startup>
+ </extension>
</plugin>