Author: DartPeng
Date: 2009-04-09 02:08:29 -0400 (Thu, 09 Apr 2009)
New Revision: 14619
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_outputStream_OutputStream.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateOutputStream_highWaterMark_HighWaterMark.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_OutputStream.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/HighWaterMark.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/OutputStream.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.genmodel
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/DocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/HighWaterMark.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/OutputStream.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/DocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/HighWaterMarkImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/OutputStreamImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingXMLProcessor.java
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
Log:
Add file-router model codes
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_outputStream_OutputStream.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_outputStream_OutputStream.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateOutputStream_highWaterMark_HighWaterMark.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateOutputStream_highWaterMark_HighWaterMark.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_OutputStream.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_OutputStream.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/HighWaterMark.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/HighWaterMark.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/OutputStream.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/OutputStream.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.ecore
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.ecore 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,189 @@
+<?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="fileRouting"
+
nsURI="http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd"
nsPrefix="file">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks file Routing
Configuration"/>
+ </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="outputStream" upperBound="-2"
+ eType="#//OutputStream" volatile="true"
transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="

			File output stream configuration

			The file output stream creates and manages file output
streams.
 		"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="outputStream"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation"
value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-con...
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="HighWaterMark">
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="highWaterMark"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mark"
eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//Int"
+ defaultValueLiteral="200" unsettable="true">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="

					The max number of output files in the
destination directory at any
time.
				"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="mark"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="pollFrequency" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//Int"
+ defaultValueLiteral="1000" unsettable="true">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="

					The number of milliseconds to wait between
checks on the High Water Mark, while

					waiting for it to
drop.
				"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="pollFrequency"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="timeout" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//Int"
+ defaultValueLiteral="60000" unsettable="true">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="

					The number of milliseconds to wait for the
system to process files in the destination

					directory so that the number of files drops
below the highWaterMark.
				"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="timeout"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="OutputStream"
eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="

			File output stream
 		"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="outputStream"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="fileNamePattern" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation"
value="
				
			The pattern that will be used to generate file
names.
				 			The file
is created in the directory defined by the 'destinationDirectoryPattern'
element.
				
			Templating support is available via the FreeMarker template
engine.
			 			"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="fileNamePattern"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="destinationDirectoryPattern"
+ lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation"
value="
				
			The destination directory for files created by this
router.
				
			Templating support is available via the FreeMarker template
engine.
			 			"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name"
value="destinationDirectoryPattern"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="listFileNamePattern" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation"
value="
				
			The name of the file that will contain the file names generated
by this configuration.
				
			The file is created in the directory defined by the
'destinationDirectoryPattern' element.
			
			"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="listFileNamePattern"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference"
name="highWaterMark" eType="#//HighWaterMark"
+ containment="true" resolveProxies="false">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation"
value="
				
			Sets the configuration for the max number of output files in
the destination directory at any time.
			
			"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="highWaterMark"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="closeOnCondition" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation"
value="
				 			An
MVEL expression. If it returns true then the output stream is closed on the visitAfter
event
				 			else it
is kept open. If the expression is not set then output stream is closed by
default.
			 			"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="closeOnCondition"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="encoding" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="UTF-8" unsettable="true">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="

						The encoding to be used by any
writers on this resource. Default is
'UTF-8'.
						"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="encoding"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="openOnElement" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation"
value="
			 			The element
on which the output stream resource should be opened. If opened, the stream will
be
 closed at the end of the same element (on the
visitAfter). This behaviour can be overridden
 through
the &lt;closeOnCondition&gt; element. In that case, the resource is only
closed
 when the MVEL condition is
met.
			 		"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="openOnElement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="openOnElementNS" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation"
value="
			 			The
namespace of the openOnElement element.
			
		"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="openOnElementNS"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute"
name="resourceName" lowerBound="1"
+ eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="

						The name on which the output stream
resource is referenced.

					"/>
+ </eAnnotations>
+ <eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="resourceName"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.genmodel
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.genmodel
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.genmodel 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,154 @@
+<?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="/fileRouting/src"
+ modelPluginID="fileRouting" modelName="File-routing-1"
importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>file-routing-1.1.ecore</foreignModel>
+ <genPackages prefix="FileRouting" resource="XML"
disposableProviderFactory="true"
+ ecorePackage="file-routing-1.1.ecore#/">
+ <genClasses ecoreClass="file-routing-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
file-routing-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
file-routing-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
file-routing-1.1.ecore#//DocumentRoot/outputStream"/>
+ </genClasses>
+ <genClasses ecoreClass="file-routing-1.1.ecore#//HighWaterMark">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//HighWaterMark/mark"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//HighWaterMark/pollFrequency"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//HighWaterMark/timeout"/>
+ </genClasses>
+ <genClasses ecoreClass="file-routing-1.1.ecore#//OutputStream">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//OutputStream/fileNamePattern"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//OutputStream/destinationDirectoryPattern"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//OutputStream/listFileNamePattern"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
file-routing-1.1.ecore#//OutputStream/highWaterMark"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//OutputStream/closeOnCondition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//OutputStream/encoding"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//OutputStream/openOnElement"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//OutputStream/openOnElementNS"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
file-routing-1.1.ecore#//OutputStream/resourceName"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Smooks" resource="XML"
disposableProviderFactory="true"
ecorePackage="smooks-1.1.ecore#/">
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//AbstractReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//AbstractReader/targetProfile"/>
+ </genClasses>
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//AbstractResourceConfig"/>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionsType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ConditionsType/condition"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/evaluator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ConditionType/idRef"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/abstractReader"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/abstractResourceConfig"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/condition"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/conditions"/>
+ <genFeatures property="None" children="true"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/elementVisitor"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/features"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/handler"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/handlers"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/import"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/param"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/params"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/profile"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/profiles"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/reader"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/resource"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/resourceConfig"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/setOff"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/setOn"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//DocumentRoot/smooksResourceList"/>
+ </genClasses>
+ <genClasses image="false"
ecoreClass="smooks-1.1.ecore#//ElementVisitor">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ElementVisitor/condition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ElementVisitor/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//FeaturesType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//FeaturesType/setOn"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//FeaturesType/setOff"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlersType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//HandlersType/handler"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlerType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//HandlerType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ImportType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ImportType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ImportType/file"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamsType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ParamsType/param"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfilesType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ProfilesType/profile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfileType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/baseProfile"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ProfileType/subProfiles"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ReaderType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/handlers"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/features"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ReaderType/params"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ReaderType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceConfigType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/resource"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/condition"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//ResourceConfigType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/selector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/selectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceConfigType/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//ResourceType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOffType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SetOffType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOnType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SetOnType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SmooksResourceListType">
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/params"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/conditions"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/profiles"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/abstractReaderGroup"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/abstractReader"/>
+ <genFeatures property="None" children="true"
createChild="true" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfigGroup"/>
+ <genFeatures property="None" notify="false"
createChild="false" ecoreFeature="ecore:EReference
smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfig"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultConditionRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultSelector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultSelectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute
smooks-1.1.ecore#//SmooksResourceListType/defaultTargetProfile"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Common" resource="XML"
disposableProviderFactory="true" ecorePackage="common.ecore#/">
+ <genClasses image="false"
ecoreClass="common.ecore#//AbstractAnyType">
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/getCDATA"/>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/setCDATA">
+ <genParameters
ecoreParameter="common.ecore#//AbstractAnyType/setCDATA/cdata"/>
+ </genOperations>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/getStringValue"/>
+ <genOperations
ecoreOperation="common.ecore#//AbstractAnyType/setStringValue">
+ <genParameters
ecoreParameter="common.ecore#//AbstractAnyType/setStringValue/stringValue"/>
+ </genOperations>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.xsd
(rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.xsd 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
targetNamespace="http://www.milyn.org/xsd/smooks/file-routing-1.1.xs...
elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
xmlns:smooks-file-routing="http://www.milyn.org/xsd/smooks/file-rout...
+
+ <xs:import
namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks file Routing
Configuration</xs:documentation>
+ </xs:annotation>
+
+
+ <xs:element name="outputStream"
type="smooks-file-routing:outputStream"
substitutionGroup="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ File output stream configuration
+ The file output stream creates and manages file output streams.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+
+ <xs:complexType name="outputStream">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ File output stream
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:sequence>
+ <xs:element name="fileNamePattern" type="xs:string"
minOccurs="1" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The pattern that will be used to generate file names.
+ The file is created in the directory defined by the
'destinationDirectoryPattern' element.
+ Templating support is available via the FreeMarker template engine.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="destinationDirectoryPattern"
type="xs:string" minOccurs="1" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The destination directory for files created by this router.
+ Templating support is available via the FreeMarker template engine.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="listFileNamePattern" type="xs:string"
minOccurs="1" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the file that will contain the file names generated by this
configuration.
+ The file is created in the directory defined by the
'destinationDirectoryPattern' element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="highWaterMark"
type="smooks-file-routing:highWaterMark" minOccurs="0"
maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Sets the configuration for the max number of output files in the destination
directory at any time.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="closeOnCondition" type="xs:string"
minOccurs="0" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ An MVEL expression. If it returns true then the output stream is closed on the
visitAfter event
+ else it is kept open. If the expression is not set then output stream is
closed by default.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ </xs:sequence>
+ <xs:attribute name="openOnElement" type="xs:string"
use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The element on which the output stream resource should be opened. If opened,
the stream will be
+ closed at the end of the same element (on the visitAfter).
This behaviour can be overridden
+ through the <closeOnCondition> element. In
that case, the resource is only closed
+ when the MVEL condition is met.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="openOnElementNS" type="xs:string"
use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The namespace of the openOnElement element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="resourceName" type="xs:string"
use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name on which the output stream resource is referenced.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="encoding" type="xs:string"
use="optional" default="UTF-8">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The encoding to be used by any writers on this resource. Default is
'UTF-8'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="highWaterMark">
+ <xs:attribute name="mark" type="xs:int"
use="optional" default="200">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The max number of output files in the destination directory at any time.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="timeout" type="xs:int"
use="optional" default="60000">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The number of milliseconds to wait for the system to process files in the
destination
+ directory so that the number of files drops below the highWaterMark.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="pollFrequency" type="xs:int"
use="optional" default="1000">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The number of milliseconds to wait between checks on the High Water Mark, while
+ waiting for it to drop.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+</xs:schema>
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/file-routing-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-04-09 03:18:30
UTC (rev 14618)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-04-09 06:08:29
UTC (rev 14619)
@@ -224,3 +224,20 @@
_UI_Xsl_applyBefore_feature = Apply Before
_UI_Xsl_applyOnElement_feature = Apply On Element
_UI_Xsl_applyOnElementNS_feature = Apply On Element NS
+
+_UI_DocumentRoot_outputStream_feature = Output Stream
+_UI_HighWaterMark_mark_feature = Mark
+_UI_HighWaterMark_pollFrequency_feature = Poll Frequency
+_UI_HighWaterMark_timeout_feature = Timeout
+_UI_OutputStream_fileNamePattern_feature = File Name Pattern
+_UI_OutputStream_destinationDirectoryPattern_feature = Destination Directory Pattern
+_UI_OutputStream_listFileNamePattern_feature = List File Name Pattern
+_UI_OutputStream_highWaterMark_feature = High Water Mark
+_UI_OutputStream_closeOnCondition_feature = Close On Condition
+_UI_OutputStream_encoding_feature = Encoding
+_UI_OutputStream_openOnElement_feature = Open On Element
+_UI_OutputStream_openOnElementNS_feature = Open On Element NS
+_UI_OutputStream_resourceName_feature = Resource Name
+
+_UI_HighWaterMark_type = High Water Mark
+_UI_OutputStream_type = Output Stream
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-04-09 03:18:30 UTC
(rev 14618)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-04-09 06:08:29 UTC
(rev 14619)
@@ -120,5 +120,18 @@
class="org.jboss.tools.smooks.model.edi.util.EdiResourceFactoryImpl"/>
</extension>
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <package
+
uri="http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd"
+
class="org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage"
+ genModel="model/file-routing-1.1.genmodel"/>
+ </extension>
+
+ <extension point="org.eclipse.emf.ecore.extension_parser">
+ <parser
+ type="filerouting"
+
class="org.jboss.tools.smooks.model.fileRouting.util.FileRoutingResourceFactoryImpl"/>
+ </extension>
+
</plugin>
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.edit.fileRouting.provider;
+
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.jboss.tools.smooks.model.fileRouting.DocumentRoot;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.fileRouting.DocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DocumentRootItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRootItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use
for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns DocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/DocumentRoot"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DocumentRoot_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(DocumentRoot.class)) {
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
+ FileRoutingFactory.eINSTANCE.createOutputStream()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Filerouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,250 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.edit.fileRouting.provider;
+
+import java.util.ArrayList;
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.edit.provider.ChangeNotifier;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.IChangeNotifier;
+import org.eclipse.emf.edit.provider.IDisposable;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.INotifyChangedListener;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.jboss.tools.smooks.model.fileRouting.util.FileRoutingAdapterFactory;
+
+
+/**
+ * This is the factory that is used to provide the interfaces needed to support Viewers.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to
{@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters also support Eclipse property sheets.
+ * Note that most of the adapters are shared among multiple instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class FileRoutingItemProviderAdapterFactory extends FileRoutingAdapterFactory
implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+ /**
+ * This keeps track of the root adapter factory that delegates to this adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComposedAdapterFactory parentAdapterFactory;
+
+ /**
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+ /**
+ * This keeps track of all the supported types checked by {@link #isFactoryForType
isFactoryForType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Object> supportedTypes = new ArrayList<Object>();
+
+ /**
+ * This constructs an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingItemProviderAdapterFactory() {
+ supportedTypes.add(IEditingDomainItemProvider.class);
+ supportedTypes.add(IStructuredItemContentProvider.class);
+ supportedTypes.add(ITreeItemContentProvider.class);
+ supportedTypes.add(IItemLabelProvider.class);
+ supportedTypes.add(IItemPropertySource.class);
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.fileRouting.DocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootItemProvider documentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.fileRouting.DocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createDocumentRootAdapter() {
+ if (documentRootItemProvider == null) {
+ documentRootItemProvider = new DocumentRootItemProvider(this);
+ }
+
+ return documentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HighWaterMarkItemProvider highWaterMarkItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createHighWaterMarkAdapter() {
+ if (highWaterMarkItemProvider == null) {
+ highWaterMarkItemProvider = new HighWaterMarkItemProvider(this);
+ }
+
+ return highWaterMarkItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.fileRouting.OutputStream} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected OutputStreamItemProvider outputStreamItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.fileRouting.OutputStream}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createOutputStreamAdapter() {
+ if (outputStreamItemProvider == null) {
+ outputStreamItemProvider = new OutputStreamItemProvider(this);
+ }
+
+ return outputStreamItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this :
parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (documentRootItemProvider != null) documentRootItemProvider.dispose();
+ if (highWaterMarkItemProvider != null) highWaterMarkItemProvider.dispose();
+ if (outputStreamItemProvider != null) outputStreamItemProvider.dispose();
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,93 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.edit.fileRouting.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the File-routing-1 edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class Filerouting1EditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final Filerouting1EditPlugin INSTANCE = new Filerouting1EditPlugin();
+
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static Implementation plugin;
+
+ /**
+ * Create the instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Filerouting1EditPlugin() {
+ super
+ (new ResourceLocator [] {
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,207 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.edit.fileRouting.provider;
+
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class HighWaterMarkItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HighWaterMarkItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addMarkPropertyDescriptor(object);
+ addPollFrequencyPropertyDescriptor(object);
+ addTimeoutPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Mark feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addMarkPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_HighWaterMark_mark_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_HighWaterMark_mark_feature", "_UI_HighWaterMark_type"),
+ FileRoutingPackage.Literals.HIGH_WATER_MARK__MARK,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Poll Frequency feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addPollFrequencyPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_HighWaterMark_pollFrequency_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_HighWaterMark_pollFrequency_feature", "_UI_HighWaterMark_type"),
+ FileRoutingPackage.Literals.HIGH_WATER_MARK__POLL_FREQUENCY,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Timeout feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addTimeoutPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_HighWaterMark_timeout_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_HighWaterMark_timeout_feature", "_UI_HighWaterMark_type"),
+ FileRoutingPackage.Literals.HIGH_WATER_MARK__TIMEOUT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns HighWaterMark.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/HighWaterMark"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ HighWaterMark highWaterMark = (HighWaterMark)object;
+ return getString("_UI_HighWaterMark_type") + " " +
highWaterMark.getMark();
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(HighWaterMark.class)) {
+ case FileRoutingPackage.HIGH_WATER_MARK__MARK:
+ case FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ case FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Filerouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,367 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.edit.fileRouting.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.jboss.tools.smooks.edit.smooks.provider.ElementVisitorItemProvider;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.fileRouting.OutputStream} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class OutputStreamItemProvider
+ extends ElementVisitorItemProvider
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OutputStreamItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addFileNamePatternPropertyDescriptor(object);
+ addDestinationDirectoryPatternPropertyDescriptor(object);
+ addListFileNamePatternPropertyDescriptor(object);
+ addCloseOnConditionPropertyDescriptor(object);
+ addEncodingPropertyDescriptor(object);
+ addOpenOnElementPropertyDescriptor(object);
+ addOpenOnElementNSPropertyDescriptor(object);
+ addResourceNamePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the File Name Pattern feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addFileNamePatternPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_fileNamePattern_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_OutputStream_fileNamePattern_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__FILE_NAME_PATTERN,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Destination Directory Pattern feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addDestinationDirectoryPatternPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_destinationDirectoryPattern_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_OutputStream_destinationDirectoryPattern_feature",
"_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the List File Name Pattern feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addListFileNamePatternPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_listFileNamePattern_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_OutputStream_listFileNamePattern_feature",
"_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Close On Condition feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addCloseOnConditionPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_closeOnCondition_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_OutputStream_closeOnCondition_feature",
"_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__CLOSE_ON_CONDITION,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Encoding feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addEncodingPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_encoding_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_OutputStream_encoding_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__ENCODING,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Open On Element feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addOpenOnElementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_openOnElement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_OutputStream_openOnElement_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__OPEN_ON_ELEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Open On Element NS feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addOpenOnElementNSPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_openOnElementNS_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_OutputStream_openOnElementNS_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Resource Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addResourceNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_OutputStream_resourceName_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_OutputStream_resourceName_feature", "_UI_OutputStream_type"),
+ FileRoutingPackage.Literals.OUTPUT_STREAM__RESOURCE_NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(FileRoutingPackage.Literals.OUTPUT_STREAM__HIGH_WATER_MARK);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use
for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns OutputStream.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/OutputStream"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((OutputStream)object).getResourceName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_OutputStream_type") :
+ getString("_UI_OutputStream_type") + " " + label;
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(OutputStream.class)) {
+ case FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN:
+ case FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN:
+ case FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN:
+ case FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION:
+ case FileRoutingPackage.OUTPUT_STREAM__ENCODING:
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT:
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS:
+ case FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (FileRoutingPackage.Literals.OUTPUT_STREAM__HIGH_WATER_MARK,
+ FileRoutingFactory.eINSTANCE.createHighWaterMark()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Filerouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/DocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/DocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/DocumentRoot.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,117 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting;
+
+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.fileRouting.DocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getOutputStream <em>Output
Stream</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#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.fileRouting.FileRoutingPackage#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.fileRouting.FileRoutingPackage#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.fileRouting.FileRoutingPackage#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>Output
Stream</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * File output stream configuration
+ * The file output stream creates and manages file output streams.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Output Stream</em>' containment
reference.
+ * @see #setOutputStream(OutputStream)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getDocumentRoot_OutputStream()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='outputStream'
namespace='##targetNamespace'
affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resourc...
+ * @generated
+ */
+ OutputStream getOutputStream();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getOutputStream <em>Output
Stream</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Output Stream</em>'
containment reference.
+ * @see #getOutputStream()
+ * @generated
+ */
+ void setOutputStream(OutputStream value);
+
+} // DocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/DocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingFactory.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,64 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting;
+
+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.fileRouting.FileRoutingPackage
+ * @generated
+ */
+public interface FileRoutingFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ FileRoutingFactory eINSTANCE =
org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingFactoryImpl.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>High Water Mark</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>High Water Mark</em>'.
+ * @generated
+ */
+ HighWaterMark createHighWaterMark();
+
+ /**
+ * Returns a new object of class '<em>Output Stream</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Output Stream</em>'.
+ * @generated
+ */
+ OutputStream createOutputStream();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ FileRoutingPackage getFileRoutingPackage();
+
+} //FileRoutingFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingPackage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingPackage.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingPackage.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,701 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ * Smooks file Routing Configuration
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface FileRoutingPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "fileRouting";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "file";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ FileRoutingPackage eINSTANCE =
org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#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>Output
Stream</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__OUTPUT_STREAM = 3;
+
+ /**
+ * The number of structural features of the '<em>Document Root</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl <em>High Water
Mark</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl
+ * @see
org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#getHighWaterMark()
+ * @generated
+ */
+ int HIGH_WATER_MARK = 1;
+
+ /**
+ * The feature id for the '<em><b>Mark</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIGH_WATER_MARK__MARK = 0;
+
+ /**
+ * The feature id for the '<em><b>Poll
Frequency</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIGH_WATER_MARK__POLL_FREQUENCY = 1;
+
+ /**
+ * The feature id for the '<em><b>Timeout</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIGH_WATER_MARK__TIMEOUT = 2;
+
+ /**
+ * The number of structural features of the '<em>High Water
Mark</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIGH_WATER_MARK_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl <em>Output
Stream</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl
+ * @see
org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#getOutputStream()
+ * @generated
+ */
+ int OUTPUT_STREAM = 2;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__MIXED = SmooksPackage.ELEMENT_VISITOR__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__ANY = SmooksPackage.ELEMENT_VISITOR__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__ANY_ATTRIBUTE = SmooksPackage.ELEMENT_VISITOR__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Condition</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__CONDITION = SmooksPackage.ELEMENT_VISITOR__CONDITION;
+
+ /**
+ * The feature id for the '<em><b>Target
Profile</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__TARGET_PROFILE = SmooksPackage.ELEMENT_VISITOR__TARGET_PROFILE;
+
+ /**
+ * The feature id for the '<em><b>File Name
Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__FILE_NAME_PATTERN = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Destination Directory
Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN =
SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>List File Name
Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__LIST_FILE_NAME_PATTERN = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT
+ 2;
+
+ /**
+ * The feature id for the '<em><b>High Water
Mark</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__HIGH_WATER_MARK = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Close On
Condition</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__CLOSE_ON_CONDITION = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT +
4;
+
+ /**
+ * The feature id for the '<em><b>Encoding</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__ENCODING = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 5;
+
+ /**
+ * The feature id for the '<em><b>Open On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__OPEN_ON_ELEMENT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 6;
+
+ /**
+ * The feature id for the '<em><b>Open On Element
NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__OPEN_ON_ELEMENT_NS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT +
7;
+
+ /**
+ * The feature id for the '<em><b>Resource
Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM__RESOURCE_NAME = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 8;
+
+ /**
+ * The number of structural features of the '<em>Output Stream</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int OUTPUT_STREAM_FEATURE_COUNT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 9;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.fileRouting.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.fileRouting.DocumentRoot
+ * @generated
+ */
+ EClass getDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.fileRouting.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.fileRouting.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EAttribute getDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.fileRouting.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.fileRouting.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.fileRouting.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.fileRouting.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getOutputStream <em>Output
Stream</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Output
Stream</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.DocumentRoot#getOutputStream()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_OutputStream();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark <em>High Water
Mark</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>High Water Mark</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.HighWaterMark
+ * @generated
+ */
+ EClass getHighWaterMark();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark
<em>Mark</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Mark</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark()
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ EAttribute getHighWaterMark_Mark();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency <em>Poll
Frequency</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Poll
Frequency</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency()
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ EAttribute getHighWaterMark_PollFrequency();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout
<em>Timeout</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Timeout</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout()
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ EAttribute getHighWaterMark_Timeout();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream <em>Output
Stream</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Output Stream</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream
+ * @generated
+ */
+ EClass getOutputStream();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getFileNamePattern <em>File
Name Pattern</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>File Name
Pattern</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getFileNamePattern()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_FileNamePattern();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getDestinationDirectoryPattern
<em>Destination Directory Pattern</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Destination Directory
Pattern</em>'.
+ * @see
org.jboss.tools.smooks.model.fileRouting.OutputStream#getDestinationDirectoryPattern()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_DestinationDirectoryPattern();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getListFileNamePattern
<em>List File Name Pattern</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>List File Name
Pattern</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getListFileNamePattern()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_ListFileNamePattern();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getHighWaterMark <em>High
Water Mark</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>High Water
Mark</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getHighWaterMark()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EReference getOutputStream_HighWaterMark();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getCloseOnCondition <em>Close
On Condition</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Close On
Condition</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getCloseOnCondition()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_CloseOnCondition();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding
<em>Encoding</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Encoding</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_Encoding();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElement <em>Open On
Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Open On
Element</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElement()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_OpenOnElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElementNS <em>Open On
Element NS</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Open On Element
NS</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElementNS()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_OpenOnElementNS();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getResourceName <em>Resource
Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Resource
Name</em>'.
+ * @see org.jboss.tools.smooks.model.fileRouting.OutputStream#getResourceName()
+ * @see #getOutputStream()
+ * @generated
+ */
+ EAttribute getOutputStream_ResourceName();
+
+ /**
+ * 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
+ */
+ FileRoutingFactory getFileRoutingFactory();
+
+ /**
+ * <!-- 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.fileRouting.impl.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#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>Output
Stream</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__OUTPUT_STREAM = eINSTANCE.getDocumentRoot_OutputStream();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl <em>High Water
Mark</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl
+ * @see
org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#getHighWaterMark()
+ * @generated
+ */
+ EClass HIGH_WATER_MARK = eINSTANCE.getHighWaterMark();
+
+ /**
+ * The meta object literal for the
'<em><b>Mark</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute HIGH_WATER_MARK__MARK = eINSTANCE.getHighWaterMark_Mark();
+
+ /**
+ * The meta object literal for the '<em><b>Poll
Frequency</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute HIGH_WATER_MARK__POLL_FREQUENCY =
eINSTANCE.getHighWaterMark_PollFrequency();
+
+ /**
+ * The meta object literal for the
'<em><b>Timeout</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute HIGH_WATER_MARK__TIMEOUT = eINSTANCE.getHighWaterMark_Timeout();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl <em>Output
Stream</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl
+ * @see
org.jboss.tools.smooks.model.fileRouting.impl.FileRoutingPackageImpl#getOutputStream()
+ * @generated
+ */
+ EClass OUTPUT_STREAM = eINSTANCE.getOutputStream();
+
+ /**
+ * The meta object literal for the '<em><b>File Name
Pattern</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__FILE_NAME_PATTERN =
eINSTANCE.getOutputStream_FileNamePattern();
+
+ /**
+ * The meta object literal for the '<em><b>Destination Directory
Pattern</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN =
eINSTANCE.getOutputStream_DestinationDirectoryPattern();
+
+ /**
+ * The meta object literal for the '<em><b>List File Name
Pattern</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__LIST_FILE_NAME_PATTERN =
eINSTANCE.getOutputStream_ListFileNamePattern();
+
+ /**
+ * The meta object literal for the '<em><b>High Water
Mark</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference OUTPUT_STREAM__HIGH_WATER_MARK = eINSTANCE.getOutputStream_HighWaterMark();
+
+ /**
+ * The meta object literal for the '<em><b>Close On
Condition</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__CLOSE_ON_CONDITION =
eINSTANCE.getOutputStream_CloseOnCondition();
+
+ /**
+ * The meta object literal for the
'<em><b>Encoding</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__ENCODING = eINSTANCE.getOutputStream_Encoding();
+
+ /**
+ * The meta object literal for the '<em><b>Open On
Element</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__OPEN_ON_ELEMENT = eINSTANCE.getOutputStream_OpenOnElement();
+
+ /**
+ * The meta object literal for the '<em><b>Open On Element
NS</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__OPEN_ON_ELEMENT_NS =
eINSTANCE.getOutputStream_OpenOnElementNS();
+
+ /**
+ * The meta object literal for the '<em><b>Resource
Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute OUTPUT_STREAM__RESOURCE_NAME = eINSTANCE.getOutputStream_ResourceName();
+
+ }
+
+} //FileRoutingPackage
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/FileRoutingPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/HighWaterMark.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/HighWaterMark.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/HighWaterMark.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,200 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>High Water
Mark</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark
<em>Mark</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency <em>Poll
Frequency</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout
<em>Timeout</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getHighWaterMark()
+ * @model extendedMetaData="name='highWaterMark' kind='empty'"
+ * @generated
+ */
+public interface HighWaterMark extends EObject {
+ /**
+ * Returns the value of the '<em><b>Mark</b></em>'
attribute.
+ * The default value is <code>"200"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The max number of output files in the destination directory at any time.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Mark</em>' attribute.
+ * @see #isSetMark()
+ * @see #unsetMark()
+ * @see #setMark(int)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getHighWaterMark_Mark()
+ * @model default="200" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Int"
+ * extendedMetaData="kind='attribute' name='mark'"
+ * @generated
+ */
+ int getMark();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark
<em>Mark</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Mark</em>' attribute.
+ * @see #isSetMark()
+ * @see #unsetMark()
+ * @see #getMark()
+ * @generated
+ */
+ void setMark(int value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark
<em>Mark</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetMark()
+ * @see #getMark()
+ * @see #setMark(int)
+ * @generated
+ */
+ void unsetMark();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getMark
<em>Mark</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Mark</em>' attribute is
set.
+ * @see #unsetMark()
+ * @see #getMark()
+ * @see #setMark(int)
+ * @generated
+ */
+ boolean isSetMark();
+
+ /**
+ * Returns the value of the '<em><b>Poll
Frequency</b></em>' attribute.
+ * The default value is <code>"1000"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The number of milliseconds to wait between checks on the High Water Mark,
while
+ * waiting for it to drop.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Poll Frequency</em>' attribute.
+ * @see #isSetPollFrequency()
+ * @see #unsetPollFrequency()
+ * @see #setPollFrequency(int)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getHighWaterMark_PollFrequency()
+ * @model default="1000" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Int"
+ * extendedMetaData="kind='attribute'
name='pollFrequency'"
+ * @generated
+ */
+ int getPollFrequency();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency <em>Poll
Frequency</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Poll Frequency</em>'
attribute.
+ * @see #isSetPollFrequency()
+ * @see #unsetPollFrequency()
+ * @see #getPollFrequency()
+ * @generated
+ */
+ void setPollFrequency(int value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency <em>Poll
Frequency</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetPollFrequency()
+ * @see #getPollFrequency()
+ * @see #setPollFrequency(int)
+ * @generated
+ */
+ void unsetPollFrequency();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getPollFrequency <em>Poll
Frequency</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Poll Frequency</em>'
attribute is set.
+ * @see #unsetPollFrequency()
+ * @see #getPollFrequency()
+ * @see #setPollFrequency(int)
+ * @generated
+ */
+ boolean isSetPollFrequency();
+
+ /**
+ * Returns the value of the '<em><b>Timeout</b></em>'
attribute.
+ * The default value is <code>"60000"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The number of milliseconds to wait for the system to process files in the
destination
+ * directory so that the number of files drops below the highWaterMark.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Timeout</em>' attribute.
+ * @see #isSetTimeout()
+ * @see #unsetTimeout()
+ * @see #setTimeout(int)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getHighWaterMark_Timeout()
+ * @model default="60000" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Int"
+ * extendedMetaData="kind='attribute' name='timeout'"
+ * @generated
+ */
+ int getTimeout();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout
<em>Timeout</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Timeout</em>' attribute.
+ * @see #isSetTimeout()
+ * @see #unsetTimeout()
+ * @see #getTimeout()
+ * @generated
+ */
+ void setTimeout(int value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout
<em>Timeout</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetTimeout()
+ * @see #getTimeout()
+ * @see #setTimeout(int)
+ * @generated
+ */
+ void unsetTimeout();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark#getTimeout
<em>Timeout</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Timeout</em>' attribute is
set.
+ * @see #unsetTimeout()
+ * @see #getTimeout()
+ * @see #setTimeout(int)
+ * @generated
+ */
+ boolean isSetTimeout();
+
+} // HighWaterMark
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/HighWaterMark.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/OutputStream.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/OutputStream.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/OutputStream.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,330 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting;
+
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Output
Stream</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * File output stream
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getFileNamePattern <em>File
Name Pattern</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getDestinationDirectoryPattern
<em>Destination Directory Pattern</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getListFileNamePattern
<em>List File Name Pattern</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getHighWaterMark <em>High
Water Mark</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getCloseOnCondition <em>Close
On Condition</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElement <em>Open On
Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElementNS <em>Open On
Element NS</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getResourceName <em>Resource
Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream()
+ * @model extendedMetaData="name='outputStream'
kind='elementOnly'"
+ * @generated
+ */
+public interface OutputStream extends ElementVisitor {
+ /**
+ * Returns the value of the '<em><b>File Name
Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The pattern that will be used to generate file names.
+ * The file is created in the directory defined by the
'destinationDirectoryPattern' element.
+ * Templating support is available via the FreeMarker template engine.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>File Name Pattern</em>' attribute.
+ * @see #setFileNamePattern(String)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_FileNamePattern()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='element' name='fileNamePattern'
namespace='##targetNamespace'"
+ * @generated
+ */
+ String getFileNamePattern();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getFileNamePattern <em>File
Name Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>File Name Pattern</em>'
attribute.
+ * @see #getFileNamePattern()
+ * @generated
+ */
+ void setFileNamePattern(String value);
+
+ /**
+ * Returns the value of the '<em><b>Destination Directory
Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The destination directory for files created by this router.
+ * Templating support is available via the FreeMarker template engine.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Destination Directory Pattern</em>'
attribute.
+ * @see #setDestinationDirectoryPattern(String)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_DestinationDirectoryPattern()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='element'
name='destinationDirectoryPattern' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getDestinationDirectoryPattern();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getDestinationDirectoryPattern
<em>Destination Directory Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Destination Directory
Pattern</em>' attribute.
+ * @see #getDestinationDirectoryPattern()
+ * @generated
+ */
+ void setDestinationDirectoryPattern(String value);
+
+ /**
+ * Returns the value of the '<em><b>List File Name
Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The name of the file that will contain the file names generated by this
configuration.
+ * The file is created in the directory defined by the
'destinationDirectoryPattern' element.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>List File Name Pattern</em>'
attribute.
+ * @see #setListFileNamePattern(String)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_ListFileNamePattern()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='element'
name='listFileNamePattern' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getListFileNamePattern();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getListFileNamePattern
<em>List File Name Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>List File Name
Pattern</em>' attribute.
+ * @see #getListFileNamePattern()
+ * @generated
+ */
+ void setListFileNamePattern(String value);
+
+ /**
+ * Returns the value of the '<em><b>High Water
Mark</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * Sets the configuration for the max number of output files in the
destination directory at any time.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>High Water Mark</em>' containment
reference.
+ * @see #setHighWaterMark(HighWaterMark)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_HighWaterMark()
+ * @model containment="true"
+ * extendedMetaData="kind='element' name='highWaterMark'
namespace='##targetNamespace'"
+ * @generated
+ */
+ HighWaterMark getHighWaterMark();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getHighWaterMark <em>High
Water Mark</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>High Water Mark</em>'
containment reference.
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ void setHighWaterMark(HighWaterMark value);
+
+ /**
+ * Returns the value of the '<em><b>Close On
Condition</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * An MVEL expression. If it returns true then the output stream is closed on
the visitAfter event
+ * else it is kept open. If the expression is not set then output stream is
closed by default.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Close On Condition</em>'
attribute.
+ * @see #setCloseOnCondition(String)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_CloseOnCondition()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='element' name='closeOnCondition'
namespace='##targetNamespace'"
+ * @generated
+ */
+ String getCloseOnCondition();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getCloseOnCondition <em>Close
On Condition</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Close On Condition</em>'
attribute.
+ * @see #getCloseOnCondition()
+ * @generated
+ */
+ void setCloseOnCondition(String value);
+
+ /**
+ * Returns the value of the '<em><b>Encoding</b></em>'
attribute.
+ * The default value is <code>"UTF-8"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The encoding to be used by any writers on this resource. Default is
'UTF-8'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Encoding</em>' attribute.
+ * @see #isSetEncoding()
+ * @see #unsetEncoding()
+ * @see #setEncoding(String)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_Encoding()
+ * @model default="UTF-8" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='encoding'"
+ * @generated
+ */
+ String getEncoding();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding
<em>Encoding</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Encoding</em>' attribute.
+ * @see #isSetEncoding()
+ * @see #unsetEncoding()
+ * @see #getEncoding()
+ * @generated
+ */
+ void setEncoding(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding
<em>Encoding</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetEncoding()
+ * @see #getEncoding()
+ * @see #setEncoding(String)
+ * @generated
+ */
+ void unsetEncoding();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getEncoding
<em>Encoding</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Encoding</em>' attribute is
set.
+ * @see #unsetEncoding()
+ * @see #getEncoding()
+ * @see #setEncoding(String)
+ * @generated
+ */
+ boolean isSetEncoding();
+
+ /**
+ * Returns the value of the '<em><b>Open On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The element on which the output stream resource should be opened. If
opened, the stream will be
+ * closed at the end of the same element (on the
visitAfter). This behaviour can be overridden
+ * through the <closeOnCondition> element. In
that case, the resource is only closed
+ * when the MVEL condition is met.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Open On Element</em>' attribute.
+ * @see #setOpenOnElement(String)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_OpenOnElement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='openOnElement'"
+ * @generated
+ */
+ String getOpenOnElement();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElement <em>Open On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Open On Element</em>'
attribute.
+ * @see #getOpenOnElement()
+ * @generated
+ */
+ void setOpenOnElement(String value);
+
+ /**
+ * Returns the value of the '<em><b>Open On Element
NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The namespace of the openOnElement element.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Open On Element NS</em>'
attribute.
+ * @see #setOpenOnElementNS(String)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_OpenOnElementNS()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='openOnElementNS'"
+ * @generated
+ */
+ String getOpenOnElementNS();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getOpenOnElementNS <em>Open On
Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Open On Element NS</em>'
attribute.
+ * @see #getOpenOnElementNS()
+ * @generated
+ */
+ void setOpenOnElementNS(String value);
+
+ /**
+ * Returns the value of the '<em><b>Resource
Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The name on which the output stream resource is referenced.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Resource Name</em>' attribute.
+ * @see #setResourceName(String)
+ * @see
org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage#getOutputStream_ResourceName()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='resourceName'"
+ * @generated
+ */
+ String getResourceName();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream#getResourceName <em>Resource
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Resource Name</em>'
attribute.
+ * @see #getResourceName()
+ * @generated
+ */
+ void setResourceName(String value);
+
+} // OutputStream
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/OutputStream.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/DocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/DocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/DocumentRootImpl.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,286 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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.fileRouting.DocumentRoot;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+
+/**
+ * <!-- 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.fileRouting.impl.DocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.DocumentRootImpl#getOutputStream
<em>Output Stream</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 FileRoutingPackage.Literals.DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, FileRoutingPackage.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,
FileRoutingPackage.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,
FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OutputStream getOutputStream() {
+ return
(OutputStream)getMixed().get(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetOutputStream(OutputStream newOutputStream,
NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
newOutputStream, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOutputStream(OutputStream newOutputStream) {
+ ((FeatureMap.Internal)getMixed()).set(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
newOutputStream);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case FileRoutingPackage.DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ return basicSetOutputStream(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 FileRoutingPackage.DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ return getOutputStream();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case FileRoutingPackage.DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ setOutputStream((OutputStream)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ setOutputStream((OutputStream)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case FileRoutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case FileRoutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case FileRoutingPackage.DOCUMENT_ROOT__OUTPUT_STREAM:
+ return getOutputStream() != 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/fileRouting/impl/DocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingFactoryImpl.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,121 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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.fileRouting.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class FileRoutingFactoryImpl extends EFactoryImpl implements FileRoutingFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static FileRoutingFactory init() {
+ try {
+ FileRoutingFactory theFileRoutingFactory =
(
FileRoutingFactory)EPackage.Registry.INSTANCE.getEFactory("http://ww...);
+ if (theFileRoutingFactory != null) {
+ return theFileRoutingFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new FileRoutingFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case FileRoutingPackage.DOCUMENT_ROOT: return createDocumentRoot();
+ case FileRoutingPackage.HIGH_WATER_MARK: return createHighWaterMark();
+ case FileRoutingPackage.OUTPUT_STREAM: return createOutputStream();
+ 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 HighWaterMark createHighWaterMark() {
+ HighWaterMarkImpl highWaterMark = new HighWaterMarkImpl();
+ return highWaterMark;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public OutputStream createOutputStream() {
+ OutputStreamImpl outputStream = new OutputStreamImpl();
+ return outputStream;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingPackage getFileRoutingPackage() {
+ return (FileRoutingPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static FileRoutingPackage getPackage() {
+ return FileRoutingPackage.eINSTANCE;
+ }
+
+} //FileRoutingFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingPackageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingPackageImpl.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,570 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+import org.jboss.tools.smooks.model.common.CommonPackage;
+import org.jboss.tools.smooks.model.common.impl.CommonPackageImpl;
+import org.jboss.tools.smooks.model.fileRouting.DocumentRoot;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.smooks.impl.SmooksPackageImpl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class FileRoutingPackageImpl extends EPackageImpl implements FileRoutingPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass documentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass highWaterMarkEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass outputStreamEClass = 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.fileRouting.FileRoutingPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private FileRoutingPackageImpl() {
+ super(eNS_URI, FileRoutingFactory.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 FileRoutingPackage init() {
+ if (isInited) return
(FileRoutingPackage)EPackage.Registry.INSTANCE.getEPackage(FileRoutingPackage.eNS_URI);
+
+ // Obtain or create and register package
+ FileRoutingPackageImpl theFileRoutingPackage =
(FileRoutingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof
FileRoutingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new
FileRoutingPackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ XMLTypePackage.eINSTANCE.eClass();
+
+ // Obtain or create and register interdependencies
+ SmooksPackageImpl theSmooksPackage =
(SmooksPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI)
instanceof SmooksPackageImpl ?
EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI) : SmooksPackage.eINSTANCE);
+ CommonPackageImpl theCommonPackage =
(CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI)
instanceof CommonPackageImpl ?
EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
+
+ // Create package meta-data objects
+ theFileRoutingPackage.createPackageContents();
+ theSmooksPackage.createPackageContents();
+ theCommonPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theFileRoutingPackage.initializePackageContents();
+ theSmooksPackage.initializePackageContents();
+ theCommonPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theFileRoutingPackage.freeze();
+
+ return theFileRoutingPackage;
+ }
+
+ /**
+ * <!-- 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_OutputStream() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getHighWaterMark() {
+ return highWaterMarkEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHighWaterMark_Mark() {
+ return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHighWaterMark_PollFrequency() {
+ return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHighWaterMark_Timeout() {
+ return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getOutputStream() {
+ return outputStreamEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_FileNamePattern() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_DestinationDirectoryPattern() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_ListFileNamePattern() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getOutputStream_HighWaterMark() {
+ return (EReference)outputStreamEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_CloseOnCondition() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_Encoding() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_OpenOnElement() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_OpenOnElementNS() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getOutputStream_ResourceName() {
+ return (EAttribute)outputStreamEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingFactory getFileRoutingFactory() {
+ return (FileRoutingFactory)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__OUTPUT_STREAM);
+
+ highWaterMarkEClass = createEClass(HIGH_WATER_MARK);
+ createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__MARK);
+ createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__POLL_FREQUENCY);
+ createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__TIMEOUT);
+
+ outputStreamEClass = createEClass(OUTPUT_STREAM);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__FILE_NAME_PATTERN);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__LIST_FILE_NAME_PATTERN);
+ createEReference(outputStreamEClass, OUTPUT_STREAM__HIGH_WATER_MARK);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__CLOSE_ON_CONDITION);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__ENCODING);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__OPEN_ON_ELEMENT);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__OPEN_ON_ELEMENT_NS);
+ createEAttribute(outputStreamEClass, OUTPUT_STREAM__RESOURCE_NAME);
+ }
+
+ /**
+ * <!-- 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);
+ SmooksPackage theSmooksPackage =
(SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ outputStreamEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor());
+
+ // 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_OutputStream(), this.getOutputStream(), null,
"outputStream", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE,
IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+ initEClass(highWaterMarkEClass, HighWaterMark.class, "HighWaterMark",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getHighWaterMark_Mark(), theXMLTypePackage.getInt(), "mark",
"200", 0, 1, HighWaterMark.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getHighWaterMark_PollFrequency(), theXMLTypePackage.getInt(),
"pollFrequency", "1000", 0, 1, HighWaterMark.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getHighWaterMark_Timeout(), theXMLTypePackage.getInt(),
"timeout", "60000", 0, 1, HighWaterMark.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(outputStreamEClass, OutputStream.class, "OutputStream",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getOutputStream_FileNamePattern(), theXMLTypePackage.getString(),
"fileNamePattern", null, 1, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_DestinationDirectoryPattern(),
theXMLTypePackage.getString(), "destinationDirectoryPattern", null, 1, 1,
OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_ListFileNamePattern(), theXMLTypePackage.getString(),
"listFileNamePattern", null, 1, 1, OutputStream.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getOutputStream_HighWaterMark(), this.getHighWaterMark(), null,
"highWaterMark", null, 0, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEAttribute(getOutputStream_CloseOnCondition(), theXMLTypePackage.getString(),
"closeOnCondition", null, 0, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_Encoding(), theXMLTypePackage.getString(),
"encoding", "UTF-8", 0, 1, OutputStream.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_OpenOnElement(), theXMLTypePackage.getString(),
"openOnElement", null, 1, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_OpenOnElementNS(), theXMLTypePackage.getString(),
"openOnElementNS", null, 0, 1, OutputStream.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getOutputStream_ResourceName(), theXMLTypePackage.getString(),
"resourceName", null, 1, 1, OutputStream.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_OutputStream(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "outputStream",
+ "namespace", "##targetNamespace",
+ "affiliation",
"http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"
+ });
+ addAnnotation
+ (highWaterMarkEClass,
+ source,
+ new String[] {
+ "name", "highWaterMark",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getHighWaterMark_Mark(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "mark"
+ });
+ addAnnotation
+ (getHighWaterMark_PollFrequency(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "pollFrequency"
+ });
+ addAnnotation
+ (getHighWaterMark_Timeout(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "timeout"
+ });
+ addAnnotation
+ (outputStreamEClass,
+ source,
+ new String[] {
+ "name", "outputStream",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getOutputStream_FileNamePattern(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "fileNamePattern",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOutputStream_DestinationDirectoryPattern(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "destinationDirectoryPattern",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOutputStream_ListFileNamePattern(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "listFileNamePattern",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOutputStream_HighWaterMark(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "highWaterMark",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOutputStream_CloseOnCondition(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "closeOnCondition",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getOutputStream_Encoding(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "encoding"
+ });
+ addAnnotation
+ (getOutputStream_OpenOnElement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "openOnElement"
+ });
+ addAnnotation
+ (getOutputStream_OpenOnElementNS(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "openOnElementNS"
+ });
+ addAnnotation
+ (getOutputStream_ResourceName(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "resourceName"
+ });
+ }
+
+} //FileRoutingPackageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/FileRoutingPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/HighWaterMarkImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/HighWaterMarkImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/HighWaterMarkImpl.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,377 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>High Water
Mark</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl#getMark
<em>Mark</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl#getPollFrequency
<em>Poll Frequency</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl#getTimeout
<em>Timeout</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class HighWaterMarkImpl extends EObjectImpl implements HighWaterMark {
+ /**
+ * The default value of the '{@link #getMark() <em>Mark</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMark()
+ * @generated
+ * @ordered
+ */
+ protected static final int MARK_EDEFAULT = 200;
+
+ /**
+ * The cached value of the '{@link #getMark() <em>Mark</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMark()
+ * @generated
+ * @ordered
+ */
+ protected int mark = MARK_EDEFAULT;
+
+ /**
+ * This is true if the Mark attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean markESet;
+
+ /**
+ * The default value of the '{@link #getPollFrequency() <em>Poll
Frequency</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPollFrequency()
+ * @generated
+ * @ordered
+ */
+ protected static final int POLL_FREQUENCY_EDEFAULT = 1000;
+
+ /**
+ * The cached value of the '{@link #getPollFrequency() <em>Poll
Frequency</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPollFrequency()
+ * @generated
+ * @ordered
+ */
+ protected int pollFrequency = POLL_FREQUENCY_EDEFAULT;
+
+ /**
+ * This is true if the Poll Frequency attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean pollFrequencyESet;
+
+ /**
+ * The default value of the '{@link #getTimeout() <em>Timeout</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTimeout()
+ * @generated
+ * @ordered
+ */
+ protected static final int TIMEOUT_EDEFAULT = 60000;
+
+ /**
+ * The cached value of the '{@link #getTimeout() <em>Timeout</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTimeout()
+ * @generated
+ * @ordered
+ */
+ protected int timeout = TIMEOUT_EDEFAULT;
+
+ /**
+ * This is true if the Timeout attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean timeoutESet;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HighWaterMarkImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return FileRoutingPackage.Literals.HIGH_WATER_MARK;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getMark() {
+ return mark;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMark(int newMark) {
+ int oldMark = mark;
+ mark = newMark;
+ boolean oldMarkESet = markESet;
+ markESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.HIGH_WATER_MARK__MARK, oldMark, mark, !oldMarkESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetMark() {
+ int oldMark = mark;
+ boolean oldMarkESet = markESet;
+ mark = MARK_EDEFAULT;
+ markESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
FileRoutingPackage.HIGH_WATER_MARK__MARK, oldMark, MARK_EDEFAULT, oldMarkESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetMark() {
+ return markESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getPollFrequency() {
+ return pollFrequency;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPollFrequency(int newPollFrequency) {
+ int oldPollFrequency = pollFrequency;
+ pollFrequency = newPollFrequency;
+ boolean oldPollFrequencyESet = pollFrequencyESet;
+ pollFrequencyESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY, oldPollFrequency, pollFrequency,
!oldPollFrequencyESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetPollFrequency() {
+ int oldPollFrequency = pollFrequency;
+ boolean oldPollFrequencyESet = pollFrequencyESet;
+ pollFrequency = POLL_FREQUENCY_EDEFAULT;
+ pollFrequencyESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY, oldPollFrequency,
POLL_FREQUENCY_EDEFAULT, oldPollFrequencyESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetPollFrequency() {
+ return pollFrequencyESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getTimeout() {
+ return timeout;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTimeout(int newTimeout) {
+ int oldTimeout = timeout;
+ timeout = newTimeout;
+ boolean oldTimeoutESet = timeoutESet;
+ timeoutESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT, oldTimeout, timeout, !oldTimeoutESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetTimeout() {
+ int oldTimeout = timeout;
+ boolean oldTimeoutESet = timeoutESet;
+ timeout = TIMEOUT_EDEFAULT;
+ timeoutESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT, oldTimeout, TIMEOUT_EDEFAULT,
oldTimeoutESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetTimeout() {
+ return timeoutESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case FileRoutingPackage.HIGH_WATER_MARK__MARK:
+ return new Integer(getMark());
+ case FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ return new Integer(getPollFrequency());
+ case FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT:
+ return new Integer(getTimeout());
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case FileRoutingPackage.HIGH_WATER_MARK__MARK:
+ setMark(((Integer)newValue).intValue());
+ return;
+ case FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ setPollFrequency(((Integer)newValue).intValue());
+ return;
+ case FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT:
+ setTimeout(((Integer)newValue).intValue());
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.HIGH_WATER_MARK__MARK:
+ unsetMark();
+ return;
+ case FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ unsetPollFrequency();
+ return;
+ case FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT:
+ unsetTimeout();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.HIGH_WATER_MARK__MARK:
+ return isSetMark();
+ case FileRoutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ return isSetPollFrequency();
+ case FileRoutingPackage.HIGH_WATER_MARK__TIMEOUT:
+ return isSetTimeout();
+ }
+ 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(" (mark: ");
+ if (markESet) result.append(mark); else result.append("<unset>");
+ result.append(", pollFrequency: ");
+ if (pollFrequencyESet) result.append(pollFrequency); else
result.append("<unset>");
+ result.append(", timeout: ");
+ if (timeoutESet) result.append(timeout); else
result.append("<unset>");
+ result.append(')');
+ return result.toString();
+ }
+
+} //HighWaterMarkImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/HighWaterMarkImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/OutputStreamImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/OutputStreamImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/OutputStreamImpl.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,658 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+import org.jboss.tools.smooks.model.smooks.impl.ElementVisitorImpl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Output
Stream</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getFileNamePattern
<em>File Name Pattern</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getDestinationDirectoryPattern
<em>Destination Directory Pattern</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getListFileNamePattern
<em>List File Name Pattern</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getHighWaterMark
<em>High Water Mark</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getCloseOnCondition
<em>Close On Condition</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getOpenOnElement
<em>Open On Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getOpenOnElementNS
<em>Open On Element NS</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl#getResourceName
<em>Resource Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class OutputStreamImpl extends ElementVisitorImpl implements OutputStream {
+ /**
+ * The default value of the '{@link #getFileNamePattern() <em>File Name
Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFileNamePattern()
+ * @generated
+ * @ordered
+ */
+ protected static final String FILE_NAME_PATTERN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFileNamePattern() <em>File Name
Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFileNamePattern()
+ * @generated
+ * @ordered
+ */
+ protected String fileNamePattern = FILE_NAME_PATTERN_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDestinationDirectoryPattern()
<em>Destination Directory Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDestinationDirectoryPattern()
+ * @generated
+ * @ordered
+ */
+ protected static final String DESTINATION_DIRECTORY_PATTERN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDestinationDirectoryPattern()
<em>Destination Directory Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDestinationDirectoryPattern()
+ * @generated
+ * @ordered
+ */
+ protected String destinationDirectoryPattern = DESTINATION_DIRECTORY_PATTERN_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getListFileNamePattern() <em>List File
Name Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getListFileNamePattern()
+ * @generated
+ * @ordered
+ */
+ protected static final String LIST_FILE_NAME_PATTERN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getListFileNamePattern() <em>List File
Name Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getListFileNamePattern()
+ * @generated
+ * @ordered
+ */
+ protected String listFileNamePattern = LIST_FILE_NAME_PATTERN_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getHighWaterMark() <em>High Water
Mark</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getHighWaterMark()
+ * @generated
+ * @ordered
+ */
+ protected HighWaterMark highWaterMark;
+
+ /**
+ * The default value of the '{@link #getCloseOnCondition() <em>Close On
Condition</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCloseOnCondition()
+ * @generated
+ * @ordered
+ */
+ protected static final String CLOSE_ON_CONDITION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getCloseOnCondition() <em>Close On
Condition</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCloseOnCondition()
+ * @generated
+ * @ordered
+ */
+ protected String closeOnCondition = CLOSE_ON_CONDITION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getEncoding()
<em>Encoding</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEncoding()
+ * @generated
+ * @ordered
+ */
+ protected static final String ENCODING_EDEFAULT = "UTF-8";
+
+ /**
+ * The cached value of the '{@link #getEncoding()
<em>Encoding</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getEncoding()
+ * @generated
+ * @ordered
+ */
+ protected String encoding = ENCODING_EDEFAULT;
+
+ /**
+ * This is true if the Encoding attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean encodingESet;
+
+ /**
+ * The default value of the '{@link #getOpenOnElement() <em>Open On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOpenOnElement()
+ * @generated
+ * @ordered
+ */
+ protected static final String OPEN_ON_ELEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOpenOnElement() <em>Open On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOpenOnElement()
+ * @generated
+ * @ordered
+ */
+ protected String openOnElement = OPEN_ON_ELEMENT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getOpenOnElementNS() <em>Open On Element
NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOpenOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected static final String OPEN_ON_ELEMENT_NS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getOpenOnElementNS() <em>Open On Element
NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getOpenOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected String openOnElementNS = OPEN_ON_ELEMENT_NS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getResourceName() <em>Resource
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResourceName()
+ * @generated
+ * @ordered
+ */
+ protected static final String RESOURCE_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getResourceName() <em>Resource
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResourceName()
+ * @generated
+ * @ordered
+ */
+ protected String resourceName = RESOURCE_NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected OutputStreamImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return FileRoutingPackage.Literals.OUTPUT_STREAM;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFileNamePattern() {
+ return fileNamePattern;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFileNamePattern(String newFileNamePattern) {
+ String oldFileNamePattern = fileNamePattern;
+ fileNamePattern = newFileNamePattern;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN, oldFileNamePattern,
fileNamePattern));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDestinationDirectoryPattern() {
+ return destinationDirectoryPattern;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDestinationDirectoryPattern(String newDestinationDirectoryPattern) {
+ String oldDestinationDirectoryPattern = destinationDirectoryPattern;
+ destinationDirectoryPattern = newDestinationDirectoryPattern;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN,
oldDestinationDirectoryPattern, destinationDirectoryPattern));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getListFileNamePattern() {
+ return listFileNamePattern;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setListFileNamePattern(String newListFileNamePattern) {
+ String oldListFileNamePattern = listFileNamePattern;
+ listFileNamePattern = newListFileNamePattern;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN, oldListFileNamePattern,
listFileNamePattern));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HighWaterMark getHighWaterMark() {
+ return highWaterMark;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetHighWaterMark(HighWaterMark newHighWaterMark,
NotificationChain msgs) {
+ HighWaterMark oldHighWaterMark = highWaterMark;
+ highWaterMark = newHighWaterMark;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK, oldHighWaterMark, newHighWaterMark);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setHighWaterMark(HighWaterMark newHighWaterMark) {
+ if (newHighWaterMark != highWaterMark) {
+ NotificationChain msgs = null;
+ if (highWaterMark != null)
+ msgs = ((InternalEObject)highWaterMark).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK, null, msgs);
+ if (newHighWaterMark != null)
+ msgs = ((InternalEObject)newHighWaterMark).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK, null, msgs);
+ msgs = basicSetHighWaterMark(newHighWaterMark, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK, newHighWaterMark, newHighWaterMark));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getCloseOnCondition() {
+ return closeOnCondition;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCloseOnCondition(String newCloseOnCondition) {
+ String oldCloseOnCondition = closeOnCondition;
+ closeOnCondition = newCloseOnCondition;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION, oldCloseOnCondition,
closeOnCondition));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEncoding() {
+ return encoding;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEncoding(String newEncoding) {
+ String oldEncoding = encoding;
+ encoding = newEncoding;
+ boolean oldEncodingESet = encodingESet;
+ encodingESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.OUTPUT_STREAM__ENCODING, oldEncoding, encoding, !oldEncodingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetEncoding() {
+ String oldEncoding = encoding;
+ boolean oldEncodingESet = encodingESet;
+ encoding = ENCODING_EDEFAULT;
+ encodingESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
FileRoutingPackage.OUTPUT_STREAM__ENCODING, oldEncoding, ENCODING_EDEFAULT,
oldEncodingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetEncoding() {
+ return encodingESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getOpenOnElement() {
+ return openOnElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOpenOnElement(String newOpenOnElement) {
+ String oldOpenOnElement = openOnElement;
+ openOnElement = newOpenOnElement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT, oldOpenOnElement, openOnElement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getOpenOnElementNS() {
+ return openOnElementNS;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setOpenOnElementNS(String newOpenOnElementNS) {
+ String oldOpenOnElementNS = openOnElementNS;
+ openOnElementNS = newOpenOnElementNS;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS, oldOpenOnElementNS,
openOnElementNS));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getResourceName() {
+ return resourceName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setResourceName(String newResourceName) {
+ String oldResourceName = resourceName;
+ resourceName = newResourceName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME, oldResourceName, resourceName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ return basicSetHighWaterMark(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 FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN:
+ return getFileNamePattern();
+ case FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN:
+ return getDestinationDirectoryPattern();
+ case FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN:
+ return getListFileNamePattern();
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ return getHighWaterMark();
+ case FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION:
+ return getCloseOnCondition();
+ case FileRoutingPackage.OUTPUT_STREAM__ENCODING:
+ return getEncoding();
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT:
+ return getOpenOnElement();
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS:
+ return getOpenOnElementNS();
+ case FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME:
+ return getResourceName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN:
+ setFileNamePattern((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN:
+ setDestinationDirectoryPattern((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN:
+ setListFileNamePattern((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ setHighWaterMark((HighWaterMark)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION:
+ setCloseOnCondition((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__ENCODING:
+ setEncoding((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT:
+ setOpenOnElement((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS:
+ setOpenOnElementNS((String)newValue);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME:
+ setResourceName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN:
+ setFileNamePattern(FILE_NAME_PATTERN_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN:
+ setDestinationDirectoryPattern(DESTINATION_DIRECTORY_PATTERN_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN:
+ setListFileNamePattern(LIST_FILE_NAME_PATTERN_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ setHighWaterMark((HighWaterMark)null);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION:
+ setCloseOnCondition(CLOSE_ON_CONDITION_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__ENCODING:
+ unsetEncoding();
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT:
+ setOpenOnElement(OPEN_ON_ELEMENT_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS:
+ setOpenOnElementNS(OPEN_ON_ELEMENT_NS_EDEFAULT);
+ return;
+ case FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME:
+ setResourceName(RESOURCE_NAME_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case FileRoutingPackage.OUTPUT_STREAM__FILE_NAME_PATTERN:
+ return FILE_NAME_PATTERN_EDEFAULT == null ? fileNamePattern != null :
!FILE_NAME_PATTERN_EDEFAULT.equals(fileNamePattern);
+ case FileRoutingPackage.OUTPUT_STREAM__DESTINATION_DIRECTORY_PATTERN:
+ return DESTINATION_DIRECTORY_PATTERN_EDEFAULT == null ? destinationDirectoryPattern
!= null : !DESTINATION_DIRECTORY_PATTERN_EDEFAULT.equals(destinationDirectoryPattern);
+ case FileRoutingPackage.OUTPUT_STREAM__LIST_FILE_NAME_PATTERN:
+ return LIST_FILE_NAME_PATTERN_EDEFAULT == null ? listFileNamePattern != null :
!LIST_FILE_NAME_PATTERN_EDEFAULT.equals(listFileNamePattern);
+ case FileRoutingPackage.OUTPUT_STREAM__HIGH_WATER_MARK:
+ return highWaterMark != null;
+ case FileRoutingPackage.OUTPUT_STREAM__CLOSE_ON_CONDITION:
+ return CLOSE_ON_CONDITION_EDEFAULT == null ? closeOnCondition != null :
!CLOSE_ON_CONDITION_EDEFAULT.equals(closeOnCondition);
+ case FileRoutingPackage.OUTPUT_STREAM__ENCODING:
+ return isSetEncoding();
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT:
+ return OPEN_ON_ELEMENT_EDEFAULT == null ? openOnElement != null :
!OPEN_ON_ELEMENT_EDEFAULT.equals(openOnElement);
+ case FileRoutingPackage.OUTPUT_STREAM__OPEN_ON_ELEMENT_NS:
+ return OPEN_ON_ELEMENT_NS_EDEFAULT == null ? openOnElementNS != null :
!OPEN_ON_ELEMENT_NS_EDEFAULT.equals(openOnElementNS);
+ case FileRoutingPackage.OUTPUT_STREAM__RESOURCE_NAME:
+ return RESOURCE_NAME_EDEFAULT == null ? resourceName != null :
!RESOURCE_NAME_EDEFAULT.equals(resourceName);
+ }
+ 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(" (fileNamePattern: ");
+ result.append(fileNamePattern);
+ result.append(", destinationDirectoryPattern: ");
+ result.append(destinationDirectoryPattern);
+ result.append(", listFileNamePattern: ");
+ result.append(listFileNamePattern);
+ result.append(", closeOnCondition: ");
+ result.append(closeOnCondition);
+ result.append(", encoding: ");
+ if (encodingESet) result.append(encoding); else
result.append("<unset>");
+ result.append(", openOnElement: ");
+ result.append(openOnElement);
+ result.append(", openOnElementNS: ");
+ result.append(openOnElementNS);
+ result.append(", resourceName: ");
+ result.append(resourceName);
+ result.append(')');
+ return result.toString();
+ }
+
+} //OutputStreamImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/impl/OutputStreamImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingAdapterFactory.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,237 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.xml.type.AnyType;
+import org.jboss.tools.smooks.model.common.AbstractAnyType;
+import org.jboss.tools.smooks.model.fileRouting.DocumentRoot;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+
+/**
+ * <!-- 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.fileRouting.FileRoutingPackage
+ * @generated
+ */
+public class FileRoutingAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static FileRoutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = FileRoutingPackage.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 FileRoutingSwitch<Adapter> modelSwitch =
+ new FileRoutingSwitch<Adapter>() {
+ @Override
+ public Adapter caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseHighWaterMark(HighWaterMark object) {
+ return createHighWaterMarkAdapter();
+ }
+ @Override
+ public Adapter caseOutputStream(OutputStream object) {
+ return createOutputStreamAdapter();
+ }
+ @Override
+ public Adapter caseAnyType(AnyType object) {
+ return createAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractAnyType(AbstractAnyType object) {
+ return createAbstractAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) {
+ return createAbstractResourceConfigAdapter();
+ }
+ @Override
+ public Adapter caseElementVisitor(ElementVisitor object) {
+ return createElementVisitorAdapter();
+ }
+ @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.fileRouting.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.fileRouting.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.fileRouting.HighWaterMark <em>High Water
Mark</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.fileRouting.HighWaterMark
+ * @generated
+ */
+ public Adapter createHighWaterMarkAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.fileRouting.OutputStream <em>Output
Stream</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.fileRouting.OutputStream
+ * @generated
+ */
+ public Adapter createOutputStreamAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.eclipse.emf.ecore.xml.type.AnyType <em>Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.emf.ecore.xml.type.AnyType
+ * @generated
+ */
+ public Adapter createAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link common.AbstractAnyType
<em>Abstract Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see common.AbstractAnyType
+ * @generated
+ */
+ public Adapter createAbstractAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
smooks.AbstractResourceConfig <em>Abstract Resource Config</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.AbstractResourceConfig
+ * @generated
+ */
+ public Adapter createAbstractResourceConfigAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link smooks.ElementVisitor
<em>Element Visitor</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.ElementVisitor
+ * @generated
+ */
+ public Adapter createElementVisitorAdapter() {
+ 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;
+ }
+
+} //FileRoutingAdapterFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceFactoryImpl.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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.fileRouting.util.FileRoutingResourceImpl
+ * @generated
+ */
+public class FileRoutingResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new FileRoutingResourceImpl(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;
+ }
+
+} //FileRoutingResourceFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceImpl.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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.fileRouting.util.FileRoutingResourceFactoryImpl
+ * @generated
+ */
+public class FileRoutingResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public FileRoutingResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //FileRoutingResourceImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingSwitch.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingSwitch.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingSwitch.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,243 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.util;
+
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.xml.type.AnyType;
+import org.jboss.tools.smooks.model.common.AbstractAnyType;
+import org.jboss.tools.smooks.model.fileRouting.DocumentRoot;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.HighWaterMark;
+import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+
+/**
+ * <!-- 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.fileRouting.FileRoutingPackage
+ * @generated
+ */
+public class FileRoutingSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static FileRoutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingSwitch() {
+ if (modelPackage == null) {
+ modelPackage = FileRoutingPackage.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 FileRoutingPackage.DOCUMENT_ROOT: {
+ DocumentRoot documentRoot = (DocumentRoot)theEObject;
+ T result = caseDocumentRoot(documentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FileRoutingPackage.HIGH_WATER_MARK: {
+ HighWaterMark highWaterMark = (HighWaterMark)theEObject;
+ T result = caseHighWaterMark(highWaterMark);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case FileRoutingPackage.OUTPUT_STREAM: {
+ OutputStream outputStream = (OutputStream)theEObject;
+ T result = caseOutputStream(outputStream);
+ if (result == null) result = caseElementVisitor(outputStream);
+ if (result == null) result = caseAbstractResourceConfig(outputStream);
+ if (result == null) result = caseAbstractAnyType(outputStream);
+ if (result == null) result = caseAnyType(outputStream);
+ 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>High
Water Mark</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>High
Water Mark</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHighWaterMark(HighWaterMark object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Output
Stream</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>Output
Stream</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOutputStream(OutputStream object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAnyType(AnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractAnyType(AbstractAnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Resource Config</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Resource Config</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractResourceConfig(AbstractResourceConfig object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Element Visitor</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>Element Visitor</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseElementVisitor(ElementVisitor 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;
+ }
+
+} //FileRoutingSwitch
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingXMLProcessor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingXMLProcessor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingXMLProcessor.java 2009-04-09
06:08:29 UTC (rev 14619)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.fileRouting.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.fileRouting.FileRoutingPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class FileRoutingXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FileRoutingXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ FileRoutingPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the
FileRoutingResourceFactoryImpl 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 FileRoutingResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new FileRoutingResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //FileRoutingXMLProcessor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/util/FileRoutingXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain