Author: DartPeng
Date: 2009-04-14 06:33:00 -0400 (Tue, 14 Apr 2009)
New Revision: 14733
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateCsvDocumentRoot_reader_CsvReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateIODocumentRoot_router_IORouter.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsDocumentRoot_router_JmsRouter.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_connection_Connection.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_highWaterMark_HighWaterMark.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_jndi_Jndi.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_message_Message.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_session_Session.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJsonDocumentRoot_reader_JsonReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJsonReader_keyMap_KeyMap.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_CsvReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_JsonReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_CsvReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_IORouter.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_JmsRouter.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_JsonReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/CsvDocumentRoot.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/CsvReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/IODocumentRoot.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/IORouter.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JmsDocumentRoot.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JmsRouter.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JsonDocumentRoot.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JsonReader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvDocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvReader.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvDocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvReaderImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/Csv1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvDocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvReaderItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvValidator.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvXMLProcessor.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IODocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IORouter.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IoroutingFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IoroutingPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IODocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IORouterImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IoroutingFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IoroutingPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IODocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IORouterItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/Iorouting1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IoroutingItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingXMLProcessor.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/AcknowledgeMode.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Connection.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/DeliveryMode.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/HighWaterMark.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsDocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsRouter.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Jndi.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Message.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/MessageType.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Session.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/ConnectionImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/HighWaterMarkImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsDocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsRouterImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JndiImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/MessageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/SessionImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/ConnectionItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/HighWaterMarkItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsDocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsRouterItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/Jmsrouting1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsroutingItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JndiItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/MessageItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/SessionItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingXMLProcessor.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonDocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonReader.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/Key.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/KeyMap.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonDocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonReaderImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/KeyImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/KeyMapImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/Json1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonDocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonReaderItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/KeyItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/KeyMapItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonXMLProcessor.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CsvReaderUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ExecutorUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ResultSetRowSelectorUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ResultSetUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edireader/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edireader/EDIReaderUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/iorouting/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/iorouting/IORouterUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/ConnectionUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/HighWaterMarkUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JmsRouterUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JndiUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/MessageUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/SessionUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/JsonReaderUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/KeyMapUICreator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/KeyUICreator.java
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java
Log:
JBIDE-4171
refact some codes
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateCsvDocumentRoot_reader_CsvReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateCsvDocumentRoot_reader_CsvReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateIODocumentRoot_router_IORouter.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateIODocumentRoot_router_IORouter.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsDocumentRoot_router_JmsRouter.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsDocumentRoot_router_JmsRouter.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_connection_Connection.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_connection_Connection.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_highWaterMark_HighWaterMark.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_highWaterMark_HighWaterMark.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_jndi_Jndi.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_jndi_Jndi.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_message_Message.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_message_Message.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_session_Session.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJmsRouter_session_Session.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJsonDocumentRoot_reader_JsonReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJsonDocumentRoot_reader_JsonReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJsonReader_keyMap_KeyMap.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateJsonReader_keyMap_KeyMap.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_CsvReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_CsvReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_JsonReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_JsonReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_CsvReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_CsvReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_IORouter.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_IORouter.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_JmsRouter.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_JmsRouter.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_JsonReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_JsonReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/CsvDocumentRoot.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/CsvDocumentRoot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/CsvReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/CsvReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/IODocumentRoot.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/IODocumentRoot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/IORouter.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/IORouter.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JmsDocumentRoot.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JmsDocumentRoot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JmsRouter.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JmsRouter.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JsonDocumentRoot.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JsonDocumentRoot.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JsonReader.gif
===================================================================
(Binary files differ)
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/JsonReader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.ecore 2009-04-14
09:58:00 UTC (rev 14732)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.ecore 2009-04-14
10:33:00 UTC (rev 14733)
@@ -13,7 +13,7 @@
<details key="length" value="1"/>
</eAnnotations>
</eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eClassifiers xsi:type="ecore:EClass"
name="CsvDocumentRoot">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value=""/>
<details key="kind" value="mixed"/>
@@ -42,7 +42,7 @@
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="reader"
upperBound="-2"
- eType="#//Reader" volatile="true" transient="true"
derived="true" containment="true"
+ eType="#//CsvReader" volatile="true"
transient="true" derived="true" containment="true"
resolveProxies="false">
<eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="

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

		"/>
@@ -55,7 +55,7 @@
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Reader"
eSuperTypes="smooks-1.1.ecore#//AbstractReader">
+ <eClassifiers xsi:type="ecore:EClass" name="CsvReader"
eSuperTypes="smooks-1.1.ecore#//AbstractReader">
<eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="CSV Reader"/>
</eAnnotations>
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.ecore 2009-04-14
09:58:00 UTC (rev 14732)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.ecore 2009-04-14
10:33:00 UTC (rev 14733)
@@ -6,7 +6,7 @@
<eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Smooks IO Routing
Configuration"/>
</eAnnotations>
- <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eClassifiers xsi:type="ecore:EClass" name="IODocumentRoot">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value=""/>
<details key="kind" value="mixed"/>
@@ -35,7 +35,7 @@
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="router"
upperBound="-2"
- eType="#//Router" volatile="true" transient="true"
derived="true" containment="true"
+ eType="#//IORouter" volatile="true"
transient="true" derived="true" containment="true"
resolveProxies="false">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
@@ -45,7 +45,7 @@
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Router"
eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
+ <eClassifiers xsi:type="ecore:EClass" name="IORouter"
eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
<eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="

			Output stream router
 		"/>
</eAnnotations>
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.ecore
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.ecore 2009-04-14
09:58:00 UTC (rev 14732)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.ecore 2009-04-14
10:33:00 UTC (rev 14733)
@@ -96,7 +96,7 @@
<details key="baseType" value="deliveryMode"/>
</eAnnotations>
</eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eClassifiers xsi:type="ecore:EClass"
name="JmsDocumentRoot">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value=""/>
<details key="kind" value="mixed"/>
@@ -125,7 +125,7 @@
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="router"
upperBound="-2"
- eType="#//Router" volatile="true" transient="true"
derived="true" containment="true"
+ eType="#//JmsRouter" volatile="true"
transient="true" derived="true" containment="true"
resolveProxies="false">
<eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="
	
			JMS router configuration

			The JMS router routes messages to a JMS destination (Queue or
Topic).
 			The message payload is created from a bean
out of the bean context. It is possible
 			to send
Text or Object messages. The correlation id can be generated out of a FreeMarker

			template.
	 		"/>
@@ -304,7 +304,7 @@
<details key="baseType" value="messageType"/>
</eAnnotations>
</eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Router"
eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
+ <eClassifiers xsi:type="ecore:EClass" name="JmsRouter"
eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
<eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="

			JMS Router
 		"/>
</eAnnotations>
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.ecore 2009-04-14
09:58:00 UTC (rev 14732)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.ecore 2009-04-14
10:33:00 UTC (rev 14733)
@@ -6,7 +6,7 @@
<eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="Smooks JSON Reader
Configuration"/>
</eAnnotations>
- <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eClassifiers xsi:type="ecore:EClass"
name="JsonDocumentRoot">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value=""/>
<details key="kind" value="mixed"/>
@@ -35,7 +35,7 @@
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="reader"
upperBound="-2"
- eType="#//Reader" volatile="true" transient="true"
derived="true" containment="true"
+ eType="#//JsonReader" volatile="true"
transient="true" derived="true" containment="true"
resolveProxies="false">
<eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="

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

		"/>
@@ -95,7 +95,7 @@
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Reader"
eSuperTypes="smooks-1.1.ecore#//AbstractReader">
+ <eClassifiers xsi:type="ecore:EClass" name="JsonReader"
eSuperTypes="smooks-1.1.ecore#//AbstractReader">
<eAnnotations
source="http://www.eclipse.org/emf/2002/GenModel">
<details key="documentation" value="JSON Reader"/>
</eAnnotations>
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-04-14 09:58:00
UTC (rev 14732)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-04-14 10:33:00
UTC (rev 14733)
@@ -245,15 +245,18 @@
_UI_OutputStream_type = Output Stream
# CSV
-_UI_CSV_Reader_type = CSV Reader
+_UI_CsvDocumentRoot_type = Document Root
+_UI_CsvReader_type = CSV Reader
+_UI_CsvDocumentRoot_mixed_feature = Mixed
+_UI_CsvDocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
+_UI_CsvDocumentRoot_xSISchemaLocation_feature = XSI Schema Location
+_UI_CsvDocumentRoot_reader_feature = Reader
+_UI_CsvReader_encoding_feature = Encoding
+_UI_CsvReader_fields_feature = Fields
+_UI_CsvReader_quote_feature = Quote
+_UI_CsvReader_separator_feature = Separator
+_UI_CsvReader_skipLines_feature = Skip Lines
-_UI_DocumentRoot_reader_feature = Reader
-_UI_Reader_encoding_feature = Encoding
-_UI_Reader_fields_feature = Fields
-_UI_Reader_quote_feature = Quote
-_UI_Reader_separator_feature = Separator
-_UI_Reader_skipLines_feature = Skip Lines
-
# DB routing
_UI_Executor_type = Executor
@@ -282,29 +285,37 @@
_UI_ResultSetScopeType_APPLICATION_literal = APPLICATION
# IO routing
-_UI_IO_Router_type = IO Router
+_UI_IODocumentRoot_type = IO Document Root
+_UI_IORouter_type = IO Router
-_UI_DocumentRoot_router_feature = Router
-_UI_Router_beanId_feature = Bean Id
-_UI_Router_encoding_feature = Encoding
-_UI_Router_executeBefore_feature = Execute Before
-_UI_Router_resourceName_feature = Resource Name
-_UI_Router_routeOnElement_feature = Route On Element
-_UI_Router_routeOnElementNS_feature = Route On Element NS
+_UI_IODocumentRoot_mixed_feature = Mixed
+_UI_IODocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
+_UI_IODocumentRoot_xSISchemaLocation_feature = XSI Schema Location
+_UI_IODocumentRoot_router_feature = Router
+_UI_IORouter_beanId_feature = Bean Id
+_UI_IORouter_encoding_feature = Encoding
+_UI_IORouter_executeBefore_feature = Execute Before
+_UI_IORouter_resourceName_feature = Resource Name
+_UI_IORouter_routeOnElement_feature = Route On Element
+_UI_IORouter_routeOnElementNS_feature = Route On Element NS
# JMS routing
_UI_Connection_type = Connection
+_UI_JmsDocumentRoot_type = Jms Document Root
_UI_HighWaterMark_type = High Water Mark
_UI_Jndi_type = Jndi
_UI_Message_type = Message
-_UI_JMS_Router_type = JMS Router
+_UI_JmsRouter_type = Jms Router
_UI_Session_type = Session
_UI_Connection_factory_feature = Factory
_UI_Connection_securityCredential_feature = Security Credential
_UI_Connection_securityPrincipal_feature = Security Principal
-_UI_DocumentRoot_router_feature = Router
+_UI_JmsDocumentRoot_mixed_feature = Mixed
+_UI_JmsDocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
+_UI_JmsDocumentRoot_xSISchemaLocation_feature = XSI Schema Location
+_UI_JmsDocumentRoot_router_feature = Router
_UI_HighWaterMark_mark_feature = Mark
_UI_HighWaterMark_pollFrequency_feature = Poll Frequency
_UI_HighWaterMark_timeout_feature = Timeout
@@ -316,16 +327,16 @@
_UI_Message_priority_feature = Priority
_UI_Message_timeToLive_feature = Time To Live
_UI_Message_type_feature = Type
-_UI_Router_message_feature = Message
-_UI_Router_connection_feature = Connection
-_UI_Router_session_feature = Session
-_UI_Router_jndi_feature = Jndi
-_UI_Router_highWaterMark_feature = High Water Mark
-_UI_Router_beanId_feature = Bean Id
-_UI_Router_destination_feature = Destination
-_UI_Router_executeBefore_feature = Execute Before
-_UI_Router_routeOnElement_feature = Route On Element
-_UI_Router_routeOnElementNS_feature = Route On Element NS
+_UI_JmsRouter_message_feature = Message
+_UI_JmsRouter_connection_feature = Connection
+_UI_JmsRouter_session_feature = Session
+_UI_JmsRouter_jndi_feature = Jndi
+_UI_JmsRouter_highWaterMark_feature = High Water Mark
+_UI_JmsRouter_beanId_feature = Bean Id
+_UI_JmsRouter_destination_feature = Destination
+_UI_JmsRouter_executeBefore_feature = Execute Before
+_UI_JmsRouter_routeOnElement_feature = Route On Element
+_UI_JmsRouter_routeOnElementNS_feature = Route On Element NS
_UI_Session_acknowledgeMode_feature = Acknowledge Mode
_UI_Session_transacted_feature = Transacted
@@ -338,24 +349,30 @@
_UI_MessageType_ObjectMessage_literal = ObjectMessage
_UI_MessageType_MapMessage_literal = MapMessage
+
# JSON
+_UI_JsonDocumentRoot_type = Document Root
_UI_Key_type = Key
_UI_KeyMap_type = Key Map
-_UI_Json_Reader_type = Json Reader
-_UI_DocumentRoot_reader_feature = Reader
+_UI_JsonReader_type =Json Reader
+
+_UI_JsonDocumentRoot_mixed_feature = Mixed
+_UI_JsonDocumentRoot_xMLNSPrefixMap_feature = XMLNS Prefix Map
+_UI_JsonDocumentRoot_xSISchemaLocation_feature = XSI Schema Location
+_UI_JsonDocumentRoot_reader_feature = Reader
_UI_Key_value_feature = Value
_UI_Key_from_feature = From
_UI_Key_to_feature = To
_UI_KeyMap_key_feature = Key
_UI_JsonReader_keyMap_feature = Key Map
-_UI_Reader_arrayElementName_feature = Array Element Name
-_UI_Reader_encoding_feature = Encoding
-_UI_Reader_illegalElementNameCharReplacement_feature = Illegal Element Name Char
Replacement
-_UI_Reader_keyPrefixOnNumeric_feature = Key Prefix On Numeric
-_UI_Reader_keyWhitspaceReplacement_feature = Key Whitspace Replacement
-_UI_Reader_nullValueReplacement_feature = Null Value Replacement
-_UI_Reader_rootName_feature = Root Name
+_UI_JsonReader_arrayElementName_feature = Array Element Name
+_UI_JsonReader_encoding_feature = Encoding
+_UI_JsonReader_illegalElementNameCharReplacement_feature = Illegal Element Name Char
Replacement
+_UI_JsonReader_keyPrefixOnNumeric_feature = Key Prefix On Numeric
+_UI_JsonReader_keyWhitspaceReplacement_feature = Key Whitspace Replacement
+_UI_JsonReader_nullValueReplacement_feature = Null Value Replacement
+_UI_JsonReader_rootName_feature = Root Name
# EDI Reader
_UI_EDIDocumentRoot_type = EDI Document Root
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvDocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvDocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvDocumentRoot.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,118 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv;
+
+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.csv.CsvDocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getXSISchemaLocation <em>XSI Schema
Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getReader
<em>Reader</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface CsvDocumentRoot 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.csv.CsvPackage#getCsvDocumentRoot_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.csv.CsvPackage#getCsvDocumentRoot_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.csv.CsvPackage#getCsvDocumentRoot_XSISchemaLocation()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>Reader</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * CSV Reader Configuration
+ * The CSV reader reads and validates a CSV stream and converts it to SAX events
that Smooks
+ * can process.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Reader</em>' containment
reference.
+ * @see #setReader(CsvReader)
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvDocumentRoot_Reader()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='reader'
namespace='##targetNamespace'
affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader&...
+ * @generated
+ */
+ CsvReader getReader();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getReader
<em>Reader</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Reader</em>' containment
reference.
+ * @see #getReader()
+ * @generated
+ */
+ void setReader(CsvReader value);
+
+} // CsvDocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvDocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,55 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv;
+
+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.csv.CsvPackage
+ * @generated
+ */
+public interface CsvFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ CsvFactory eINSTANCE = org.jboss.tools.smooks.model.csv.impl.CsvFactoryImpl.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
+ */
+ CsvDocumentRoot createCsvDocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>Reader</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Reader</em>'.
+ * @generated
+ */
+ CsvReader createCsvReader();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ CsvPackage getCsvPackage();
+
+} //CsvFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvPackage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvPackage.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvPackage.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,490 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+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 CSV Reader Configuration
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.csv.CsvFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface CsvPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "csv";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.milyn.org/xsd/smooks/csv-1.1.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "cvs";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ CsvPackage eINSTANCE = org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getCsvDocumentRoot()
+ * @generated
+ */
+ int CSV_DOCUMENT_ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_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 CSV_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 CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Reader</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_DOCUMENT_ROOT__READER = 3;
+
+ /**
+ * The number of structural features of the '<em>Document Root</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl <em>Reader</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getCsvReader()
+ * @generated
+ */
+ int CSV_READER = 1;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_READER__MIXED = SmooksPackage.ABSTRACT_READER__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_READER__ANY = SmooksPackage.ABSTRACT_READER__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_READER__ANY_ATTRIBUTE = SmooksPackage.ABSTRACT_READER__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Target
Profile</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_READER__TARGET_PROFILE = SmooksPackage.ABSTRACT_READER__TARGET_PROFILE;
+
+ /**
+ * The feature id for the '<em><b>Encoding</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_READER__ENCODING = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Fields</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_READER__FIELDS = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Quote</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_READER__QUOTE = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Separator</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_READER__SEPARATOR = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Skip Lines</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_READER__SKIP_LINES = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 4;
+
+ /**
+ * The number of structural features of the '<em>Reader</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CSV_READER_FEATURE_COUNT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 5;
+
+ /**
+ * The meta object id for the '<em>Char</em>' data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see java.lang.String
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getChar()
+ * @generated
+ */
+ int CHAR = 2;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.csv.CsvDocumentRoot <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.csv.CsvDocumentRoot
+ * @generated
+ */
+ EClass getCsvDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.csv.CsvDocumentRoot#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.csv.CsvDocumentRoot#getMixed()
+ * @see #getCsvDocumentRoot()
+ * @generated
+ */
+ EAttribute getCsvDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.csv.CsvDocumentRoot#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.csv.CsvDocumentRoot#getXMLNSPrefixMap()
+ * @see #getCsvDocumentRoot()
+ * @generated
+ */
+ EReference getCsvDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.csv.CsvDocumentRoot#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.csv.CsvDocumentRoot#getXSISchemaLocation()
+ * @see #getCsvDocumentRoot()
+ * @generated
+ */
+ EReference getCsvDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getReader
<em>Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Reader</em>'.
+ * @see org.jboss.tools.smooks.model.csv.CsvDocumentRoot#getReader()
+ * @see #getCsvDocumentRoot()
+ * @generated
+ */
+ EReference getCsvDocumentRoot_Reader();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.csv.CsvReader <em>Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Reader</em>'.
+ * @see org.jboss.tools.smooks.model.csv.CsvReader
+ * @generated
+ */
+ EClass getCsvReader();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.csv.CsvReader#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.csv.CsvReader#getEncoding()
+ * @see #getCsvReader()
+ * @generated
+ */
+ EAttribute getCsvReader_Encoding();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getFields <em>Fields</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Fields</em>'.
+ * @see org.jboss.tools.smooks.model.csv.CsvReader#getFields()
+ * @see #getCsvReader()
+ * @generated
+ */
+ EAttribute getCsvReader_Fields();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getQuote <em>Quote</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Quote</em>'.
+ * @see org.jboss.tools.smooks.model.csv.CsvReader#getQuote()
+ * @see #getCsvReader()
+ * @generated
+ */
+ EAttribute getCsvReader_Quote();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getSeparator
<em>Separator</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Separator</em>'.
+ * @see org.jboss.tools.smooks.model.csv.CsvReader#getSeparator()
+ * @see #getCsvReader()
+ * @generated
+ */
+ EAttribute getCsvReader_Separator();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines <em>Skip
Lines</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Skip Lines</em>'.
+ * @see org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines()
+ * @see #getCsvReader()
+ * @generated
+ */
+ EAttribute getCsvReader_SkipLines();
+
+ /**
+ * Returns the meta object for data type '{@link java.lang.String
<em>Char</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for data type '<em>Char</em>'.
+ * @see java.lang.String
+ * @model instanceClass="java.lang.String"
+ * extendedMetaData="name='char'
baseType='http://www.eclipse.org/emf/2003/XMLType#string'
length='1'"
+ * @generated
+ */
+ EDataType getChar();
+
+ /**
+ * 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
+ */
+ CsvFactory getCsvFactory();
+
+ /**
+ * <!-- 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.csv.impl.CsvDocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getCsvDocumentRoot()
+ * @generated
+ */
+ EClass CSV_DOCUMENT_ROOT = eINSTANCE.getCsvDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CSV_DOCUMENT_ROOT__MIXED = eINSTANCE.getCsvDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getCsvDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getCsvDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Reader</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference CSV_DOCUMENT_ROOT__READER = eINSTANCE.getCsvDocumentRoot_Reader();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl <em>Reader</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getCsvReader()
+ * @generated
+ */
+ EClass CSV_READER = eINSTANCE.getCsvReader();
+
+ /**
+ * The meta object literal for the
'<em><b>Encoding</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CSV_READER__ENCODING = eINSTANCE.getCsvReader_Encoding();
+
+ /**
+ * The meta object literal for the
'<em><b>Fields</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CSV_READER__FIELDS = eINSTANCE.getCsvReader_Fields();
+
+ /**
+ * The meta object literal for the
'<em><b>Quote</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CSV_READER__QUOTE = eINSTANCE.getCsvReader_Quote();
+
+ /**
+ * The meta object literal for the
'<em><b>Separator</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CSV_READER__SEPARATOR = eINSTANCE.getCsvReader_Separator();
+
+ /**
+ * The meta object literal for the '<em><b>Skip
Lines</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CSV_READER__SKIP_LINES = eINSTANCE.getCsvReader_SkipLines();
+
+ /**
+ * The meta object literal for the '<em>Char</em>' data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see java.lang.String
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getChar()
+ * @generated
+ */
+ EDataType CHAR = eINSTANCE.getChar();
+
+ }
+
+} //CsvPackage
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvReader.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvReader.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvReader.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,290 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv;
+
+import java.math.BigInteger;
+
+import org.jboss.tools.smooks.model.smooks.AbstractReader;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object
'<em><b>Reader</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * CSV Reader
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.csv.CsvReader#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.CsvReader#getFields
<em>Fields</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.CsvReader#getQuote
<em>Quote</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.CsvReader#getSeparator
<em>Separator</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines
<em>Skip Lines</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader()
+ * @model extendedMetaData="name='reader' kind='empty'"
+ * @generated
+ */
+public interface CsvReader extends AbstractReader {
+ /**
+ * Returns the value of the '<em><b>Encoding</b></em>'
attribute.
+ * The default value is <code>"UTF-8"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The encoding of the input stream. Default of '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.csv.CsvPackage#getCsvReader_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.csv.CsvReader#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.csv.CsvReader#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.csv.CsvReader#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>Fields</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * Comma separated list of CSV record field names
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Fields</em>' attribute.
+ * @see #setFields(String)
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader_Fields()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='fields'"
+ * @generated
+ */
+ String getFields();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getFields <em>Fields</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Fields</em>' attribute.
+ * @see #getFields()
+ * @generated
+ */
+ void setFields(String value);
+
+ /**
+ * Returns the value of the '<em><b>Quote</b></em>'
attribute.
+ * The default value is <code>"\""</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * Quote character. Default of '"'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Quote</em>' attribute.
+ * @see #isSetQuote()
+ * @see #unsetQuote()
+ * @see #setQuote(String)
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader_Quote()
+ * @model default="\"" unsettable="true"
dataType="csv.Char"
+ * extendedMetaData="kind='attribute' name='quote'"
+ * @generated
+ */
+ String getQuote();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.csv.CsvReader#getQuote
<em>Quote</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Quote</em>' attribute.
+ * @see #isSetQuote()
+ * @see #unsetQuote()
+ * @see #getQuote()
+ * @generated
+ */
+ void setQuote(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getQuote <em>Quote</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetQuote()
+ * @see #getQuote()
+ * @see #setQuote(String)
+ * @generated
+ */
+ void unsetQuote();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getQuote <em>Quote</em>}'
attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Quote</em>' attribute is
set.
+ * @see #unsetQuote()
+ * @see #getQuote()
+ * @see #setQuote(String)
+ * @generated
+ */
+ boolean isSetQuote();
+
+ /**
+ * Returns the value of the '<em><b>Separator</b></em>'
attribute.
+ * The default value is <code>","</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * Field separator character. Default of ','.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Separator</em>' attribute.
+ * @see #isSetSeparator()
+ * @see #unsetSeparator()
+ * @see #setSeparator(String)
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader_Separator()
+ * @model default="," unsettable="true"
dataType="csv.Char"
+ * extendedMetaData="kind='attribute'
name='separator'"
+ * @generated
+ */
+ String getSeparator();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getSeparator
<em>Separator</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Separator</em>'
attribute.
+ * @see #isSetSeparator()
+ * @see #unsetSeparator()
+ * @see #getSeparator()
+ * @generated
+ */
+ void setSeparator(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getSeparator
<em>Separator</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetSeparator()
+ * @see #getSeparator()
+ * @see #setSeparator(String)
+ * @generated
+ */
+ void unsetSeparator();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getSeparator
<em>Separator</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Separator</em>' attribute
is set.
+ * @see #unsetSeparator()
+ * @see #getSeparator()
+ * @see #setSeparator(String)
+ * @generated
+ */
+ boolean isSetSeparator();
+
+ /**
+ * Returns the value of the '<em><b>Skip Lines</b></em>'
attribute.
+ * The default value is <code>"0"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * Number of lines to skip before processing starts. Default of 0.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Skip Lines</em>' attribute.
+ * @see #isSetSkipLines()
+ * @see #unsetSkipLines()
+ * @see #setSkipLines(BigInteger)
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getCsvReader_SkipLines()
+ * @model default="0" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Integer"
+ * extendedMetaData="kind='attribute'
name='skipLines'"
+ * @generated
+ */
+ BigInteger getSkipLines();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines <em>Skip
Lines</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Skip Lines</em>'
attribute.
+ * @see #isSetSkipLines()
+ * @see #unsetSkipLines()
+ * @see #getSkipLines()
+ * @generated
+ */
+ void setSkipLines(BigInteger value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines <em>Skip
Lines</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetSkipLines()
+ * @see #getSkipLines()
+ * @see #setSkipLines(BigInteger)
+ * @generated
+ */
+ void unsetSkipLines();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.csv.CsvReader#getSkipLines <em>Skip
Lines</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Skip Lines</em>' attribute
is set.
+ * @see #unsetSkipLines()
+ * @see #getSkipLines()
+ * @see #setSkipLines(BigInteger)
+ * @generated
+ */
+ boolean isSetSkipLines();
+
+} // CsvReader
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/CsvReader.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvDocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvDocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvDocumentRootImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,286 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.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.csv.CsvDocumentRoot;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv.CsvReader;
+
+/**
+ * <!-- 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.csv.impl.CsvDocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.CsvDocumentRootImpl#getReader
<em>Reader</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CsvDocumentRootImpl extends EObjectImpl implements CsvDocumentRoot {
+ /**
+ * 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 CsvDocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return CsvPackage.Literals.CSV_DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, CsvPackage.CSV_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, CsvPackage.CSV_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,
CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvReader getReader() {
+ return (CsvReader)getMixed().get(CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER, true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetReader(CsvReader newReader, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER,
newReader, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setReader(CsvReader newReader) {
+ ((FeatureMap.Internal)getMixed()).set(CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER,
newReader);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case CsvPackage.CSV_DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case CsvPackage.CSV_DOCUMENT_ROOT__READER:
+ return basicSetReader(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case CsvPackage.CSV_DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case CsvPackage.CSV_DOCUMENT_ROOT__READER:
+ return getReader();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case CsvPackage.CSV_DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case CsvPackage.CSV_DOCUMENT_ROOT__READER:
+ setReader((CsvReader)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case CsvPackage.CSV_DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case CsvPackage.CSV_DOCUMENT_ROOT__READER:
+ setReader((CsvReader)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case CsvPackage.CSV_DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case CsvPackage.CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case CsvPackage.CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case CsvPackage.CSV_DOCUMENT_ROOT__READER:
+ return getReader() != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (mixed: ");
+ result.append(mixed);
+ result.append(')');
+ return result.toString();
+ }
+
+} //CsvDocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvDocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvFactoryImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,162 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+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.eclipse.emf.ecore.xml.type.XMLTypeFactory;
+import org.eclipse.emf.ecore.xml.type.XMLTypePackage;
+import org.jboss.tools.smooks.model.csv.CsvDocumentRoot;
+import org.jboss.tools.smooks.model.csv.CsvFactory;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv.CsvReader;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CsvFactoryImpl extends EFactoryImpl implements CsvFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static CsvFactory init() {
+ try {
+ CsvFactory theCsvFactory =
(
CsvFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn....);
+ if (theCsvFactory != null) {
+ return theCsvFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new CsvFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case CsvPackage.CSV_DOCUMENT_ROOT: return createCsvDocumentRoot();
+ case CsvPackage.CSV_READER: return createCsvReader();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case CsvPackage.CHAR:
+ return createCharFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" +
eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case CsvPackage.CHAR:
+ return convertCharToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" +
eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvDocumentRoot createCsvDocumentRoot() {
+ CsvDocumentRootImpl csvDocumentRoot = new CsvDocumentRootImpl();
+ return csvDocumentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvReader createCsvReader() {
+ CsvReaderImpl csvReader = new CsvReaderImpl();
+ return csvReader;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String createCharFromString(EDataType eDataType, String initialValue) {
+ return
(String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING,
initialValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertCharToString(EDataType eDataType, Object instanceValue) {
+ return XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING,
instanceValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvPackage getCsvPackage() {
+ return (CsvPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static CsvPackage getPackage() {
+ return CsvPackage.eINSTANCE;
+ }
+
+} //CsvFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvPackageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvPackageImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,453 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EValidator;
+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.csv.CsvDocumentRoot;
+import org.jboss.tools.smooks.model.csv.CsvFactory;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv.CsvReader;
+import org.jboss.tools.smooks.model.csv.util.CsvValidator;
+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 CsvPackageImpl extends EPackageImpl implements CsvPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass csvDocumentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass csvReaderEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EDataType charEDataType = 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.csv.CsvPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private CsvPackageImpl() {
+ super(eNS_URI, CsvFactory.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 CsvPackage init() {
+ if (isInited) return
(CsvPackage)EPackage.Registry.INSTANCE.getEPackage(CsvPackage.eNS_URI);
+
+ // Obtain or create and register package
+ CsvPackageImpl theCsvPackage =
(CsvPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof CsvPackageImpl
? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new CsvPackageImpl());
+
+ 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
+ theCsvPackage.createPackageContents();
+ theSmooksPackage.createPackageContents();
+ theCommonPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theCsvPackage.initializePackageContents();
+ theSmooksPackage.initializePackageContents();
+ theCommonPackage.initializePackageContents();
+
+ // Register package validator
+ EValidator.Registry.INSTANCE.put
+ (theCsvPackage,
+ new EValidator.Descriptor() {
+ public EValidator getEValidator() {
+ return CsvValidator.INSTANCE;
+ }
+ });
+
+ // Mark meta-data to indicate it can't be changed
+ theCsvPackage.freeze();
+
+ return theCsvPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCsvDocumentRoot() {
+ return csvDocumentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCsvDocumentRoot_Mixed() {
+ return (EAttribute)csvDocumentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCsvDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)csvDocumentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCsvDocumentRoot_XSISchemaLocation() {
+ return (EReference)csvDocumentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getCsvDocumentRoot_Reader() {
+ return (EReference)csvDocumentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getCsvReader() {
+ return csvReaderEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCsvReader_Encoding() {
+ return (EAttribute)csvReaderEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCsvReader_Fields() {
+ return (EAttribute)csvReaderEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCsvReader_Quote() {
+ return (EAttribute)csvReaderEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCsvReader_Separator() {
+ return (EAttribute)csvReaderEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getCsvReader_SkipLines() {
+ return (EAttribute)csvReaderEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDataType getChar() {
+ return charEDataType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvFactory getCsvFactory() {
+ return (CsvFactory)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
+ csvDocumentRootEClass = createEClass(CSV_DOCUMENT_ROOT);
+ createEAttribute(csvDocumentRootEClass, CSV_DOCUMENT_ROOT__MIXED);
+ createEReference(csvDocumentRootEClass, CSV_DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(csvDocumentRootEClass, CSV_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(csvDocumentRootEClass, CSV_DOCUMENT_ROOT__READER);
+
+ csvReaderEClass = createEClass(CSV_READER);
+ createEAttribute(csvReaderEClass, CSV_READER__ENCODING);
+ createEAttribute(csvReaderEClass, CSV_READER__FIELDS);
+ createEAttribute(csvReaderEClass, CSV_READER__QUOTE);
+ createEAttribute(csvReaderEClass, CSV_READER__SEPARATOR);
+ createEAttribute(csvReaderEClass, CSV_READER__SKIP_LINES);
+
+ // Create data types
+ charEDataType = createEDataType(CHAR);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ SmooksPackage theSmooksPackage =
(SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI);
+ XMLTypePackage theXMLTypePackage =
(XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ csvReaderEClass.getESuperTypes().add(theSmooksPackage.getAbstractReader());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(csvDocumentRootEClass, CsvDocumentRoot.class, "CsvDocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getCsvDocumentRoot_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(getCsvDocumentRoot_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(getCsvDocumentRoot_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(getCsvDocumentRoot_Reader(), this.getCsvReader(), null,
"reader", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE,
IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+ initEClass(csvReaderEClass, CsvReader.class, "CsvReader", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getCsvReader_Encoding(), theXMLTypePackage.getString(),
"encoding", "UTF-8", 0, 1, CsvReader.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCsvReader_Fields(), theXMLTypePackage.getString(),
"fields", null, 0, 1, CsvReader.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCsvReader_Quote(), this.getChar(), "quote",
"\"", 0, 1, CsvReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCsvReader_Separator(), this.getChar(), "separator",
",", 0, 1, CsvReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getCsvReader_SkipLines(), theXMLTypePackage.getInteger(),
"skipLines", "0", 0, 1, CsvReader.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Initialize data types
+ initEDataType(charEDataType, String.class, "Char", IS_SERIALIZABLE,
!IS_GENERATED_INSTANCE_CLASS);
+
+ // 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
+ (charEDataType,
+ source,
+ new String[] {
+ "name", "char",
+ "baseType", "http://www.eclipse.org/emf/2003/XMLType#string",
+ "length", "1"
+ });
+ addAnnotation
+ (csvDocumentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getCsvDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getCsvDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getCsvDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getCsvDocumentRoot_Reader(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "reader",
+ "namespace", "##targetNamespace",
+ "affiliation",
"http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader"
+ });
+ addAnnotation
+ (csvReaderEClass,
+ source,
+ new String[] {
+ "name", "reader",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getCsvReader_Encoding(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "encoding"
+ });
+ addAnnotation
+ (getCsvReader_Fields(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "fields"
+ });
+ addAnnotation
+ (getCsvReader_Quote(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "quote"
+ });
+ addAnnotation
+ (getCsvReader_Separator(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "separator"
+ });
+ addAnnotation
+ (getCsvReader_SkipLines(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "skipLines"
+ });
+ }
+
+} //CsvPackageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvReaderImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvReaderImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvReaderImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,519 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.impl;
+
+import java.math.BigInteger;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv.CsvReader;
+import org.jboss.tools.smooks.model.smooks.impl.AbstractReaderImpl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object
'<em><b>Reader</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl#getFields
<em>Fields</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl#getQuote
<em>Quote</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl#getSeparator
<em>Separator</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl#getSkipLines
<em>Skip Lines</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class CsvReaderImpl extends AbstractReaderImpl implements CsvReader {
+ /**
+ * 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 #getFields() <em>Fields</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFields()
+ * @generated
+ * @ordered
+ */
+ protected static final String FIELDS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFields() <em>Fields</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFields()
+ * @generated
+ * @ordered
+ */
+ protected String fields = FIELDS_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getQuote() <em>Quote</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getQuote()
+ * @generated
+ * @ordered
+ */
+ protected static final String QUOTE_EDEFAULT = "\"";
+
+ /**
+ * The cached value of the '{@link #getQuote() <em>Quote</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getQuote()
+ * @generated
+ * @ordered
+ */
+ protected String quote = QUOTE_EDEFAULT;
+
+ /**
+ * This is true if the Quote attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean quoteESet;
+
+ /**
+ * The default value of the '{@link #getSeparator()
<em>Separator</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSeparator()
+ * @generated
+ * @ordered
+ */
+ protected static final String SEPARATOR_EDEFAULT = ",";
+
+ /**
+ * The cached value of the '{@link #getSeparator()
<em>Separator</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSeparator()
+ * @generated
+ * @ordered
+ */
+ protected String separator = SEPARATOR_EDEFAULT;
+
+ /**
+ * This is true if the Separator attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean separatorESet;
+
+ /**
+ * The default value of the '{@link #getSkipLines() <em>Skip
Lines</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSkipLines()
+ * @generated
+ * @ordered
+ */
+ protected static final BigInteger SKIP_LINES_EDEFAULT = new BigInteger("0");
+
+ /**
+ * The cached value of the '{@link #getSkipLines() <em>Skip
Lines</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSkipLines()
+ * @generated
+ * @ordered
+ */
+ protected BigInteger skipLines = SKIP_LINES_EDEFAULT;
+
+ /**
+ * This is true if the Skip Lines attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean skipLinesESet;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CsvReaderImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return CsvPackage.Literals.CSV_READER;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getEncoding() {
+ return encoding;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setEncoding(String newEncoding) {
+ String oldEncoding = encoding;
+ encoding = newEncoding;
+ boolean oldEncodingESet = encodingESet;
+ encodingESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CsvPackage.CSV_READER__ENCODING,
oldEncoding, encoding, !oldEncodingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetEncoding() {
+ String oldEncoding = encoding;
+ boolean oldEncodingESet = encodingESet;
+ encoding = ENCODING_EDEFAULT;
+ encodingESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
CsvPackage.CSV_READER__ENCODING, oldEncoding, ENCODING_EDEFAULT, oldEncodingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetEncoding() {
+ return encodingESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFields() {
+ return fields;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFields(String newFields) {
+ String oldFields = fields;
+ fields = newFields;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CsvPackage.CSV_READER__FIELDS,
oldFields, fields));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getQuote() {
+ return quote;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setQuote(String newQuote) {
+ String oldQuote = quote;
+ quote = newQuote;
+ boolean oldQuoteESet = quoteESet;
+ quoteESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, CsvPackage.CSV_READER__QUOTE,
oldQuote, quote, !oldQuoteESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetQuote() {
+ String oldQuote = quote;
+ boolean oldQuoteESet = quoteESet;
+ quote = QUOTE_EDEFAULT;
+ quoteESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, CsvPackage.CSV_READER__QUOTE,
oldQuote, QUOTE_EDEFAULT, oldQuoteESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetQuote() {
+ return quoteESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getSeparator() {
+ return separator;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSeparator(String newSeparator) {
+ String oldSeparator = separator;
+ separator = newSeparator;
+ boolean oldSeparatorESet = separatorESet;
+ separatorESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
CsvPackage.CSV_READER__SEPARATOR, oldSeparator, separator, !oldSeparatorESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetSeparator() {
+ String oldSeparator = separator;
+ boolean oldSeparatorESet = separatorESet;
+ separator = SEPARATOR_EDEFAULT;
+ separatorESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
CsvPackage.CSV_READER__SEPARATOR, oldSeparator, SEPARATOR_EDEFAULT, oldSeparatorESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetSeparator() {
+ return separatorESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public BigInteger getSkipLines() {
+ return skipLines;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSkipLines(BigInteger newSkipLines) {
+ BigInteger oldSkipLines = skipLines;
+ skipLines = newSkipLines;
+ boolean oldSkipLinesESet = skipLinesESet;
+ skipLinesESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
CsvPackage.CSV_READER__SKIP_LINES, oldSkipLines, skipLines, !oldSkipLinesESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetSkipLines() {
+ BigInteger oldSkipLines = skipLines;
+ boolean oldSkipLinesESet = skipLinesESet;
+ skipLines = SKIP_LINES_EDEFAULT;
+ skipLinesESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
CsvPackage.CSV_READER__SKIP_LINES, oldSkipLines, SKIP_LINES_EDEFAULT, oldSkipLinesESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetSkipLines() {
+ return skipLinesESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case CsvPackage.CSV_READER__ENCODING:
+ return getEncoding();
+ case CsvPackage.CSV_READER__FIELDS:
+ return getFields();
+ case CsvPackage.CSV_READER__QUOTE:
+ return getQuote();
+ case CsvPackage.CSV_READER__SEPARATOR:
+ return getSeparator();
+ case CsvPackage.CSV_READER__SKIP_LINES:
+ return getSkipLines();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case CsvPackage.CSV_READER__ENCODING:
+ setEncoding((String)newValue);
+ return;
+ case CsvPackage.CSV_READER__FIELDS:
+ setFields((String)newValue);
+ return;
+ case CsvPackage.CSV_READER__QUOTE:
+ setQuote((String)newValue);
+ return;
+ case CsvPackage.CSV_READER__SEPARATOR:
+ setSeparator((String)newValue);
+ return;
+ case CsvPackage.CSV_READER__SKIP_LINES:
+ setSkipLines((BigInteger)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case CsvPackage.CSV_READER__ENCODING:
+ unsetEncoding();
+ return;
+ case CsvPackage.CSV_READER__FIELDS:
+ setFields(FIELDS_EDEFAULT);
+ return;
+ case CsvPackage.CSV_READER__QUOTE:
+ unsetQuote();
+ return;
+ case CsvPackage.CSV_READER__SEPARATOR:
+ unsetSeparator();
+ return;
+ case CsvPackage.CSV_READER__SKIP_LINES:
+ unsetSkipLines();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case CsvPackage.CSV_READER__ENCODING:
+ return isSetEncoding();
+ case CsvPackage.CSV_READER__FIELDS:
+ return FIELDS_EDEFAULT == null ? fields != null : !FIELDS_EDEFAULT.equals(fields);
+ case CsvPackage.CSV_READER__QUOTE:
+ return isSetQuote();
+ case CsvPackage.CSV_READER__SEPARATOR:
+ return isSetSeparator();
+ case CsvPackage.CSV_READER__SKIP_LINES:
+ return isSetSkipLines();
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (encoding: ");
+ if (encodingESet) result.append(encoding); else
result.append("<unset>");
+ result.append(", fields: ");
+ result.append(fields);
+ result.append(", quote: ");
+ if (quoteESet) result.append(quote); else result.append("<unset>");
+ result.append(", separator: ");
+ if (separatorESet) result.append(separator); else
result.append("<unset>");
+ result.append(", skipLines: ");
+ if (skipLinesESet) result.append(skipLines); else
result.append("<unset>");
+ result.append(')');
+ return result.toString();
+ }
+
+} //CsvReaderImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/CsvReaderImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/Csv1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/Csv1EditPlugin.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/Csv1EditPlugin.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,93 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the Csv-1 edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class Csv1EditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final Csv1EditPlugin INSTANCE = new Csv1EditPlugin();
+
+ /**
+ * 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 Csv1EditPlugin() {
+ super
+ (new ResourceLocator [] {
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/Csv1EditPlugin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvDocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvDocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvDocumentRootItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.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.csv.CsvDocumentRoot;
+import org.jboss.tools.smooks.model.csv.CsvFactory;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.csv.CsvDocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CsvDocumentRootItemProvider
+ 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 CsvDocumentRootItemProvider(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(CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use
for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns CsvDocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/CsvDocumentRoot"));
+ }
+
+ /**
+ * 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_CsvDocumentRoot_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(CsvDocumentRoot.class)) {
+ case CsvPackage.CSV_DOCUMENT_ROOT__READER:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER,
+ CsvFactory.eINSTANCE.createCsvReader()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Csv1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvDocumentRootItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvItemProviderAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvItemProviderAdapterFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,226 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.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.csv.util.CsvAdapterFactory;
+
+
+/**
+ * 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 CsvItemProviderAdapterFactory extends CsvAdapterFactory 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 CsvItemProviderAdapterFactory() {
+ 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.csv.CsvDocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CsvDocumentRootItemProvider csvDocumentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.csv.CsvDocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createCsvDocumentRootAdapter() {
+ if (csvDocumentRootItemProvider == null) {
+ csvDocumentRootItemProvider = new CsvDocumentRootItemProvider(this);
+ }
+
+ return csvDocumentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.csv.CsvReader} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CsvReaderItemProvider csvReaderItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.csv.CsvReader}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createCsvReaderAdapter() {
+ if (csvReaderItemProvider == null) {
+ csvReaderItemProvider = new CsvReaderItemProvider(this);
+ }
+
+ return csvReaderItemProvider;
+ }
+
+ /**
+ * 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 (csvDocumentRootItemProvider != null) csvDocumentRootItemProvider.dispose();
+ if (csvReaderItemProvider != null) csvReaderItemProvider.dispose();
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvItemProviderAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvReaderItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvReaderItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvReaderItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,255 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv.CsvReader;
+import org.jboss.tools.smooks.model.smooks.provider.AbstractReaderItemProvider;
+
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.csv.CsvReader} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CsvReaderItemProvider
+ extends AbstractReaderItemProvider
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvReaderItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addEncodingPropertyDescriptor(object);
+ addFieldsPropertyDescriptor(object);
+ addQuotePropertyDescriptor(object);
+ addSeparatorPropertyDescriptor(object);
+ addSkipLinesPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Encoding feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addEncodingPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_CsvReader_encoding_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_CsvReader_encoding_feature", "_UI_CsvReader_type"),
+ CsvPackage.Literals.CSV_READER__ENCODING,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Fields feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addFieldsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_CsvReader_fields_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_CsvReader_fields_feature", "_UI_CsvReader_type"),
+ CsvPackage.Literals.CSV_READER__FIELDS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Quote feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addQuotePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_CsvReader_quote_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_CsvReader_quote_feature", "_UI_CsvReader_type"),
+ CsvPackage.Literals.CSV_READER__QUOTE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Separator feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSeparatorPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_CsvReader_separator_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_CsvReader_separator_feature", "_UI_CsvReader_type"),
+ CsvPackage.Literals.CSV_READER__SEPARATOR,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Skip Lines feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSkipLinesPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_CsvReader_skipLines_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_CsvReader_skipLines_feature", "_UI_CsvReader_type"),
+ CsvPackage.Literals.CSV_READER__SKIP_LINES,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns CsvReader.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/CsvReader"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((CsvReader)object).getTargetProfile();
+ return label == null || label.length() == 0 ?
+ getString("_UI_CsvReader_type") :
+ getString("_UI_CsvReader_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(CsvReader.class)) {
+ case CsvPackage.CSV_READER__ENCODING:
+ case CsvPackage.CSV_READER__FIELDS:
+ case CsvPackage.CSV_READER__QUOTE:
+ case CsvPackage.CSV_READER__SEPARATOR:
+ case CsvPackage.CSV_READER__SKIP_LINES:
+ 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 Csv1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/CsvReaderItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvAdapterFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,218 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.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.csv.CsvDocumentRoot;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv.CsvReader;
+import org.jboss.tools.smooks.model.smooks.AbstractReader;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the
model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage
+ * @generated
+ */
+public class CsvAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static CsvPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = CsvPackage.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 CsvSwitch<Adapter> modelSwitch =
+ new CsvSwitch<Adapter>() {
+ @Override
+ public Adapter caseCsvDocumentRoot(CsvDocumentRoot object) {
+ return createCsvDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseCsvReader(CsvReader object) {
+ return createCsvReaderAdapter();
+ }
+ @Override
+ public Adapter caseAnyType(AnyType object) {
+ return createAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractAnyType(AbstractAnyType object) {
+ return createAbstractAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) {
+ return createAbstractResourceConfigAdapter();
+ }
+ @Override
+ public Adapter caseAbstractReader(AbstractReader object) {
+ return createAbstractReaderAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.csv.CsvDocumentRoot <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.csv.CsvDocumentRoot
+ * @generated
+ */
+ public Adapter createCsvDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.csv.CsvReader <em>Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.csv.CsvReader
+ * @generated
+ */
+ public Adapter createCsvReaderAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.eclipse.emf.ecore.xml.type.AnyType <em>Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.emf.ecore.xml.type.AnyType
+ * @generated
+ */
+ public Adapter createAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link common.AbstractAnyType
<em>Abstract Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see common.AbstractAnyType
+ * @generated
+ */
+ public Adapter createAbstractAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
smooks.AbstractResourceConfig <em>Abstract Resource Config</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.AbstractResourceConfig
+ * @generated
+ */
+ public Adapter createAbstractResourceConfigAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link smooks.AbstractReader
<em>Abstract Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.AbstractReader
+ * @generated
+ */
+ public Adapter createAbstractReaderAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //CsvAdapterFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvResourceFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvResourceFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvResourceFactoryImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.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.csv.util.CsvResourceImpl
+ * @generated
+ */
+public class CsvResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new CsvResourceImpl(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;
+ }
+
+} //CsvResourceFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvResourceImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvResourceImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvResourceImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.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.csv.util.CsvResourceFactoryImpl
+ * @generated
+ */
+public class CsvResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public CsvResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //CsvResourceImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvSwitch.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvSwitch.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvSwitch.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,221 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.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.csv.CsvDocumentRoot;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv.CsvReader;
+import org.jboss.tools.smooks.model.smooks.AbstractReader;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage
+ * @generated
+ */
+public class CsvSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static CsvPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvSwitch() {
+ if (modelPackage == null) {
+ modelPackage = CsvPackage.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 CsvPackage.CSV_DOCUMENT_ROOT: {
+ CsvDocumentRoot csvDocumentRoot = (CsvDocumentRoot)theEObject;
+ T result = caseCsvDocumentRoot(csvDocumentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CsvPackage.CSV_READER: {
+ CsvReader csvReader = (CsvReader)theEObject;
+ T result = caseCsvReader(csvReader);
+ if (result == null) result = caseAbstractReader(csvReader);
+ if (result == null) result = caseAbstractResourceConfig(csvReader);
+ if (result == null) result = caseAbstractAnyType(csvReader);
+ if (result == null) result = caseAnyType(csvReader);
+ 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 caseCsvDocumentRoot(CsvDocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Reader</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Reader</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseCsvReader(CsvReader object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAnyType(AnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractAnyType(AbstractAnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Resource Config</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Resource Config</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractResourceConfig(AbstractResourceConfig object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Reader</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Reader</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractReader(AbstractReader object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case
anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //CsvSwitch
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvValidator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvValidator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvValidator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,184 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.util;
+
+import java.util.Map;
+
+import org.eclipse.emf.common.util.DiagnosticChain;
+import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.util.EObjectValidator;
+import org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator;
+import org.jboss.tools.smooks.model.csv.CsvDocumentRoot;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv.CsvReader;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Validator</b> for the model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage
+ * @generated
+ */
+public class CsvValidator extends EObjectValidator {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final CsvValidator INSTANCE = new CsvValidator();
+
+ /**
+ * A constant for the {@link org.eclipse.emf.common.util.Diagnostic#getSource() source}
of diagnostic {@link org.eclipse.emf.common.util.Diagnostic#getCode() codes} from this
package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.common.util.Diagnostic#getSource()
+ * @see org.eclipse.emf.common.util.Diagnostic#getCode()
+ * @generated
+ */
+ public static final String DIAGNOSTIC_SOURCE = "csv";
+
+ /**
+ * A constant with a fixed name that can be used as the base value for additional hand
written constants.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0;
+
+ /**
+ * A constant with a fixed name that can be used as the base value for additional hand
written constants in a derived class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT;
+
+ /**
+ * The cached base package validator.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected XMLTypeValidator xmlTypeValidator;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvValidator() {
+ super();
+ xmlTypeValidator = XMLTypeValidator.INSTANCE;
+ }
+
+ /**
+ * Returns the package of this validator switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EPackage getEPackage() {
+ return CsvPackage.eINSTANCE;
+ }
+
+ /**
+ * Calls <code>validateXXX</code> for the corresponding classifier of the
model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics,
Map<Object, Object> context) {
+ switch (classifierID) {
+ case CsvPackage.CSV_DOCUMENT_ROOT:
+ return validateCsvDocumentRoot((CsvDocumentRoot)value, diagnostics, context);
+ case CsvPackage.CSV_READER:
+ return validateCsvReader((CsvReader)value, diagnostics, context);
+ case CsvPackage.CHAR:
+ return validateChar((String)value, diagnostics, context);
+ default:
+ return true;
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean validateCsvDocumentRoot(CsvDocumentRoot csvDocumentRoot, DiagnosticChain
diagnostics, Map<Object, Object> context) {
+ return validate_EveryDefaultConstraint(csvDocumentRoot, diagnostics, context);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean validateCsvReader(CsvReader csvReader, DiagnosticChain diagnostics,
Map<Object, Object> context) {
+ return validate_EveryDefaultConstraint(csvReader, diagnostics, context);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean validateChar(String char_, DiagnosticChain diagnostics, Map<Object,
Object> context) {
+ boolean result = validateChar_MinLength(char_, diagnostics, context);
+ if (result || diagnostics != null) result &= validateChar_MaxLength(char_,
diagnostics, context);
+ return result;
+ }
+
+ /**
+ * Validates the MinLength constraint of '<em>Char</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean validateChar_MinLength(String char_, DiagnosticChain diagnostics,
Map<Object, Object> context) {
+ int length = char_.length();
+ boolean result = length >= 1;
+ if (!result && diagnostics != null)
+ reportMinLengthViolation(CsvPackage.Literals.CHAR, char_, length, 1, diagnostics,
context);
+ return result;
+ }
+
+ /**
+ * Validates the MaxLength constraint of '<em>Char</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean validateChar_MaxLength(String char_, DiagnosticChain diagnostics,
Map<Object, Object> context) {
+ int length = char_.length();
+ boolean result = length <= 1;
+ if (!result && diagnostics != null)
+ reportMaxLengthViolation(CsvPackage.Literals.CHAR, char_, length, 1, diagnostics,
context);
+ return result;
+ }
+
+ /**
+ * Returns the resource locator that will be used to fetch messages for this
validator's diagnostics.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ // TODO
+ // Specialize this to return a resource locator for messages specific to this
validator.
+ // Ensure that you remove @generated or mark it @generated NOT
+ return super.getResourceLocator();
+ }
+
+} //CsvValidator
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvXMLProcessor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvXMLProcessor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvXMLProcessor.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.csv.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.csv.CsvPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class CsvXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public CsvXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ CsvPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the
CsvResourceFactoryImpl 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 CsvResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new CsvResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //CsvXMLProcessor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/util/CsvXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IODocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IODocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IODocumentRoot.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,115 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting;
+
+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>IO Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.IODocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.IODocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.IODocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.IODocumentRoot#getRouter
<em>Router</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getIODocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface IODocumentRoot 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.iorouting.IoroutingPackage#getIODocumentRoot_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.iorouting.IoroutingPackage#getIODocumentRoot_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.iorouting.IoroutingPackage#getIODocumentRoot_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>Router</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Router</em>' containment reference
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Router</em>' containment
reference.
+ * @see #setRouter(IORouter)
+ * @see
org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getIODocumentRoot_Router()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='router'
namespace='##targetNamespace'
affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resourc...
+ * @generated
+ */
+ IORouter getRouter();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.iorouting.IODocumentRoot#getRouter
<em>Router</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Router</em>' containment
reference.
+ * @see #getRouter()
+ * @generated
+ */
+ void setRouter(IORouter value);
+
+} // IODocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IODocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IORouter.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IORouter.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IORouter.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,263 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting;
+
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>IO
Router</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * Output stream router
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.IORouter#getBeanId
<em>Bean Id</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.IORouter#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.IORouter#isExecuteBefore
<em>Execute Before</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.IORouter#getResourceName
<em>Resource Name</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.IORouter#getRouteOnElement
<em>Route On Element</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.IORouter#getRouteOnElementNS
<em>Route On Element NS</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getIORouter()
+ * @model extendedMetaData="name='router' kind='elementOnly'"
+ * @generated
+ */
+public interface IORouter extends ElementVisitor {
+ /**
+ * Returns the value of the '<em><b>Bean Id</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The beanId of the bean from the bean context to be written to the
OutputStream.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Bean Id</em>' attribute.
+ * @see #setBeanId(String)
+ * @see org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getIORouter_BeanId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute' name='beanId'"
+ * @generated
+ */
+ String getBeanId();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#getBeanId <em>Bean
Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Bean Id</em>' attribute.
+ * @see #getBeanId()
+ * @generated
+ */
+ void setBeanId(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 used when writing characters to the stream. 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.iorouting.IoroutingPackage#getIORouter_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.iorouting.IORouter#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.iorouting.IORouter#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.iorouting.IORouter#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>Execute
Before</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * If the routing is done before or after the selected element. Default is
'false'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Execute Before</em>' attribute.
+ * @see #isSetExecuteBefore()
+ * @see #unsetExecuteBefore()
+ * @see #setExecuteBefore(boolean)
+ * @see
org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getIORouter_ExecuteBefore()
+ * @model default="false" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Boolean"
+ * extendedMetaData="kind='attribute'
name='executeBefore'"
+ * @generated
+ */
+ boolean isExecuteBefore();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#isExecuteBefore <em>Execute
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Execute Before</em>'
attribute.
+ * @see #isSetExecuteBefore()
+ * @see #unsetExecuteBefore()
+ * @see #isExecuteBefore()
+ * @generated
+ */
+ void setExecuteBefore(boolean value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#isExecuteBefore <em>Execute
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetExecuteBefore()
+ * @see #isExecuteBefore()
+ * @see #setExecuteBefore(boolean)
+ * @generated
+ */
+ void unsetExecuteBefore();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#isExecuteBefore <em>Execute
Before</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Execute Before</em>'
attribute is set.
+ * @see #unsetExecuteBefore()
+ * @see #isExecuteBefore()
+ * @see #setExecuteBefore(boolean)
+ * @generated
+ */
+ boolean isSetExecuteBefore();
+
+ /**
+ * Returns the value of the '<em><b>Resource
Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The resource name of the AbstractOutputStreamResource the bean should be
routed to.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Resource Name</em>' attribute.
+ * @see #setResourceName(String)
+ * @see
org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getIORouter_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.iorouting.IORouter#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);
+
+ /**
+ * Returns the value of the '<em><b>Route On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The element to route on.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Route On Element</em>' attribute.
+ * @see #setRouteOnElement(String)
+ * @see
org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getIORouter_RouteOnElement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='routeOnElement'"
+ * @generated
+ */
+ String getRouteOnElement();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#getRouteOnElement <em>Route On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Route On Element</em>'
attribute.
+ * @see #getRouteOnElement()
+ * @generated
+ */
+ void setRouteOnElement(String value);
+
+ /**
+ * Returns the value of the '<em><b>Route On Element
NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The namespace of the routeOnElement element.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Route On Element NS</em>'
attribute.
+ * @see #setRouteOnElementNS(String)
+ * @see
org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getIORouter_RouteOnElementNS()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='routeOnElementNS'"
+ * @generated
+ */
+ String getRouteOnElementNS();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#getRouteOnElementNS <em>Route On
Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Route On Element NS</em>'
attribute.
+ * @see #getRouteOnElementNS()
+ * @generated
+ */
+ void setRouteOnElementNS(String value);
+
+} // IORouter
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IORouter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IoroutingFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IoroutingFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IoroutingFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,55 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting;
+
+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.iorouting.IoroutingPackage
+ * @generated
+ */
+public interface IoroutingFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ IoroutingFactory eINSTANCE =
org.jboss.tools.smooks.model.iorouting.impl.IoroutingFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>IO Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>IO Document Root</em>'.
+ * @generated
+ */
+ IODocumentRoot createIODocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>IO Router</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>IO Router</em>'.
+ * @generated
+ */
+ IORouter createIORouter();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ IoroutingPackage getIoroutingPackage();
+
+} //IoroutingFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IoroutingFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IoroutingPackage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IoroutingPackage.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IoroutingPackage.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,494 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting;
+
+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 IO Routing Configuration
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.iorouting.IoroutingFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface IoroutingPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "iorouting";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.milyn.org/xsd/smooks/io-routing-1.1.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "io";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ IoroutingPackage eINSTANCE =
org.jboss.tools.smooks.model.iorouting.impl.IoroutingPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.iorouting.impl.IODocumentRootImpl <em>IO Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.iorouting.impl.IODocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.iorouting.impl.IoroutingPackageImpl#getIODocumentRoot()
+ * @generated
+ */
+ int IO_DOCUMENT_ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_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 IO_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 IO_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Router</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_DOCUMENT_ROOT__ROUTER = 3;
+
+ /**
+ * The number of structural features of the '<em>IO Document
Root</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl <em>IO
Router</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl
+ * @see org.jboss.tools.smooks.model.iorouting.impl.IoroutingPackageImpl#getIORouter()
+ * @generated
+ */
+ int IO_ROUTER = 1;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_ROUTER__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 IO_ROUTER__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 IO_ROUTER__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 IO_ROUTER__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 IO_ROUTER__TARGET_PROFILE = SmooksPackage.ELEMENT_VISITOR__TARGET_PROFILE;
+
+ /**
+ * The feature id for the '<em><b>Bean Id</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_ROUTER__BEAN_ID = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Encoding</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_ROUTER__ENCODING = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Execute
Before</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_ROUTER__EXECUTE_BEFORE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Resource
Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_ROUTER__RESOURCE_NAME = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Route On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_ROUTER__ROUTE_ON_ELEMENT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>Route On Element
NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_ROUTER__ROUTE_ON_ELEMENT_NS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 5;
+
+ /**
+ * The number of structural features of the '<em>IO Router</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int IO_ROUTER_FEATURE_COUNT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 6;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.iorouting.IODocumentRoot <em>IO Document
Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>IO Document Root</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.IODocumentRoot
+ * @generated
+ */
+ EClass getIODocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.iorouting.IODocumentRoot#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.iorouting.IODocumentRoot#getMixed()
+ * @see #getIODocumentRoot()
+ * @generated
+ */
+ EAttribute getIODocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.iorouting.IODocumentRoot#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.iorouting.IODocumentRoot#getXMLNSPrefixMap()
+ * @see #getIODocumentRoot()
+ * @generated
+ */
+ EReference getIODocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.iorouting.IODocumentRoot#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.iorouting.IODocumentRoot#getXSISchemaLocation()
+ * @see #getIODocumentRoot()
+ * @generated
+ */
+ EReference getIODocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.iorouting.IODocumentRoot#getRouter
<em>Router</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Router</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.IODocumentRoot#getRouter()
+ * @see #getIODocumentRoot()
+ * @generated
+ */
+ EReference getIODocumentRoot_Router();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.iorouting.IORouter <em>IO Router</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>IO Router</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.IORouter
+ * @generated
+ */
+ EClass getIORouter();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#getBeanId <em>Bean
Id</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Bean Id</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.IORouter#getBeanId()
+ * @see #getIORouter()
+ * @generated
+ */
+ EAttribute getIORouter_BeanId();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#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.iorouting.IORouter#getEncoding()
+ * @see #getIORouter()
+ * @generated
+ */
+ EAttribute getIORouter_Encoding();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#isExecuteBefore <em>Execute
Before</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Execute
Before</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.IORouter#isExecuteBefore()
+ * @see #getIORouter()
+ * @generated
+ */
+ EAttribute getIORouter_ExecuteBefore();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#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.iorouting.IORouter#getResourceName()
+ * @see #getIORouter()
+ * @generated
+ */
+ EAttribute getIORouter_ResourceName();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#getRouteOnElement <em>Route On
Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Route On
Element</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.IORouter#getRouteOnElement()
+ * @see #getIORouter()
+ * @generated
+ */
+ EAttribute getIORouter_RouteOnElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.IORouter#getRouteOnElementNS <em>Route On
Element NS</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Route On Element
NS</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.IORouter#getRouteOnElementNS()
+ * @see #getIORouter()
+ * @generated
+ */
+ EAttribute getIORouter_RouteOnElementNS();
+
+ /**
+ * 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
+ */
+ IoroutingFactory getIoroutingFactory();
+
+ /**
+ * <!-- 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.iorouting.impl.IODocumentRootImpl <em>IO Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.iorouting.impl.IODocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.iorouting.impl.IoroutingPackageImpl#getIODocumentRoot()
+ * @generated
+ */
+ EClass IO_DOCUMENT_ROOT = eINSTANCE.getIODocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute IO_DOCUMENT_ROOT__MIXED = eINSTANCE.getIODocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference IO_DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getIODocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference IO_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getIODocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Router</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference IO_DOCUMENT_ROOT__ROUTER = eINSTANCE.getIODocumentRoot_Router();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl <em>IO
Router</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl
+ * @see org.jboss.tools.smooks.model.iorouting.impl.IoroutingPackageImpl#getIORouter()
+ * @generated
+ */
+ EClass IO_ROUTER = eINSTANCE.getIORouter();
+
+ /**
+ * The meta object literal for the '<em><b>Bean
Id</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute IO_ROUTER__BEAN_ID = eINSTANCE.getIORouter_BeanId();
+
+ /**
+ * The meta object literal for the
'<em><b>Encoding</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute IO_ROUTER__ENCODING = eINSTANCE.getIORouter_Encoding();
+
+ /**
+ * The meta object literal for the '<em><b>Execute
Before</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute IO_ROUTER__EXECUTE_BEFORE = eINSTANCE.getIORouter_ExecuteBefore();
+
+ /**
+ * The meta object literal for the '<em><b>Resource
Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute IO_ROUTER__RESOURCE_NAME = eINSTANCE.getIORouter_ResourceName();
+
+ /**
+ * The meta object literal for the '<em><b>Route On
Element</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute IO_ROUTER__ROUTE_ON_ELEMENT = eINSTANCE.getIORouter_RouteOnElement();
+
+ /**
+ * The meta object literal for the '<em><b>Route On Element
NS</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute IO_ROUTER__ROUTE_ON_ELEMENT_NS = eINSTANCE.getIORouter_RouteOnElementNS();
+
+ }
+
+} //IoroutingPackage
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/IoroutingPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IODocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IODocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IODocumentRootImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,286 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.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.iorouting.IODocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IORouter;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>IO Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.IODocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.IODocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.IODocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.IODocumentRootImpl#getRouter
<em>Router</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class IODocumentRootImpl extends EObjectImpl implements IODocumentRoot {
+ /**
+ * 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 IODocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return IoroutingPackage.Literals.IO_DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, IoroutingPackage.IO_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,
IoroutingPackage.IO_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,
IoroutingPackage.IO_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IORouter getRouter() {
+ return (IORouter)getMixed().get(IoroutingPackage.Literals.IO_DOCUMENT_ROOT__ROUTER,
true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetRouter(IORouter newRouter, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(IoroutingPackage.Literals.IO_DOCUMENT_ROOT__ROUTER,
newRouter, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouter(IORouter newRouter) {
+ ((FeatureMap.Internal)getMixed()).set(IoroutingPackage.Literals.IO_DOCUMENT_ROOT__ROUTER,
newRouter);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case IoroutingPackage.IO_DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case IoroutingPackage.IO_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case IoroutingPackage.IO_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case IoroutingPackage.IO_DOCUMENT_ROOT__ROUTER:
+ return basicSetRouter(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 IoroutingPackage.IO_DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case IoroutingPackage.IO_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case IoroutingPackage.IO_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case IoroutingPackage.IO_DOCUMENT_ROOT__ROUTER:
+ return getRouter();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case IoroutingPackage.IO_DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case IoroutingPackage.IO_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case IoroutingPackage.IO_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case IoroutingPackage.IO_DOCUMENT_ROOT__ROUTER:
+ setRouter((IORouter)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case IoroutingPackage.IO_DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case IoroutingPackage.IO_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case IoroutingPackage.IO_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case IoroutingPackage.IO_DOCUMENT_ROOT__ROUTER:
+ setRouter((IORouter)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case IoroutingPackage.IO_DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case IoroutingPackage.IO_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case IoroutingPackage.IO_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case IoroutingPackage.IO_DOCUMENT_ROOT__ROUTER:
+ return getRouter() != 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();
+ }
+
+} //IODocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IODocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IORouterImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IORouterImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IORouterImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,503 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.impl;
+
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.jboss.tools.smooks.model.iorouting.IORouter;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+import org.jboss.tools.smooks.model.smooks.impl.ElementVisitorImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>IO
Router</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl#getBeanId
<em>Bean Id</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl#isExecuteBefore <em>Execute
Before</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl#getResourceName
<em>Resource Name</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl#getRouteOnElement <em>Route
On Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl#getRouteOnElementNS
<em>Route On Element NS</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class IORouterImpl extends ElementVisitorImpl implements IORouter {
+ /**
+ * The default value of the '{@link #getBeanId() <em>Bean Id</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBeanId()
+ * @generated
+ * @ordered
+ */
+ protected static final String BEAN_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBeanId() <em>Bean Id</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBeanId()
+ * @generated
+ * @ordered
+ */
+ protected String beanId = BEAN_ID_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 #isExecuteBefore() <em>Execute
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isExecuteBefore()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean EXECUTE_BEFORE_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isExecuteBefore() <em>Execute
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isExecuteBefore()
+ * @generated
+ * @ordered
+ */
+ protected boolean executeBefore = EXECUTE_BEFORE_EDEFAULT;
+
+ /**
+ * This is true if the Execute Before attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean executeBeforeESet;
+
+ /**
+ * 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;
+
+ /**
+ * The default value of the '{@link #getRouteOnElement() <em>Route On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElement()
+ * @generated
+ * @ordered
+ */
+ protected static final String ROUTE_ON_ELEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRouteOnElement() <em>Route On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElement()
+ * @generated
+ * @ordered
+ */
+ protected String routeOnElement = ROUTE_ON_ELEMENT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getRouteOnElementNS() <em>Route On
Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected static final String ROUTE_ON_ELEMENT_NS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRouteOnElementNS() <em>Route On Element
NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected String routeOnElementNS = ROUTE_ON_ELEMENT_NS_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IORouterImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return IoroutingPackage.Literals.IO_ROUTER;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBeanId() {
+ return beanId;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBeanId(String newBeanId) {
+ String oldBeanId = beanId;
+ beanId = newBeanId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
IoroutingPackage.IO_ROUTER__BEAN_ID, oldBeanId, beanId));
+ }
+
+ /**
+ * <!-- 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,
IoroutingPackage.IO_ROUTER__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,
IoroutingPackage.IO_ROUTER__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 boolean isExecuteBefore() {
+ return executeBefore;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setExecuteBefore(boolean newExecuteBefore) {
+ boolean oldExecuteBefore = executeBefore;
+ executeBefore = newExecuteBefore;
+ boolean oldExecuteBeforeESet = executeBeforeESet;
+ executeBeforeESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
IoroutingPackage.IO_ROUTER__EXECUTE_BEFORE, oldExecuteBefore, executeBefore,
!oldExecuteBeforeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetExecuteBefore() {
+ boolean oldExecuteBefore = executeBefore;
+ boolean oldExecuteBeforeESet = executeBeforeESet;
+ executeBefore = EXECUTE_BEFORE_EDEFAULT;
+ executeBeforeESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
IoroutingPackage.IO_ROUTER__EXECUTE_BEFORE, oldExecuteBefore, EXECUTE_BEFORE_EDEFAULT,
oldExecuteBeforeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetExecuteBefore() {
+ return executeBeforeESet;
+ }
+
+ /**
+ * <!-- 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,
IoroutingPackage.IO_ROUTER__RESOURCE_NAME, oldResourceName, resourceName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRouteOnElement() {
+ return routeOnElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouteOnElement(String newRouteOnElement) {
+ String oldRouteOnElement = routeOnElement;
+ routeOnElement = newRouteOnElement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT, oldRouteOnElement, routeOnElement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRouteOnElementNS() {
+ return routeOnElementNS;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouteOnElementNS(String newRouteOnElementNS) {
+ String oldRouteOnElementNS = routeOnElementNS;
+ routeOnElementNS = newRouteOnElementNS;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT_NS, oldRouteOnElementNS, routeOnElementNS));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case IoroutingPackage.IO_ROUTER__BEAN_ID:
+ return getBeanId();
+ case IoroutingPackage.IO_ROUTER__ENCODING:
+ return getEncoding();
+ case IoroutingPackage.IO_ROUTER__EXECUTE_BEFORE:
+ return isExecuteBefore() ? Boolean.TRUE : Boolean.FALSE;
+ case IoroutingPackage.IO_ROUTER__RESOURCE_NAME:
+ return getResourceName();
+ case IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT:
+ return getRouteOnElement();
+ case IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT_NS:
+ return getRouteOnElementNS();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case IoroutingPackage.IO_ROUTER__BEAN_ID:
+ setBeanId((String)newValue);
+ return;
+ case IoroutingPackage.IO_ROUTER__ENCODING:
+ setEncoding((String)newValue);
+ return;
+ case IoroutingPackage.IO_ROUTER__EXECUTE_BEFORE:
+ setExecuteBefore(((Boolean)newValue).booleanValue());
+ return;
+ case IoroutingPackage.IO_ROUTER__RESOURCE_NAME:
+ setResourceName((String)newValue);
+ return;
+ case IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT:
+ setRouteOnElement((String)newValue);
+ return;
+ case IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT_NS:
+ setRouteOnElementNS((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case IoroutingPackage.IO_ROUTER__BEAN_ID:
+ setBeanId(BEAN_ID_EDEFAULT);
+ return;
+ case IoroutingPackage.IO_ROUTER__ENCODING:
+ unsetEncoding();
+ return;
+ case IoroutingPackage.IO_ROUTER__EXECUTE_BEFORE:
+ unsetExecuteBefore();
+ return;
+ case IoroutingPackage.IO_ROUTER__RESOURCE_NAME:
+ setResourceName(RESOURCE_NAME_EDEFAULT);
+ return;
+ case IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT:
+ setRouteOnElement(ROUTE_ON_ELEMENT_EDEFAULT);
+ return;
+ case IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT_NS:
+ setRouteOnElementNS(ROUTE_ON_ELEMENT_NS_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case IoroutingPackage.IO_ROUTER__BEAN_ID:
+ return BEAN_ID_EDEFAULT == null ? beanId != null : !BEAN_ID_EDEFAULT.equals(beanId);
+ case IoroutingPackage.IO_ROUTER__ENCODING:
+ return isSetEncoding();
+ case IoroutingPackage.IO_ROUTER__EXECUTE_BEFORE:
+ return isSetExecuteBefore();
+ case IoroutingPackage.IO_ROUTER__RESOURCE_NAME:
+ return RESOURCE_NAME_EDEFAULT == null ? resourceName != null :
!RESOURCE_NAME_EDEFAULT.equals(resourceName);
+ case IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT:
+ return ROUTE_ON_ELEMENT_EDEFAULT == null ? routeOnElement != null :
!ROUTE_ON_ELEMENT_EDEFAULT.equals(routeOnElement);
+ case IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT_NS:
+ return ROUTE_ON_ELEMENT_NS_EDEFAULT == null ? routeOnElementNS != null :
!ROUTE_ON_ELEMENT_NS_EDEFAULT.equals(routeOnElementNS);
+ }
+ 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(" (beanId: ");
+ result.append(beanId);
+ result.append(", encoding: ");
+ if (encodingESet) result.append(encoding); else
result.append("<unset>");
+ result.append(", executeBefore: ");
+ if (executeBeforeESet) result.append(executeBefore); else
result.append("<unset>");
+ result.append(", resourceName: ");
+ result.append(resourceName);
+ result.append(", routeOnElement: ");
+ result.append(routeOnElement);
+ result.append(", routeOnElementNS: ");
+ result.append(routeOnElementNS);
+ result.append(')');
+ return result.toString();
+ }
+
+} //IORouterImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IORouterImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IoroutingFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IoroutingFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IoroutingFactoryImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,111 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.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.iorouting.IODocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IORouter;
+import org.jboss.tools.smooks.model.iorouting.IoroutingFactory;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class IoroutingFactoryImpl extends EFactoryImpl implements IoroutingFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static IoroutingFactory init() {
+ try {
+ IoroutingFactory theIoroutingFactory =
(
IoroutingFactory)EPackage.Registry.INSTANCE.getEFactory("http://www....);
+ if (theIoroutingFactory != null) {
+ return theIoroutingFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new IoroutingFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IoroutingFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case IoroutingPackage.IO_DOCUMENT_ROOT: return createIODocumentRoot();
+ case IoroutingPackage.IO_ROUTER: return createIORouter();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IODocumentRoot createIODocumentRoot() {
+ IODocumentRootImpl ioDocumentRoot = new IODocumentRootImpl();
+ return ioDocumentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IORouter createIORouter() {
+ IORouterImpl ioRouter = new IORouterImpl();
+ return ioRouter;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IoroutingPackage getIoroutingPackage() {
+ return (IoroutingPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static IoroutingPackage getPackage() {
+ return IoroutingPackage.eINSTANCE;
+ }
+
+} //IoroutingFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IoroutingFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IoroutingPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IoroutingPackageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IoroutingPackageImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,429 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.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.iorouting.IODocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IORouter;
+import org.jboss.tools.smooks.model.iorouting.IoroutingFactory;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+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 IoroutingPackageImpl extends EPackageImpl implements IoroutingPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass ioDocumentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass ioRouterEClass = 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.iorouting.IoroutingPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private IoroutingPackageImpl() {
+ super(eNS_URI, IoroutingFactory.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 IoroutingPackage init() {
+ if (isInited) return
(IoroutingPackage)EPackage.Registry.INSTANCE.getEPackage(IoroutingPackage.eNS_URI);
+
+ // Obtain or create and register package
+ IoroutingPackageImpl theIoroutingPackage =
(IoroutingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof
IoroutingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new
IoroutingPackageImpl());
+
+ 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
+ theIoroutingPackage.createPackageContents();
+ theSmooksPackage.createPackageContents();
+ theCommonPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theIoroutingPackage.initializePackageContents();
+ theSmooksPackage.initializePackageContents();
+ theCommonPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theIoroutingPackage.freeze();
+
+ return theIoroutingPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getIODocumentRoot() {
+ return ioDocumentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getIODocumentRoot_Mixed() {
+ return (EAttribute)ioDocumentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getIODocumentRoot_XMLNSPrefixMap() {
+ return (EReference)ioDocumentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getIODocumentRoot_XSISchemaLocation() {
+ return (EReference)ioDocumentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getIODocumentRoot_Router() {
+ return (EReference)ioDocumentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getIORouter() {
+ return ioRouterEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getIORouter_BeanId() {
+ return (EAttribute)ioRouterEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getIORouter_Encoding() {
+ return (EAttribute)ioRouterEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getIORouter_ExecuteBefore() {
+ return (EAttribute)ioRouterEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getIORouter_ResourceName() {
+ return (EAttribute)ioRouterEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getIORouter_RouteOnElement() {
+ return (EAttribute)ioRouterEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getIORouter_RouteOnElementNS() {
+ return (EAttribute)ioRouterEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IoroutingFactory getIoroutingFactory() {
+ return (IoroutingFactory)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
+ ioDocumentRootEClass = createEClass(IO_DOCUMENT_ROOT);
+ createEAttribute(ioDocumentRootEClass, IO_DOCUMENT_ROOT__MIXED);
+ createEReference(ioDocumentRootEClass, IO_DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(ioDocumentRootEClass, IO_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(ioDocumentRootEClass, IO_DOCUMENT_ROOT__ROUTER);
+
+ ioRouterEClass = createEClass(IO_ROUTER);
+ createEAttribute(ioRouterEClass, IO_ROUTER__BEAN_ID);
+ createEAttribute(ioRouterEClass, IO_ROUTER__ENCODING);
+ createEAttribute(ioRouterEClass, IO_ROUTER__EXECUTE_BEFORE);
+ createEAttribute(ioRouterEClass, IO_ROUTER__RESOURCE_NAME);
+ createEAttribute(ioRouterEClass, IO_ROUTER__ROUTE_ON_ELEMENT);
+ createEAttribute(ioRouterEClass, IO_ROUTER__ROUTE_ON_ELEMENT_NS);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ SmooksPackage theSmooksPackage =
(SmooksPackage)EPackage.Registry.INSTANCE.getEPackage(SmooksPackage.eNS_URI);
+ XMLTypePackage theXMLTypePackage =
(XMLTypePackage)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ ioRouterEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(ioDocumentRootEClass, IODocumentRoot.class, "IODocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getIODocumentRoot_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(getIODocumentRoot_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(getIODocumentRoot_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(getIODocumentRoot_Router(), this.getIORouter(), null,
"router", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE,
IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+ initEClass(ioRouterEClass, IORouter.class, "IORouter", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getIORouter_BeanId(), theXMLTypePackage.getString(), "beanId",
null, 1, 1, IORouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getIORouter_Encoding(), theXMLTypePackage.getString(),
"encoding", "UTF-8", 0, 1, IORouter.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getIORouter_ExecuteBefore(), theXMLTypePackage.getBoolean(),
"executeBefore", "false", 0, 1, IORouter.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getIORouter_ResourceName(), theXMLTypePackage.getString(),
"resourceName", null, 1, 1, IORouter.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getIORouter_RouteOnElement(), theXMLTypePackage.getString(),
"routeOnElement", null, 1, 1, IORouter.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getIORouter_RouteOnElementNS(), theXMLTypePackage.getString(),
"routeOnElementNS", null, 0, 1, IORouter.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
+ (ioDocumentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getIODocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getIODocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getIODocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getIODocumentRoot_Router(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "router",
+ "namespace", "##targetNamespace",
+ "affiliation",
"http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"
+ });
+ addAnnotation
+ (ioRouterEClass,
+ source,
+ new String[] {
+ "name", "router",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getIORouter_BeanId(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "beanId"
+ });
+ addAnnotation
+ (getIORouter_Encoding(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "encoding"
+ });
+ addAnnotation
+ (getIORouter_ExecuteBefore(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "executeBefore"
+ });
+ addAnnotation
+ (getIORouter_ResourceName(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "resourceName"
+ });
+ addAnnotation
+ (getIORouter_RouteOnElement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "routeOnElement"
+ });
+ addAnnotation
+ (getIORouter_RouteOnElementNS(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "routeOnElementNS"
+ });
+ }
+
+} //IoroutingPackageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/IoroutingPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IODocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IODocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IODocumentRootItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.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.iorouting.IODocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IoroutingFactory;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.iorouting.IODocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class IODocumentRootItemProvider
+ 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 IODocumentRootItemProvider(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(IoroutingPackage.Literals.IO_DOCUMENT_ROOT__ROUTER);
+ }
+ 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 IODocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/IODocumentRoot"));
+ }
+
+ /**
+ * 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_IODocumentRoot_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(IODocumentRoot.class)) {
+ case IoroutingPackage.IO_DOCUMENT_ROOT__ROUTER:
+ 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
+ (IoroutingPackage.Literals.IO_DOCUMENT_ROOT__ROUTER,
+ IoroutingFactory.eINSTANCE.createIORouter()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Iorouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IODocumentRootItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IORouterItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IORouterItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IORouterItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,279 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.provider;
+
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.util.ResourceLocator;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+import org.jboss.tools.smooks.model.iorouting.IORouter;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.iorouting.IORouter} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class IORouterItemProvider
+ 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 IORouterItemProvider(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);
+
+ addBeanIdPropertyDescriptor(object);
+ addEncodingPropertyDescriptor(object);
+ addExecuteBeforePropertyDescriptor(object);
+ addResourceNamePropertyDescriptor(object);
+ addRouteOnElementPropertyDescriptor(object);
+ addRouteOnElementNSPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Bean Id feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addBeanIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_IORouter_beanId_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_IORouter_beanId_feature", "_UI_IORouter_type"),
+ IoroutingPackage.Literals.IO_ROUTER__BEAN_ID,
+ 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_IORouter_encoding_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_IORouter_encoding_feature", "_UI_IORouter_type"),
+ IoroutingPackage.Literals.IO_ROUTER__ENCODING,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Execute Before feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addExecuteBeforePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_IORouter_executeBefore_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_IORouter_executeBefore_feature", "_UI_IORouter_type"),
+ IoroutingPackage.Literals.IO_ROUTER__EXECUTE_BEFORE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_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_IORouter_resourceName_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_IORouter_resourceName_feature", "_UI_IORouter_type"),
+ IoroutingPackage.Literals.IO_ROUTER__RESOURCE_NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Route On Element feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addRouteOnElementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_IORouter_routeOnElement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_IORouter_routeOnElement_feature", "_UI_IORouter_type"),
+ IoroutingPackage.Literals.IO_ROUTER__ROUTE_ON_ELEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Route On Element NS feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addRouteOnElementNSPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_IORouter_routeOnElementNS_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_IORouter_routeOnElementNS_feature", "_UI_IORouter_type"),
+ IoroutingPackage.Literals.IO_ROUTER__ROUTE_ON_ELEMENT_NS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns IORouter.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/IORouter"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((IORouter)object).getResourceName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_IORouter_type") :
+ getString("_UI_IORouter_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(IORouter.class)) {
+ case IoroutingPackage.IO_ROUTER__BEAN_ID:
+ case IoroutingPackage.IO_ROUTER__ENCODING:
+ case IoroutingPackage.IO_ROUTER__EXECUTE_BEFORE:
+ case IoroutingPackage.IO_ROUTER__RESOURCE_NAME:
+ case IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT:
+ case IoroutingPackage.IO_ROUTER__ROUTE_ON_ELEMENT_NS:
+ 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 Iorouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IORouterItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/Iorouting1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/Iorouting1EditPlugin.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/Iorouting1EditPlugin.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,93 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the Io-routing-1 edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class Iorouting1EditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final Iorouting1EditPlugin INSTANCE = new Iorouting1EditPlugin();
+
+ /**
+ * 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 Iorouting1EditPlugin() {
+ super
+ (new ResourceLocator [] {
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/Iorouting1EditPlugin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IoroutingItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IoroutingItemProviderAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IoroutingItemProviderAdapterFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,226 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.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.iorouting.util.IoroutingAdapterFactory;
+
+/**
+ * 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 IoroutingItemProviderAdapterFactory extends IoroutingAdapterFactory
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 IoroutingItemProviderAdapterFactory() {
+ 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.iorouting.IODocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IODocumentRootItemProvider ioDocumentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.iorouting.IODocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createIODocumentRootAdapter() {
+ if (ioDocumentRootItemProvider == null) {
+ ioDocumentRootItemProvider = new IODocumentRootItemProvider(this);
+ }
+
+ return ioDocumentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.iorouting.IORouter} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IORouterItemProvider ioRouterItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.iorouting.IORouter}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createIORouterAdapter() {
+ if (ioRouterItemProvider == null) {
+ ioRouterItemProvider = new IORouterItemProvider(this);
+ }
+
+ return ioRouterItemProvider;
+ }
+
+ /**
+ * 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 (ioDocumentRootItemProvider != null) ioDocumentRootItemProvider.dispose();
+ if (ioRouterItemProvider != null) ioRouterItemProvider.dispose();
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/IoroutingItemProviderAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingAdapterFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,218 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.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.iorouting.IODocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IORouter;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+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.iorouting.IoroutingPackage
+ * @generated
+ */
+public class IoroutingAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static IoroutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IoroutingAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = IoroutingPackage.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 IoroutingSwitch<Adapter> modelSwitch =
+ new IoroutingSwitch<Adapter>() {
+ @Override
+ public Adapter caseIODocumentRoot(IODocumentRoot object) {
+ return createIODocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseIORouter(IORouter object) {
+ return createIORouterAdapter();
+ }
+ @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.iorouting.IODocumentRoot <em>IO 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.iorouting.IODocumentRoot
+ * @generated
+ */
+ public Adapter createIODocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.iorouting.IORouter <em>IO Router</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.iorouting.IORouter
+ * @generated
+ */
+ public Adapter createIORouterAdapter() {
+ 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;
+ }
+
+} //IoroutingAdapterFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingResourceFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingResourceFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingResourceFactoryImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.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.iorouting.util.IoroutingResourceImpl
+ * @generated
+ */
+public class IoroutingResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IoroutingResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new IoroutingResourceImpl(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;
+ }
+
+} //IoroutingResourceFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingResourceImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingResourceImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingResourceImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.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.iorouting.util.IoroutingResourceFactoryImpl
+ * @generated
+ */
+public class IoroutingResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public IoroutingResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //IoroutingResourceImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingSwitch.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingSwitch.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingSwitch.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,221 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.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.iorouting.IODocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IORouter;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+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.iorouting.IoroutingPackage
+ * @generated
+ */
+public class IoroutingSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static IoroutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IoroutingSwitch() {
+ if (modelPackage == null) {
+ modelPackage = IoroutingPackage.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 IoroutingPackage.IO_DOCUMENT_ROOT: {
+ IODocumentRoot ioDocumentRoot = (IODocumentRoot)theEObject;
+ T result = caseIODocumentRoot(ioDocumentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case IoroutingPackage.IO_ROUTER: {
+ IORouter ioRouter = (IORouter)theEObject;
+ T result = caseIORouter(ioRouter);
+ if (result == null) result = caseElementVisitor(ioRouter);
+ if (result == null) result = caseAbstractResourceConfig(ioRouter);
+ if (result == null) result = caseAbstractAnyType(ioRouter);
+ if (result == null) result = caseAnyType(ioRouter);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>IO
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>IO
Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIODocumentRoot(IODocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>IO
Router</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>IO
Router</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIORouter(IORouter 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;
+ }
+
+} //IoroutingSwitch
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingXMLProcessor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingXMLProcessor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingXMLProcessor.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.iorouting.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.iorouting.IoroutingPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class IoroutingXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public IoroutingXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ IoroutingPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the
IoroutingResourceFactoryImpl 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 IoroutingResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new IoroutingResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //IoroutingXMLProcessor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/util/IoroutingXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/AcknowledgeMode.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/AcknowledgeMode.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/AcknowledgeMode.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,249 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration
'<em><b>Acknowledge Mode</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The possible JMS acknowledge modes
+ *
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getAcknowledgeMode()
+ * @model extendedMetaData="name='acknowledgeMode'"
+ * @generated
+ */
+public enum AcknowledgeMode implements Enumerator {
+ /**
+ * The '<em><b>AUTOACKNOWLEDGE</b></em>' literal
object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #AUTOACKNOWLEDGE_VALUE
+ * @generated
+ * @ordered
+ */
+ AUTOACKNOWLEDGE(0, "AUTOACKNOWLEDGE", "AUTO_ACKNOWLEDGE"),
+
+ /**
+ * The '<em><b>CLIENTACKNOWLEDGE</b></em>' literal
object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #CLIENTACKNOWLEDGE_VALUE
+ * @generated
+ * @ordered
+ */
+ CLIENTACKNOWLEDGE(1, "CLIENTACKNOWLEDGE", "CLIENT_ACKNOWLEDGE"),
+
+ /**
+ * The '<em><b>DUPSOKACKNOWLEDGE</b></em>' literal
object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #DUPSOKACKNOWLEDGE_VALUE
+ * @generated
+ * @ordered
+ */
+ DUPSOKACKNOWLEDGE(2, "DUPSOKACKNOWLEDGE", "DUPS_OK_ACKNOWLEDGE");
+
+ /**
+ * The '<em><b>AUTOACKNOWLEDGE</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * With this acknowledgement mode, the session automatically acknowledges a
client's receipt of a
+ * message when it has either successfully returned from a call to receive or the
message listener
+ * it has called to process the message successfully returns.
+ *
+ * <!-- end-model-doc -->
+ * @see #AUTOACKNOWLEDGE
+ * @model literal="AUTO_ACKNOWLEDGE"
+ * @generated
+ * @ordered
+ */
+ public static final int AUTOACKNOWLEDGE_VALUE = 0;
+
+ /**
+ * The '<em><b>CLIENTACKNOWLEDGE</b></em>' literal
value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * With this acknowledgement mode, the client acknowledges a message by calling a
message's acknowledge method.
+ *
+ * <!-- end-model-doc -->
+ * @see #CLIENTACKNOWLEDGE
+ * @model literal="CLIENT_ACKNOWLEDGE"
+ * @generated
+ * @ordered
+ */
+ public static final int CLIENTACKNOWLEDGE_VALUE = 1;
+
+ /**
+ * The '<em><b>DUPSOKACKNOWLEDGE</b></em>' literal
value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * This acknowledgement mode instructs the session to lazily acknowledge the
delivery of messages.
+ *
+ * <!-- end-model-doc -->
+ * @see #DUPSOKACKNOWLEDGE
+ * @model literal="DUPS_OK_ACKNOWLEDGE"
+ * @generated
+ * @ordered
+ */
+ public static final int DUPSOKACKNOWLEDGE_VALUE = 2;
+
+ /**
+ * An array of all the '<em><b>Acknowledge
Mode</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final AcknowledgeMode[] VALUES_ARRAY =
+ new AcknowledgeMode[] {
+ AUTOACKNOWLEDGE,
+ CLIENTACKNOWLEDGE,
+ DUPSOKACKNOWLEDGE,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Acknowledge
Mode</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<AcknowledgeMode> VALUES =
Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Acknowledge Mode</b></em>'
literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static AcknowledgeMode get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ AcknowledgeMode result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Acknowledge Mode</b></em>'
literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static AcknowledgeMode getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ AcknowledgeMode result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Acknowledge Mode</b></em>'
literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static AcknowledgeMode get(int value) {
+ switch (value) {
+ case AUTOACKNOWLEDGE_VALUE: return AUTOACKNOWLEDGE;
+ case CLIENTACKNOWLEDGE_VALUE: return CLIENTACKNOWLEDGE;
+ case DUPSOKACKNOWLEDGE_VALUE: return DUPSOKACKNOWLEDGE;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private AcknowledgeMode(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral() {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ return literal;
+ }
+
+} //AcknowledgeMode
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/AcknowledgeMode.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Connection.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Connection.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Connection.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,148 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object
'<em><b>Connection</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * The JMS connection configuration.
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory
<em>Factory</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityCredential
<em>Security Credential</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityPrincipal <em>Security
Principal</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getConnection()
+ * @model extendedMetaData="name='connection' kind='empty'"
+ * @generated
+ */
+public interface Connection extends EObject {
+ /**
+ * Returns the value of the '<em><b>Factory</b></em>'
attribute.
+ * The default value is <code>"ConnectionFactory"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The ConnectionFactory to look up
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Factory</em>' attribute.
+ * @see #isSetFactory()
+ * @see #unsetFactory()
+ * @see #setFactory(String)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getConnection_Factory()
+ * @model default="ConnectionFactory" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='factory'"
+ * @generated
+ */
+ String getFactory();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory
<em>Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Factory</em>' attribute.
+ * @see #isSetFactory()
+ * @see #unsetFactory()
+ * @see #getFactory()
+ * @generated
+ */
+ void setFactory(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory
<em>Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetFactory()
+ * @see #getFactory()
+ * @see #setFactory(String)
+ * @generated
+ */
+ void unsetFactory();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory
<em>Factory</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Factory</em>' attribute is
set.
+ * @see #unsetFactory()
+ * @see #getFactory()
+ * @see #setFactory(String)
+ * @generated
+ */
+ boolean isSetFactory();
+
+ /**
+ * Returns the value of the '<em><b>Security
Credential</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The security credentials to use when creating the JMS connection.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Security Credential</em>'
attribute.
+ * @see #setSecurityCredential(String)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getConnection_SecurityCredential()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='securityCredential'"
+ * @generated
+ */
+ String getSecurityCredential();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityCredential
<em>Security Credential</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Security Credential</em>'
attribute.
+ * @see #getSecurityCredential()
+ * @generated
+ */
+ void setSecurityCredential(String value);
+
+ /**
+ * Returns the value of the '<em><b>Security
Principal</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The security principal use when creating the JMS connection.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Security Principal</em>'
attribute.
+ * @see #setSecurityPrincipal(String)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getConnection_SecurityPrincipal()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='securityPrincipal'"
+ * @generated
+ */
+ String getSecurityPrincipal();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityPrincipal <em>Security
Principal</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Security Principal</em>'
attribute.
+ * @see #getSecurityPrincipal()
+ * @generated
+ */
+ void setSecurityPrincipal(String value);
+
+} // Connection
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Connection.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/DeliveryMode.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/DeliveryMode.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/DeliveryMode.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,219 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Delivery
Mode</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The possible JMS delivery modes.
+ *
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getDeliveryMode()
+ * @model extendedMetaData="name='deliveryMode'"
+ * @generated
+ */
+public enum DeliveryMode implements Enumerator {
+ /**
+ * The '<em><b>Persistent</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #PERSISTENT_VALUE
+ * @generated
+ * @ordered
+ */
+ PERSISTENT(0, "persistent", "persistent"),
+
+ /**
+ * The '<em><b>Non Persistent</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #NON_PERSISTENT_VALUE
+ * @generated
+ * @ordered
+ */
+ NON_PERSISTENT(1, "nonPersistent", "non-persistent");
+
+ /**
+ * The '<em><b>Persistent</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * This mode instructs the JMS provider to log the message to stable storage as
part of the client's send operation.
+ *
+ * <!-- end-model-doc -->
+ * @see #PERSISTENT
+ * @model name="persistent"
+ * @generated
+ * @ordered
+ */
+ public static final int PERSISTENT_VALUE = 0;
+
+ /**
+ * The '<em><b>Non Persistent</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * This is the lowest overhead delivery mode because it does not require that the
message be logged to stable storage.
+ *
+ * <!-- end-model-doc -->
+ * @see #NON_PERSISTENT
+ * @model name="nonPersistent" literal="non-persistent"
+ * @generated
+ * @ordered
+ */
+ public static final int NON_PERSISTENT_VALUE = 1;
+
+ /**
+ * An array of all the '<em><b>Delivery Mode</b></em>'
enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final DeliveryMode[] VALUES_ARRAY =
+ new DeliveryMode[] {
+ PERSISTENT,
+ NON_PERSISTENT,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Delivery
Mode</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<DeliveryMode> VALUES =
Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Delivery Mode</b></em>' literal
with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static DeliveryMode get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ DeliveryMode result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Delivery Mode</b></em>' literal
with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static DeliveryMode getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ DeliveryMode result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Delivery Mode</b></em>' literal
with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static DeliveryMode get(int value) {
+ switch (value) {
+ case PERSISTENT_VALUE: return PERSISTENT;
+ case NON_PERSISTENT_VALUE: return NON_PERSISTENT;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private DeliveryMode(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral() {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ return literal;
+ }
+
+} //DeliveryMode
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/DeliveryMode.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/HighWaterMark.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/HighWaterMark.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/HighWaterMark.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,207 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+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 -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * The configuration for the max number of messages that can be sitting in the
+ * JMS Destination at any any time.
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getMark
<em>Mark</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getPollFrequency <em>Poll
Frequency</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.HighWaterMark#getTimeout
<em>Timeout</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#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 messages that can be sitting in the JMS Destination at any any
time. Default is 200.
+ *
+ * <!-- 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.jmsrouting.JmsroutingPackage#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.jmsrouting.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.jmsrouting.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.jmsrouting.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.
+ * Default is 1000 ms.
+ *
+ * <!-- 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.jmsrouting.JmsroutingPackage#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.jmsrouting.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.jmsrouting.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.jmsrouting.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 JMS Messages from
the JMS destination so that the
+ * number of JMS Messages drops below the highWaterMark. Default is 60000 ms.
+ *
+ * <!-- 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.jmsrouting.JmsroutingPackage#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.jmsrouting.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.jmsrouting.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.jmsrouting.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/jmsrouting/HighWaterMark.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsDocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsDocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsDocumentRoot.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,120 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+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>Jms Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getRouter
<em>Router</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface JmsDocumentRoot 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.jmsrouting.JmsroutingPackage#getJmsDocumentRoot_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.jmsrouting.JmsroutingPackage#getJmsDocumentRoot_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.jmsrouting.JmsroutingPackage#getJmsDocumentRoot_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>Router</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * JMS router configuration
+ * The JMS router routes messages to a JMS destination (Queue or Topic).
+ * The message payload is created from a bean out of the bean context. It is
possible
+ * to send Text or Object messages. The correlation id can be generated out of a
FreeMarker
+ * template.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Router</em>' containment
reference.
+ * @see #setRouter(JmsRouter)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsDocumentRoot_Router()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='router'
namespace='##targetNamespace'
affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resourc...
+ * @generated
+ */
+ JmsRouter getRouter();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getRouter
<em>Router</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Router</em>' containment
reference.
+ * @see #getRouter()
+ * @generated
+ */
+ void setRouter(JmsRouter value);
+
+} // JmsDocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsDocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsRouter.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsRouter.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsRouter.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,352 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Jms
Router</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * JMS Router
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getMessage
<em>Message</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getConnection
<em>Connection</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getSession
<em>Session</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getJndi
<em>Jndi</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getHighWaterMark
<em>High Water Mark</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getBeanId
<em>Bean Id</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getDestination
<em>Destination</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore
<em>Execute Before</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElement
<em>Route On Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElementNS <em>Route On
Element NS</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter()
+ * @model extendedMetaData="name='router' kind='elementOnly'"
+ * @generated
+ */
+public interface JmsRouter extends ElementVisitor {
+ /**
+ * Returns the value of the '<em><b>Message</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The message configuration.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Message</em>' containment
reference.
+ * @see #setMessage(Message)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_Message()
+ * @model containment="true"
+ * extendedMetaData="kind='element' name='message'
namespace='##targetNamespace'"
+ * @generated
+ */
+ Message getMessage();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getMessage
<em>Message</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Message</em>' containment
reference.
+ * @see #getMessage()
+ * @generated
+ */
+ void setMessage(Message value);
+
+ /**
+ * Returns the value of the '<em><b>Connection</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The JMS connection configuration.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Connection</em>' containment
reference.
+ * @see #setConnection(Connection)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_Connection()
+ * @model containment="true"
+ * extendedMetaData="kind='element' name='connection'
namespace='##targetNamespace'"
+ * @generated
+ */
+ Connection getConnection();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getConnection
<em>Connection</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Connection</em>'
containment reference.
+ * @see #getConnection()
+ * @generated
+ */
+ void setConnection(Connection value);
+
+ /**
+ * Returns the value of the '<em><b>Session</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The JMS session configuration.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Session</em>' containment
reference.
+ * @see #setSession(Session)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_Session()
+ * @model containment="true"
+ * extendedMetaData="kind='element' name='session'
namespace='##targetNamespace'"
+ * @generated
+ */
+ Session getSession();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getSession
<em>Session</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Session</em>' containment
reference.
+ * @see #getSession()
+ * @generated
+ */
+ void setSession(Session value);
+
+ /**
+ * Returns the value of the '<em><b>Jndi</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The JNDI configuration.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Jndi</em>' containment reference.
+ * @see #setJndi(Jndi)
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_Jndi()
+ * @model containment="true"
+ * extendedMetaData="kind='element' name='jndi'
namespace='##targetNamespace'"
+ * @generated
+ */
+ Jndi getJndi();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getJndi <em>Jndi</em>}'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Jndi</em>' containment
reference.
+ * @see #getJndi()
+ * @generated
+ */
+ void setJndi(Jndi value);
+
+ /**
+ * Returns the value of the '<em><b>High Water
Mark</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The configuration for the max number of messages that can be sitting in the
+ * JMS Destination at any 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.jmsrouting.JmsroutingPackage#getJmsRouter_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.jmsrouting.JmsRouter#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>Bean Id</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The beanId of the bean from the bean context to be used as message payload.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Bean Id</em>' attribute.
+ * @see #setBeanId(String)
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_BeanId()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute' name='beanId'"
+ * @generated
+ */
+ String getBeanId();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getBeanId <em>Bean
Id</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Bean Id</em>' attribute.
+ * @see #getBeanId()
+ * @generated
+ */
+ void setBeanId(String value);
+
+ /**
+ * Returns the value of the
'<em><b>Destination</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The JMS destination string
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Destination</em>' attribute.
+ * @see #setDestination(String)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_Destination()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='destination'"
+ * @generated
+ */
+ String getDestination();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getDestination
<em>Destination</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Destination</em>'
attribute.
+ * @see #getDestination()
+ * @generated
+ */
+ void setDestination(String value);
+
+ /**
+ * Returns the value of the '<em><b>Execute
Before</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * If the routing is done before or after the selected element. Default is
'false'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Execute Before</em>' attribute.
+ * @see #isSetExecuteBefore()
+ * @see #unsetExecuteBefore()
+ * @see #setExecuteBefore(boolean)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_ExecuteBefore()
+ * @model default="false" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Boolean"
+ * extendedMetaData="kind='attribute'
name='executeBefore'"
+ * @generated
+ */
+ boolean isExecuteBefore();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore <em>Execute
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Execute Before</em>'
attribute.
+ * @see #isSetExecuteBefore()
+ * @see #unsetExecuteBefore()
+ * @see #isExecuteBefore()
+ * @generated
+ */
+ void setExecuteBefore(boolean value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore <em>Execute
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetExecuteBefore()
+ * @see #isExecuteBefore()
+ * @see #setExecuteBefore(boolean)
+ * @generated
+ */
+ void unsetExecuteBefore();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore <em>Execute
Before</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Execute Before</em>'
attribute is set.
+ * @see #unsetExecuteBefore()
+ * @see #isExecuteBefore()
+ * @see #setExecuteBefore(boolean)
+ * @generated
+ */
+ boolean isSetExecuteBefore();
+
+ /**
+ * Returns the value of the '<em><b>Route On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The element to route on.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Route On Element</em>' attribute.
+ * @see #setRouteOnElement(String)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_RouteOnElement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='routeOnElement'"
+ * @generated
+ */
+ String getRouteOnElement();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElement <em>Route On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Route On Element</em>'
attribute.
+ * @see #getRouteOnElement()
+ * @generated
+ */
+ void setRouteOnElement(String value);
+
+ /**
+ * Returns the value of the '<em><b>Route On Element
NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The namespace of the routeOnElement element.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Route On Element NS</em>'
attribute.
+ * @see #setRouteOnElementNS(String)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJmsRouter_RouteOnElementNS()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='routeOnElementNS'"
+ * @generated
+ */
+ String getRouteOnElementNS();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElementNS <em>Route On
Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Route On Element NS</em>'
attribute.
+ * @see #getRouteOnElementNS()
+ * @generated
+ */
+ void setRouteOnElementNS(String value);
+
+} // JmsRouter
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsRouter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,100 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+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.jmsrouting.JmsroutingPackage
+ * @generated
+ */
+public interface JmsroutingFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ JmsroutingFactory eINSTANCE =
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Connection</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Connection</em>'.
+ * @generated
+ */
+ Connection createConnection();
+
+ /**
+ * Returns a new object of class '<em>Jms Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Jms Document Root</em>'.
+ * @generated
+ */
+ JmsDocumentRoot createJmsDocumentRoot();
+
+ /**
+ * 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>Jndi</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Jndi</em>'.
+ * @generated
+ */
+ Jndi createJndi();
+
+ /**
+ * Returns a new object of class '<em>Message</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Message</em>'.
+ * @generated
+ */
+ Message createMessage();
+
+ /**
+ * Returns a new object of class '<em>Jms Router</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Jms Router</em>'.
+ * @generated
+ */
+ JmsRouter createJmsRouter();
+
+ /**
+ * Returns a new object of class '<em>Session</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Session</em>'.
+ * @generated
+ */
+ Session createSession();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ JmsroutingPackage getJmsroutingPackage();
+
+} //JmsroutingFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingPackage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingPackage.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingPackage.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,1437 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+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 JMS Routing Configuration
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface JmsroutingPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "jmsrouting";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.milyn.org/xsd/smooks/jms-routing-1.1.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "jms";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ JmsroutingPackage eINSTANCE =
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl
<em>Connection</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getConnection()
+ * @generated
+ */
+ int CONNECTION = 0;
+
+ /**
+ * The feature id for the '<em><b>Factory</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CONNECTION__FACTORY = 0;
+
+ /**
+ * The feature id for the '<em><b>Security
Credential</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CONNECTION__SECURITY_CREDENTIAL = 1;
+
+ /**
+ * The feature id for the '<em><b>Security
Principal</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CONNECTION__SECURITY_PRINCIPAL = 2;
+
+ /**
+ * The number of structural features of the '<em>Connection</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CONNECTION_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl <em>Jms Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJmsDocumentRoot()
+ * @generated
+ */
+ int JMS_DOCUMENT_ROOT = 1;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_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 JMS_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 JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Router</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_DOCUMENT_ROOT__ROUTER = 3;
+
+ /**
+ * The number of structural features of the '<em>Jms Document
Root</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl <em>High Water
Mark</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getHighWaterMark()
+ * @generated
+ */
+ int HIGH_WATER_MARK = 2;
+
+ /**
+ * 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.jmsrouting.impl.JndiImpl <em>Jndi</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJndi()
+ * @generated
+ */
+ int JNDI = 3;
+
+ /**
+ * The feature id for the '<em><b>Context
Factory</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JNDI__CONTEXT_FACTORY = 0;
+
+ /**
+ * The feature id for the '<em><b>Naming
Factory</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JNDI__NAMING_FACTORY = 1;
+
+ /**
+ * The feature id for the '<em><b>Provider Url</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JNDI__PROVIDER_URL = 2;
+
+ /**
+ * The number of structural features of the '<em>Jndi</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JNDI_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl
<em>Message</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessage()
+ * @generated
+ */
+ int MESSAGE = 4;
+
+ /**
+ * The feature id for the '<em><b>Correlation Id
Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE__CORRELATION_ID_PATTERN = 0;
+
+ /**
+ * The feature id for the '<em><b>Delivery
Mode</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE__DELIVERY_MODE = 1;
+
+ /**
+ * The feature id for the '<em><b>Priority</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE__PRIORITY = 2;
+
+ /**
+ * The feature id for the '<em><b>Time To Live</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE__TIME_TO_LIVE = 3;
+
+ /**
+ * The feature id for the '<em><b>Type</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE__TYPE = 4;
+
+ /**
+ * The number of structural features of the '<em>Message</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int MESSAGE_FEATURE_COUNT = 5;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl <em>Jms
Router</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJmsRouter()
+ * @generated
+ */
+ int JMS_ROUTER = 5;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__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 JMS_ROUTER__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 JMS_ROUTER__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 JMS_ROUTER__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 JMS_ROUTER__TARGET_PROFILE = SmooksPackage.ELEMENT_VISITOR__TARGET_PROFILE;
+
+ /**
+ * The feature id for the '<em><b>Message</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__MESSAGE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Connection</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__CONNECTION = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Session</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__SESSION = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Jndi</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__JNDI = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>High Water
Mark</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__HIGH_WATER_MARK = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>Bean Id</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__BEAN_ID = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 5;
+
+ /**
+ * The feature id for the '<em><b>Destination</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__DESTINATION = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 6;
+
+ /**
+ * The feature id for the '<em><b>Execute
Before</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__EXECUTE_BEFORE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 7;
+
+ /**
+ * The feature id for the '<em><b>Route On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__ROUTE_ON_ELEMENT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 8;
+
+ /**
+ * The feature id for the '<em><b>Route On Element
NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER__ROUTE_ON_ELEMENT_NS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 9;
+
+ /**
+ * The number of structural features of the '<em>Jms Router</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JMS_ROUTER_FEATURE_COUNT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 10;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl
<em>Session</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getSession()
+ * @generated
+ */
+ int SESSION = 6;
+
+ /**
+ * The feature id for the '<em><b>Acknowledge
Mode</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SESSION__ACKNOWLEDGE_MODE = 0;
+
+ /**
+ * The feature id for the '<em><b>Transacted</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SESSION__TRANSACTED = 1;
+
+ /**
+ * The number of structural features of the '<em>Session</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SESSION_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode <em>Acknowledge
Mode</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getAcknowledgeMode()
+ * @generated
+ */
+ int ACKNOWLEDGE_MODE = 7;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.jmsrouting.DeliveryMode <em>Delivery
Mode</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getDeliveryMode()
+ * @generated
+ */
+ int DELIVERY_MODE = 8;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.jmsrouting.MessageType <em>Message
Type</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.MessageType
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessageType()
+ * @generated
+ */
+ int MESSAGE_TYPE = 9;
+
+ /**
+ * The meta object id for the '<em>Acknowledge Mode Object</em>'
data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getAcknowledgeModeObject()
+ * @generated
+ */
+ int ACKNOWLEDGE_MODE_OBJECT = 10;
+
+ /**
+ * The meta object id for the '<em>Delivery Mode Object</em>' data
type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getDeliveryModeObject()
+ * @generated
+ */
+ int DELIVERY_MODE_OBJECT = 11;
+
+ /**
+ * The meta object id for the '<em>Message Type Object</em>' data
type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.MessageType
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessageTypeObject()
+ * @generated
+ */
+ int MESSAGE_TYPE_OBJECT = 12;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.jmsrouting.Connection <em>Connection</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Connection</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Connection
+ * @generated
+ */
+ EClass getConnection();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory
<em>Factory</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Factory</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Connection#getFactory()
+ * @see #getConnection()
+ * @generated
+ */
+ EAttribute getConnection_Factory();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityCredential
<em>Security Credential</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Security
Credential</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityCredential()
+ * @see #getConnection()
+ * @generated
+ */
+ EAttribute getConnection_SecurityCredential();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityPrincipal <em>Security
Principal</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Security
Principal</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Connection#getSecurityPrincipal()
+ * @see #getConnection()
+ * @generated
+ */
+ EAttribute getConnection_SecurityPrincipal();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot <em>Jms Document
Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Jms Document Root</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot
+ * @generated
+ */
+ EClass getJmsDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#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.jmsrouting.JmsDocumentRoot#getMixed()
+ * @see #getJmsDocumentRoot()
+ * @generated
+ */
+ EAttribute getJmsDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#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.jmsrouting.JmsDocumentRoot#getXMLNSPrefixMap()
+ * @see #getJmsDocumentRoot()
+ * @generated
+ */
+ EReference getJmsDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#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.jmsrouting.JmsDocumentRoot#getXSISchemaLocation()
+ * @see #getJmsDocumentRoot()
+ * @generated
+ */
+ EReference getJmsDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getRouter
<em>Router</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Router</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot#getRouter()
+ * @see #getJmsDocumentRoot()
+ * @generated
+ */
+ EReference getJmsDocumentRoot_Router();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.HighWaterMark
+ * @generated
+ */
+ EClass getHighWaterMark();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.HighWaterMark#getMark()
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ EAttribute getHighWaterMark_Mark();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.HighWaterMark#getPollFrequency()
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ EAttribute getHighWaterMark_PollFrequency();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.HighWaterMark#getTimeout()
+ * @see #getHighWaterMark()
+ * @generated
+ */
+ EAttribute getHighWaterMark_Timeout();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi <em>Jndi</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Jndi</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Jndi
+ * @generated
+ */
+ EClass getJndi();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory <em>Context
Factory</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Context
Factory</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory()
+ * @see #getJndi()
+ * @generated
+ */
+ EAttribute getJndi_ContextFactory();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory <em>Naming
Factory</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Naming
Factory</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory()
+ * @see #getJndi()
+ * @generated
+ */
+ EAttribute getJndi_NamingFactory();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl <em>Provider
Url</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Provider
Url</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl()
+ * @see #getJndi()
+ * @generated
+ */
+ EAttribute getJndi_ProviderUrl();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.jmsrouting.Message <em>Message</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Message</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Message
+ * @generated
+ */
+ EClass getMessage();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getCorrelationIdPattern
<em>Correlation Id Pattern</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Correlation Id
Pattern</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Message#getCorrelationIdPattern()
+ * @see #getMessage()
+ * @generated
+ */
+ EAttribute getMessage_CorrelationIdPattern();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode <em>Delivery
Mode</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Delivery
Mode</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode()
+ * @see #getMessage()
+ * @generated
+ */
+ EAttribute getMessage_DeliveryMode();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getPriority
<em>Priority</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Priority</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Message#getPriority()
+ * @see #getMessage()
+ * @generated
+ */
+ EAttribute getMessage_Priority();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive <em>Time To
Live</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Time To
Live</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive()
+ * @see #getMessage()
+ * @generated
+ */
+ EAttribute getMessage_TimeToLive();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getType <em>Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Type</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Message#getType()
+ * @see #getMessage()
+ * @generated
+ */
+ EAttribute getMessage_Type();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter <em>Jms Router</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Jms Router</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter
+ * @generated
+ */
+ EClass getJmsRouter();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getMessage
<em>Message</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Message</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getMessage()
+ * @see #getJmsRouter()
+ * @generated
+ */
+ EReference getJmsRouter_Message();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getConnection
<em>Connection</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Connection</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getConnection()
+ * @see #getJmsRouter()
+ * @generated
+ */
+ EReference getJmsRouter_Connection();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getSession
<em>Session</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Session</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getSession()
+ * @see #getJmsRouter()
+ * @generated
+ */
+ EReference getJmsRouter_Session();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getJndi
<em>Jndi</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Jndi</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getJndi()
+ * @see #getJmsRouter()
+ * @generated
+ */
+ EReference getJmsRouter_Jndi();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#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.jmsrouting.JmsRouter#getHighWaterMark()
+ * @see #getJmsRouter()
+ * @generated
+ */
+ EReference getJmsRouter_HighWaterMark();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getBeanId <em>Bean
Id</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Bean Id</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getBeanId()
+ * @see #getJmsRouter()
+ * @generated
+ */
+ EAttribute getJmsRouter_BeanId();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getDestination
<em>Destination</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute
'<em>Destination</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getDestination()
+ * @see #getJmsRouter()
+ * @generated
+ */
+ EAttribute getJmsRouter_Destination();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore <em>Execute
Before</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Execute
Before</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#isExecuteBefore()
+ * @see #getJmsRouter()
+ * @generated
+ */
+ EAttribute getJmsRouter_ExecuteBefore();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElement <em>Route On
Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Route On
Element</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElement()
+ * @see #getJmsRouter()
+ * @generated
+ */
+ EAttribute getJmsRouter_RouteOnElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElementNS <em>Route On
Element NS</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Route On Element
NS</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsRouter#getRouteOnElementNS()
+ * @see #getJmsRouter()
+ * @generated
+ */
+ EAttribute getJmsRouter_RouteOnElementNS();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.jmsrouting.Session <em>Session</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Session</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Session
+ * @generated
+ */
+ EClass getSession();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode <em>Acknowledge
Mode</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Acknowledge
Mode</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode()
+ * @see #getSession()
+ * @generated
+ */
+ EAttribute getSession_AcknowledgeMode();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted
<em>Transacted</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Transacted</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted()
+ * @see #getSession()
+ * @generated
+ */
+ EAttribute getSession_Transacted();
+
+ /**
+ * Returns the meta object for enum '{@link
org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode <em>Acknowledge
Mode</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Acknowledge Mode</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode
+ * @generated
+ */
+ EEnum getAcknowledgeMode();
+
+ /**
+ * Returns the meta object for enum '{@link
org.jboss.tools.smooks.model.jmsrouting.DeliveryMode <em>Delivery
Mode</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Delivery Mode</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode
+ * @generated
+ */
+ EEnum getDeliveryMode();
+
+ /**
+ * Returns the meta object for enum '{@link
org.jboss.tools.smooks.model.jmsrouting.MessageType <em>Message
Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Message Type</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.MessageType
+ * @generated
+ */
+ EEnum getMessageType();
+
+ /**
+ * Returns the meta object for data type '{@link
org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode <em>Acknowledge Mode
Object</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for data type '<em>Acknowledge Mode
Object</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode
+ * @model instanceClass="jmsrouting.AcknowledgeMode"
+ * extendedMetaData="name='acknowledgeMode:Object'
baseType='acknowledgeMode'"
+ * @generated
+ */
+ EDataType getAcknowledgeModeObject();
+
+ /**
+ * Returns the meta object for data type '{@link
org.jboss.tools.smooks.model.jmsrouting.DeliveryMode <em>Delivery Mode
Object</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for data type '<em>Delivery Mode
Object</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode
+ * @model instanceClass="jmsrouting.DeliveryMode"
+ * extendedMetaData="name='deliveryMode:Object'
baseType='deliveryMode'"
+ * @generated
+ */
+ EDataType getDeliveryModeObject();
+
+ /**
+ * Returns the meta object for data type '{@link
org.jboss.tools.smooks.model.jmsrouting.MessageType <em>Message Type
Object</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for data type '<em>Message Type
Object</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.MessageType
+ * @model instanceClass="jmsrouting.MessageType"
+ * extendedMetaData="name='messageType:Object'
baseType='messageType'"
+ * @generated
+ */
+ EDataType getMessageTypeObject();
+
+ /**
+ * 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
+ */
+ JmsroutingFactory getJmsroutingFactory();
+
+ /**
+ * <!-- 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.jmsrouting.impl.ConnectionImpl
<em>Connection</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getConnection()
+ * @generated
+ */
+ EClass CONNECTION = eINSTANCE.getConnection();
+
+ /**
+ * The meta object literal for the
'<em><b>Factory</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CONNECTION__FACTORY = eINSTANCE.getConnection_Factory();
+
+ /**
+ * The meta object literal for the '<em><b>Security
Credential</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CONNECTION__SECURITY_CREDENTIAL =
eINSTANCE.getConnection_SecurityCredential();
+
+ /**
+ * The meta object literal for the '<em><b>Security
Principal</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute CONNECTION__SECURITY_PRINCIPAL =
eINSTANCE.getConnection_SecurityPrincipal();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl <em>Jms Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJmsDocumentRoot()
+ * @generated
+ */
+ EClass JMS_DOCUMENT_ROOT = eINSTANCE.getJmsDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JMS_DOCUMENT_ROOT__MIXED = eINSTANCE.getJmsDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getJmsDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getJmsDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Router</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JMS_DOCUMENT_ROOT__ROUTER = eINSTANCE.getJmsDocumentRoot_Router();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl <em>High Water
Mark</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#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.jmsrouting.impl.JndiImpl <em>Jndi</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJndi()
+ * @generated
+ */
+ EClass JNDI = eINSTANCE.getJndi();
+
+ /**
+ * The meta object literal for the '<em><b>Context
Factory</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JNDI__CONTEXT_FACTORY = eINSTANCE.getJndi_ContextFactory();
+
+ /**
+ * The meta object literal for the '<em><b>Naming
Factory</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JNDI__NAMING_FACTORY = eINSTANCE.getJndi_NamingFactory();
+
+ /**
+ * The meta object literal for the '<em><b>Provider
Url</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JNDI__PROVIDER_URL = eINSTANCE.getJndi_ProviderUrl();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl
<em>Message</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessage()
+ * @generated
+ */
+ EClass MESSAGE = eINSTANCE.getMessage();
+
+ /**
+ * The meta object literal for the '<em><b>Correlation Id
Pattern</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute MESSAGE__CORRELATION_ID_PATTERN =
eINSTANCE.getMessage_CorrelationIdPattern();
+
+ /**
+ * The meta object literal for the '<em><b>Delivery
Mode</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute MESSAGE__DELIVERY_MODE = eINSTANCE.getMessage_DeliveryMode();
+
+ /**
+ * The meta object literal for the
'<em><b>Priority</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute MESSAGE__PRIORITY = eINSTANCE.getMessage_Priority();
+
+ /**
+ * The meta object literal for the '<em><b>Time To
Live</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute MESSAGE__TIME_TO_LIVE = eINSTANCE.getMessage_TimeToLive();
+
+ /**
+ * The meta object literal for the
'<em><b>Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute MESSAGE__TYPE = eINSTANCE.getMessage_Type();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl <em>Jms
Router</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getJmsRouter()
+ * @generated
+ */
+ EClass JMS_ROUTER = eINSTANCE.getJmsRouter();
+
+ /**
+ * The meta object literal for the
'<em><b>Message</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JMS_ROUTER__MESSAGE = eINSTANCE.getJmsRouter_Message();
+
+ /**
+ * The meta object literal for the
'<em><b>Connection</b></em>' containment reference
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JMS_ROUTER__CONNECTION = eINSTANCE.getJmsRouter_Connection();
+
+ /**
+ * The meta object literal for the
'<em><b>Session</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JMS_ROUTER__SESSION = eINSTANCE.getJmsRouter_Session();
+
+ /**
+ * The meta object literal for the
'<em><b>Jndi</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JMS_ROUTER__JNDI = eINSTANCE.getJmsRouter_Jndi();
+
+ /**
+ * The meta object literal for the '<em><b>High Water
Mark</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JMS_ROUTER__HIGH_WATER_MARK = eINSTANCE.getJmsRouter_HighWaterMark();
+
+ /**
+ * The meta object literal for the '<em><b>Bean
Id</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JMS_ROUTER__BEAN_ID = eINSTANCE.getJmsRouter_BeanId();
+
+ /**
+ * The meta object literal for the
'<em><b>Destination</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JMS_ROUTER__DESTINATION = eINSTANCE.getJmsRouter_Destination();
+
+ /**
+ * The meta object literal for the '<em><b>Execute
Before</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JMS_ROUTER__EXECUTE_BEFORE = eINSTANCE.getJmsRouter_ExecuteBefore();
+
+ /**
+ * The meta object literal for the '<em><b>Route On
Element</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JMS_ROUTER__ROUTE_ON_ELEMENT = eINSTANCE.getJmsRouter_RouteOnElement();
+
+ /**
+ * The meta object literal for the '<em><b>Route On Element
NS</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JMS_ROUTER__ROUTE_ON_ELEMENT_NS =
eINSTANCE.getJmsRouter_RouteOnElementNS();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl
<em>Session</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getSession()
+ * @generated
+ */
+ EClass SESSION = eINSTANCE.getSession();
+
+ /**
+ * The meta object literal for the '<em><b>Acknowledge
Mode</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SESSION__ACKNOWLEDGE_MODE = eINSTANCE.getSession_AcknowledgeMode();
+
+ /**
+ * The meta object literal for the
'<em><b>Transacted</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute SESSION__TRANSACTED = eINSTANCE.getSession_Transacted();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode <em>Acknowledge
Mode</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getAcknowledgeMode()
+ * @generated
+ */
+ EEnum ACKNOWLEDGE_MODE = eINSTANCE.getAcknowledgeMode();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.jmsrouting.DeliveryMode <em>Delivery
Mode</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getDeliveryMode()
+ * @generated
+ */
+ EEnum DELIVERY_MODE = eINSTANCE.getDeliveryMode();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.jmsrouting.MessageType <em>Message
Type</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.MessageType
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessageType()
+ * @generated
+ */
+ EEnum MESSAGE_TYPE = eINSTANCE.getMessageType();
+
+ /**
+ * The meta object literal for the '<em>Acknowledge Mode
Object</em>' data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getAcknowledgeModeObject()
+ * @generated
+ */
+ EDataType ACKNOWLEDGE_MODE_OBJECT = eINSTANCE.getAcknowledgeModeObject();
+
+ /**
+ * The meta object literal for the '<em>Delivery Mode Object</em>'
data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getDeliveryModeObject()
+ * @generated
+ */
+ EDataType DELIVERY_MODE_OBJECT = eINSTANCE.getDeliveryModeObject();
+
+ /**
+ * The meta object literal for the '<em>Message Type Object</em>'
data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.MessageType
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getMessageTypeObject()
+ * @generated
+ */
+ EDataType MESSAGE_TYPE_OBJECT = eINSTANCE.getMessageTypeObject();
+
+ }
+
+} //JmsroutingPackage
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/JmsroutingPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Jndi.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Jndi.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Jndi.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,204 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object
'<em><b>Jndi</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * The JNDI configuration.
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory
<em>Context Factory</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory
<em>Naming Factory</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl
<em>Provider Url</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJndi()
+ * @model extendedMetaData="name='jndi' kind='empty'"
+ * @generated
+ */
+public interface Jndi extends EObject {
+ /**
+ * Returns the value of the '<em><b>Context
Factory</b></em>' attribute.
+ * The default value is
<code>"org.jnp.interfaces.NamingContextFactory"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The JNDI ContextFactory to use
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Context Factory</em>' attribute.
+ * @see #isSetContextFactory()
+ * @see #unsetContextFactory()
+ * @see #setContextFactory(String)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJndi_ContextFactory()
+ * @model default="org.jnp.interfaces.NamingContextFactory"
unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='contextFactory'"
+ * @generated
+ */
+ String getContextFactory();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory <em>Context
Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Context Factory</em>'
attribute.
+ * @see #isSetContextFactory()
+ * @see #unsetContextFactory()
+ * @see #getContextFactory()
+ * @generated
+ */
+ void setContextFactory(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory <em>Context
Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetContextFactory()
+ * @see #getContextFactory()
+ * @see #setContextFactory(String)
+ * @generated
+ */
+ void unsetContextFactory();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getContextFactory <em>Context
Factory</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Context Factory</em>'
attribute is set.
+ * @see #unsetContextFactory()
+ * @see #getContextFactory()
+ * @see #setContextFactory(String)
+ * @generated
+ */
+ boolean isSetContextFactory();
+
+ /**
+ * Returns the value of the '<em><b>Naming
Factory</b></em>' attribute.
+ * The default value is
<code>"org.jboss.naming:java.naming.factory.url.pkgs"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The JNDI NamingFactory to use
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Naming Factory</em>' attribute.
+ * @see #isSetNamingFactory()
+ * @see #unsetNamingFactory()
+ * @see #setNamingFactory(String)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJndi_NamingFactory()
+ * @model default="org.jboss.naming:java.naming.factory.url.pkgs"
unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='namingFactory'"
+ * @generated
+ */
+ String getNamingFactory();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory <em>Naming
Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Naming Factory</em>'
attribute.
+ * @see #isSetNamingFactory()
+ * @see #unsetNamingFactory()
+ * @see #getNamingFactory()
+ * @generated
+ */
+ void setNamingFactory(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory <em>Naming
Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetNamingFactory()
+ * @see #getNamingFactory()
+ * @see #setNamingFactory(String)
+ * @generated
+ */
+ void unsetNamingFactory();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getNamingFactory <em>Naming
Factory</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Naming Factory</em>'
attribute is set.
+ * @see #unsetNamingFactory()
+ * @see #getNamingFactory()
+ * @see #setNamingFactory(String)
+ * @generated
+ */
+ boolean isSetNamingFactory();
+
+ /**
+ * Returns the value of the '<em><b>Provider
Url</b></em>' attribute.
+ * The default value is <code>"jnp://localhost:1099"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The JNDI Provider URL to use.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Provider Url</em>' attribute.
+ * @see #isSetProviderUrl()
+ * @see #unsetProviderUrl()
+ * @see #setProviderUrl(String)
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getJndi_ProviderUrl()
+ * @model default="jnp://localhost:1099" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='providerUrl'"
+ * @generated
+ */
+ String getProviderUrl();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl <em>Provider
Url</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Provider Url</em>'
attribute.
+ * @see #isSetProviderUrl()
+ * @see #unsetProviderUrl()
+ * @see #getProviderUrl()
+ * @generated
+ */
+ void setProviderUrl(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl <em>Provider
Url</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetProviderUrl()
+ * @see #getProviderUrl()
+ * @see #setProviderUrl(String)
+ * @generated
+ */
+ void unsetProviderUrl();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi#getProviderUrl <em>Provider
Url</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Provider Url</em>'
attribute is set.
+ * @see #unsetProviderUrl()
+ * @see #getProviderUrl()
+ * @see #setProviderUrl(String)
+ * @generated
+ */
+ boolean isSetProviderUrl();
+
+} // Jndi
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Jndi.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Message.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Message.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Message.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,297 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object
'<em><b>Message</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * The message configuration.
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getCorrelationIdPattern
<em>Correlation Id Pattern</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode
<em>Delivery Mode</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Message#getPriority
<em>Priority</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive
<em>Time To Live</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Message#getType
<em>Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage()
+ * @model extendedMetaData="name='message' kind='elementOnly'"
+ * @generated
+ */
+public interface Message extends EObject {
+ /**
+ * Returns the value of the '<em><b>Correlation Id
Pattern</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * JMS Correlation pattern that will be used for the outgoing message.
+ * Templating support is available via the FreeMarker template engine.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Correlation Id Pattern</em>'
attribute.
+ * @see #setCorrelationIdPattern(String)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage_CorrelationIdPattern()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='element'
name='correlationIdPattern' namespace='##targetNamespace'"
+ * @generated
+ */
+ String getCorrelationIdPattern();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getCorrelationIdPattern
<em>Correlation Id Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Correlation Id
Pattern</em>' attribute.
+ * @see #getCorrelationIdPattern()
+ * @generated
+ */
+ void setCorrelationIdPattern(String value);
+
+ /**
+ * Returns the value of the '<em><b>Delivery
Mode</b></em>' attribute.
+ * The default value is <code>"persistent"</code>.
+ * The literals are from the enumeration {@link
org.jboss.tools.smooks.model.jmsrouting.DeliveryMode}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The JMS DeliveryMode. 'persistent'(default) or
'non-persistent'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Delivery Mode</em>' attribute.
+ * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode
+ * @see #isSetDeliveryMode()
+ * @see #unsetDeliveryMode()
+ * @see #setDeliveryMode(DeliveryMode)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage_DeliveryMode()
+ * @model default="persistent" unsettable="true"
+ * extendedMetaData="kind='attribute'
name='deliveryMode'"
+ * @generated
+ */
+ DeliveryMode getDeliveryMode();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode <em>Delivery
Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Delivery Mode</em>'
attribute.
+ * @see org.jboss.tools.smooks.model.jmsrouting.DeliveryMode
+ * @see #isSetDeliveryMode()
+ * @see #unsetDeliveryMode()
+ * @see #getDeliveryMode()
+ * @generated
+ */
+ void setDeliveryMode(DeliveryMode value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode <em>Delivery
Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetDeliveryMode()
+ * @see #getDeliveryMode()
+ * @see #setDeliveryMode(DeliveryMode)
+ * @generated
+ */
+ void unsetDeliveryMode();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getDeliveryMode <em>Delivery
Mode</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Delivery Mode</em>'
attribute is set.
+ * @see #unsetDeliveryMode()
+ * @see #getDeliveryMode()
+ * @see #setDeliveryMode(DeliveryMode)
+ * @generated
+ */
+ boolean isSetDeliveryMode();
+
+ /**
+ * Returns the value of the '<em><b>Priority</b></em>'
attribute.
+ * The default value is <code>"4"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The JMS Priority to be used
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Priority</em>' attribute.
+ * @see #isSetPriority()
+ * @see #unsetPriority()
+ * @see #setPriority(int)
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage_Priority()
+ * @model default="4" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Int"
+ * extendedMetaData="kind='attribute' name='priority'"
+ * @generated
+ */
+ int getPriority();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getPriority
<em>Priority</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Priority</em>' attribute.
+ * @see #isSetPriority()
+ * @see #unsetPriority()
+ * @see #getPriority()
+ * @generated
+ */
+ void setPriority(int value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getPriority
<em>Priority</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetPriority()
+ * @see #getPriority()
+ * @see #setPriority(int)
+ * @generated
+ */
+ void unsetPriority();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getPriority
<em>Priority</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Priority</em>' attribute is
set.
+ * @see #unsetPriority()
+ * @see #getPriority()
+ * @see #setPriority(int)
+ * @generated
+ */
+ boolean isSetPriority();
+
+ /**
+ * Returns the value of the '<em><b>Time To
Live</b></em>' attribute.
+ * The default value is <code>"0"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The JMS Time-To-Live to be used.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Time To Live</em>' attribute.
+ * @see #isSetTimeToLive()
+ * @see #unsetTimeToLive()
+ * @see #setTimeToLive(long)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage_TimeToLive()
+ * @model default="0" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Long"
+ * extendedMetaData="kind='attribute'
name='timeToLive'"
+ * @generated
+ */
+ long getTimeToLive();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive <em>Time To
Live</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Time To Live</em>'
attribute.
+ * @see #isSetTimeToLive()
+ * @see #unsetTimeToLive()
+ * @see #getTimeToLive()
+ * @generated
+ */
+ void setTimeToLive(long value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive <em>Time To
Live</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetTimeToLive()
+ * @see #getTimeToLive()
+ * @see #setTimeToLive(long)
+ * @generated
+ */
+ void unsetTimeToLive();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getTimeToLive <em>Time To
Live</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Time To Live</em>'
attribute is set.
+ * @see #unsetTimeToLive()
+ * @see #getTimeToLive()
+ * @see #setTimeToLive(long)
+ * @generated
+ */
+ boolean isSetTimeToLive();
+
+ /**
+ * Returns the value of the '<em><b>Type</b></em>'
attribute.
+ * The default value is <code>"TextMessage"</code>.
+ * The literals are from the enumeration {@link
org.jboss.tools.smooks.model.jmsrouting.MessageType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The type of JMS Message that should be sent. 'TextMessage'(default) or
'ObjectMessage'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Type</em>' attribute.
+ * @see org.jboss.tools.smooks.model.jmsrouting.MessageType
+ * @see #isSetType()
+ * @see #unsetType()
+ * @see #setType(MessageType)
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessage_Type()
+ * @model default="TextMessage" unsettable="true"
+ * extendedMetaData="kind='attribute' name='type'"
+ * @generated
+ */
+ MessageType getType();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getType <em>Type</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Type</em>' attribute.
+ * @see org.jboss.tools.smooks.model.jmsrouting.MessageType
+ * @see #isSetType()
+ * @see #unsetType()
+ * @see #getType()
+ * @generated
+ */
+ void setType(MessageType value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getType <em>Type</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetType()
+ * @see #getType()
+ * @see #setType(MessageType)
+ * @generated
+ */
+ void unsetType();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Message#getType <em>Type</em>}'
attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Type</em>' attribute is
set.
+ * @see #unsetType()
+ * @see #getType()
+ * @see #setType(MessageType)
+ * @generated
+ */
+ boolean isSetType();
+
+} // Message
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Message.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/MessageType.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/MessageType.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/MessageType.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,252 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>Message
Type</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The possible JMS message types.
+ *
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getMessageType()
+ * @model extendedMetaData="name='messageType'"
+ * @generated
+ */
+public enum MessageType implements Enumerator {
+ /**
+ * The '<em><b>Text Message</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #TEXT_MESSAGE_VALUE
+ * @generated
+ * @ordered
+ */
+ TEXT_MESSAGE(0, "TextMessage", "TextMessage"),
+
+ /**
+ * The '<em><b>Object Message</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #OBJECT_MESSAGE_VALUE
+ * @generated
+ * @ordered
+ */
+ OBJECT_MESSAGE(1, "ObjectMessage", "ObjectMessage"),
+
+ /**
+ * The '<em><b>Map Message</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #MAP_MESSAGE_VALUE
+ * @generated
+ * @ordered
+ */
+ MAP_MESSAGE(2, "MapMessage", "MapMessage");
+
+ /**
+ * The '<em><b>Text Message</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * A TextMessage is used to send a message containing a java.lang.String.
+ * To retrieve the string the cartridge calls the 'toString()' method of
the target bean.
+ *
+ * <!-- end-model-doc -->
+ * @see #TEXT_MESSAGE
+ * @model name="TextMessage"
+ * @generated
+ * @ordered
+ */
+ public static final int TEXT_MESSAGE_VALUE = 0;
+
+ /**
+ * The '<em><b>Object Message</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * An ObjectMessage is used to send a message that contains a serializable Java
object.
+ * Only Serializable Java objects can be used.
+ *
+ * <!-- end-model-doc -->
+ * @see #OBJECT_MESSAGE
+ * @model name="ObjectMessage"
+ * @generated
+ * @ordered
+ */
+ public static final int OBJECT_MESSAGE_VALUE = 1;
+
+ /**
+ * The '<em><b>Map Message</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * A MapMessage is used to send a set of name-value pairs where names are Strings
and values are Java primitive types or Strings.
+ * Only Map Java objects can be used.
+ * For the keys of the map the 'toString()' method is called to retrieve
the String representation.
+ * Objects that aren't primitive types or Strings get the toString() method
called to return the String representation.
+ *
+ * <!-- end-model-doc -->
+ * @see #MAP_MESSAGE
+ * @model name="MapMessage"
+ * @generated
+ * @ordered
+ */
+ public static final int MAP_MESSAGE_VALUE = 2;
+
+ /**
+ * An array of all the '<em><b>Message Type</b></em>'
enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final MessageType[] VALUES_ARRAY =
+ new MessageType[] {
+ TEXT_MESSAGE,
+ OBJECT_MESSAGE,
+ MAP_MESSAGE,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Message
Type</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<MessageType> VALUES =
Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Message Type</b></em>' literal
with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static MessageType get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ MessageType result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Message Type</b></em>' literal
with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static MessageType getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ MessageType result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Message Type</b></em>' literal
with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static MessageType get(int value) {
+ switch (value) {
+ case TEXT_MESSAGE_VALUE: return TEXT_MESSAGE;
+ case OBJECT_MESSAGE_VALUE: return OBJECT_MESSAGE;
+ case MAP_MESSAGE_VALUE: return MAP_MESSAGE;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private MessageType(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getLiteral() {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ return literal;
+ }
+
+} //MessageType
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/MessageType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Session.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Session.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Session.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,150 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object
'<em><b>Session</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * The JMS session configuration.
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode
<em>Acknowledge Mode</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted
<em>Transacted</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getSession()
+ * @model extendedMetaData="name='session' kind='empty'"
+ * @generated
+ */
+public interface Session extends EObject {
+ /**
+ * Returns the value of the '<em><b>Acknowledge
Mode</b></em>' attribute.
+ * The default value is <code>"AUTO_ACKNOWLEDGE"</code>.
+ * The literals are from the enumeration {@link
org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The acknowledge mode to use. One of 'AUTO_ACKNOWLEDGE'(default),
'CLIENT_ACKNOWLEDGE', 'DUPS_OK_ACKNOWLEDGE'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Acknowledge Mode</em>' attribute.
+ * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode
+ * @see #isSetAcknowledgeMode()
+ * @see #unsetAcknowledgeMode()
+ * @see #setAcknowledgeMode(AcknowledgeMode)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getSession_AcknowledgeMode()
+ * @model default="AUTO_ACKNOWLEDGE" unsettable="true"
+ * extendedMetaData="kind='attribute'
name='acknowledgeMode'"
+ * @generated
+ */
+ AcknowledgeMode getAcknowledgeMode();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode <em>Acknowledge
Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Acknowledge Mode</em>'
attribute.
+ * @see org.jboss.tools.smooks.model.jmsrouting.AcknowledgeMode
+ * @see #isSetAcknowledgeMode()
+ * @see #unsetAcknowledgeMode()
+ * @see #getAcknowledgeMode()
+ * @generated
+ */
+ void setAcknowledgeMode(AcknowledgeMode value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode <em>Acknowledge
Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetAcknowledgeMode()
+ * @see #getAcknowledgeMode()
+ * @see #setAcknowledgeMode(AcknowledgeMode)
+ * @generated
+ */
+ void unsetAcknowledgeMode();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Session#getAcknowledgeMode <em>Acknowledge
Mode</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Acknowledge Mode</em>'
attribute is set.
+ * @see #unsetAcknowledgeMode()
+ * @see #getAcknowledgeMode()
+ * @see #setAcknowledgeMode(AcknowledgeMode)
+ * @generated
+ */
+ boolean isSetAcknowledgeMode();
+
+ /**
+ * Returns the value of the '<em><b>Transacted</b></em>'
attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * Determines if the session should be transacted. Defaults to 'false'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Transacted</em>' attribute.
+ * @see #isSetTransacted()
+ * @see #unsetTransacted()
+ * @see #setTransacted(boolean)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getSession_Transacted()
+ * @model default="false" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.Boolean"
+ * extendedMetaData="kind='attribute'
name='transacted'"
+ * @generated
+ */
+ boolean isTransacted();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted
<em>Transacted</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Transacted</em>'
attribute.
+ * @see #isSetTransacted()
+ * @see #unsetTransacted()
+ * @see #isTransacted()
+ * @generated
+ */
+ void setTransacted(boolean value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted
<em>Transacted</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetTransacted()
+ * @see #isTransacted()
+ * @see #setTransacted(boolean)
+ * @generated
+ */
+ void unsetTransacted();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.Session#isTransacted
<em>Transacted</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Transacted</em>' attribute
is set.
+ * @see #unsetTransacted()
+ * @see #isTransacted()
+ * @see #setTransacted(boolean)
+ * @generated
+ */
+ boolean isSetTransacted();
+
+} // Session
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Session.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/ConnectionImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/ConnectionImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/ConnectionImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,309 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.Connection;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object
'<em><b>Connection</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl#getFactory
<em>Factory</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl#getSecurityCredential
<em>Security Credential</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl#getSecurityPrincipal
<em>Security Principal</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ConnectionImpl extends EObjectImpl implements Connection {
+ /**
+ * The default value of the '{@link #getFactory() <em>Factory</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFactory()
+ * @generated
+ * @ordered
+ */
+ protected static final String FACTORY_EDEFAULT = "ConnectionFactory";
+
+ /**
+ * The cached value of the '{@link #getFactory() <em>Factory</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFactory()
+ * @generated
+ * @ordered
+ */
+ protected String factory = FACTORY_EDEFAULT;
+
+ /**
+ * This is true if the Factory attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean factoryESet;
+
+ /**
+ * The default value of the '{@link #getSecurityCredential() <em>Security
Credential</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurityCredential()
+ * @generated
+ * @ordered
+ */
+ protected static final String SECURITY_CREDENTIAL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSecurityCredential() <em>Security
Credential</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurityCredential()
+ * @generated
+ * @ordered
+ */
+ protected String securityCredential = SECURITY_CREDENTIAL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getSecurityPrincipal() <em>Security
Principal</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurityPrincipal()
+ * @generated
+ * @ordered
+ */
+ protected static final String SECURITY_PRINCIPAL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSecurityPrincipal() <em>Security
Principal</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSecurityPrincipal()
+ * @generated
+ * @ordered
+ */
+ protected String securityPrincipal = SECURITY_PRINCIPAL_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ConnectionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JmsroutingPackage.Literals.CONNECTION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFactory() {
+ return factory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFactory(String newFactory) {
+ String oldFactory = factory;
+ factory = newFactory;
+ boolean oldFactoryESet = factoryESet;
+ factoryESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.CONNECTION__FACTORY, oldFactory, factory, !oldFactoryESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetFactory() {
+ String oldFactory = factory;
+ boolean oldFactoryESet = factoryESet;
+ factory = FACTORY_EDEFAULT;
+ factoryESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.CONNECTION__FACTORY, oldFactory, FACTORY_EDEFAULT, oldFactoryESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetFactory() {
+ return factoryESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getSecurityCredential() {
+ return securityCredential;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSecurityCredential(String newSecurityCredential) {
+ String oldSecurityCredential = securityCredential;
+ securityCredential = newSecurityCredential;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL, oldSecurityCredential,
securityCredential));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getSecurityPrincipal() {
+ return securityPrincipal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSecurityPrincipal(String newSecurityPrincipal) {
+ String oldSecurityPrincipal = securityPrincipal;
+ securityPrincipal = newSecurityPrincipal;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL, oldSecurityPrincipal,
securityPrincipal));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case JmsroutingPackage.CONNECTION__FACTORY:
+ return getFactory();
+ case JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL:
+ return getSecurityCredential();
+ case JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL:
+ return getSecurityPrincipal();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case JmsroutingPackage.CONNECTION__FACTORY:
+ setFactory((String)newValue);
+ return;
+ case JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL:
+ setSecurityCredential((String)newValue);
+ return;
+ case JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL:
+ setSecurityPrincipal((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.CONNECTION__FACTORY:
+ unsetFactory();
+ return;
+ case JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL:
+ setSecurityCredential(SECURITY_CREDENTIAL_EDEFAULT);
+ return;
+ case JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL:
+ setSecurityPrincipal(SECURITY_PRINCIPAL_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.CONNECTION__FACTORY:
+ return isSetFactory();
+ case JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL:
+ return SECURITY_CREDENTIAL_EDEFAULT == null ? securityCredential != null :
!SECURITY_CREDENTIAL_EDEFAULT.equals(securityCredential);
+ case JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL:
+ return SECURITY_PRINCIPAL_EDEFAULT == null ? securityPrincipal != null :
!SECURITY_PRINCIPAL_EDEFAULT.equals(securityPrincipal);
+ }
+ 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(" (factory: ");
+ if (factoryESet) result.append(factory); else
result.append("<unset>");
+ result.append(", securityCredential: ");
+ result.append(securityCredential);
+ result.append(", securityPrincipal: ");
+ result.append(securityPrincipal);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ConnectionImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/ConnectionImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/HighWaterMarkImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/HighWaterMarkImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/HighWaterMarkImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,377 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.HighWaterMark;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * <!-- 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.jmsrouting.impl.HighWaterMarkImpl#getMark
<em>Mark</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.HighWaterMarkImpl#getPollFrequency
<em>Poll Frequency</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.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 JmsroutingPackage.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,
JmsroutingPackage.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,
JmsroutingPackage.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,
JmsroutingPackage.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,
JmsroutingPackage.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,
JmsroutingPackage.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,
JmsroutingPackage.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 JmsroutingPackage.HIGH_WATER_MARK__MARK:
+ return new Integer(getMark());
+ case JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ return new Integer(getPollFrequency());
+ case JmsroutingPackage.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 JmsroutingPackage.HIGH_WATER_MARK__MARK:
+ setMark(((Integer)newValue).intValue());
+ return;
+ case JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ setPollFrequency(((Integer)newValue).intValue());
+ return;
+ case JmsroutingPackage.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 JmsroutingPackage.HIGH_WATER_MARK__MARK:
+ unsetMark();
+ return;
+ case JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ unsetPollFrequency();
+ return;
+ case JmsroutingPackage.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 JmsroutingPackage.HIGH_WATER_MARK__MARK:
+ return isSetMark();
+ case JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ return isSetPollFrequency();
+ case JmsroutingPackage.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/jmsrouting/impl/HighWaterMarkImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsDocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsDocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsDocumentRootImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,286 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.JmsDocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.JmsRouter;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Jms Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsDocumentRootImpl#getRouter
<em>Router</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class JmsDocumentRootImpl extends EObjectImpl implements JmsDocumentRoot {
+ /**
+ * 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 JmsDocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, JmsroutingPackage.JMS_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,
JmsroutingPackage.JMS_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,
JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JmsRouter getRouter() {
+ return (JmsRouter)getMixed().get(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER,
true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetRouter(JmsRouter newRouter, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER,
newRouter, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouter(JmsRouter newRouter) {
+ ((FeatureMap.Internal)getMixed()).set(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER,
newRouter);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER:
+ return basicSetRouter(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 JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER:
+ return getRouter();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER:
+ setRouter((JmsRouter)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER:
+ setRouter((JmsRouter)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER:
+ return getRouter() != 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();
+ }
+
+} //JmsDocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsDocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsRouterImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsRouterImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsRouterImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,764 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.Connection;
+import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark;
+import org.jboss.tools.smooks.model.jmsrouting.JmsRouter;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Jndi;
+import org.jboss.tools.smooks.model.jmsrouting.Message;
+import org.jboss.tools.smooks.model.jmsrouting.Session;
+import org.jboss.tools.smooks.model.smooks.impl.ElementVisitorImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Jms
Router</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getMessage
<em>Message</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getConnection
<em>Connection</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getSession
<em>Session</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getJndi
<em>Jndi</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getHighWaterMark <em>High
Water Mark</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getBeanId <em>Bean
Id</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getDestination
<em>Destination</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#isExecuteBefore
<em>Execute Before</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getRouteOnElement
<em>Route On Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl#getRouteOnElementNS
<em>Route On Element NS</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class JmsRouterImpl extends ElementVisitorImpl implements JmsRouter {
+ /**
+ * The cached value of the '{@link #getMessage() <em>Message</em>}'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMessage()
+ * @generated
+ * @ordered
+ */
+ protected Message message;
+
+ /**
+ * The cached value of the '{@link #getConnection()
<em>Connection</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getConnection()
+ * @generated
+ * @ordered
+ */
+ protected Connection connection;
+
+ /**
+ * The cached value of the '{@link #getSession() <em>Session</em>}'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSession()
+ * @generated
+ * @ordered
+ */
+ protected Session session;
+
+ /**
+ * The cached value of the '{@link #getJndi() <em>Jndi</em>}'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getJndi()
+ * @generated
+ * @ordered
+ */
+ protected Jndi jndi;
+
+ /**
+ * 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 #getBeanId() <em>Bean Id</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBeanId()
+ * @generated
+ * @ordered
+ */
+ protected static final String BEAN_ID_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBeanId() <em>Bean Id</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBeanId()
+ * @generated
+ * @ordered
+ */
+ protected String beanId = BEAN_ID_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDestination()
<em>Destination</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDestination()
+ * @generated
+ * @ordered
+ */
+ protected static final String DESTINATION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDestination()
<em>Destination</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDestination()
+ * @generated
+ * @ordered
+ */
+ protected String destination = DESTINATION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #isExecuteBefore() <em>Execute
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isExecuteBefore()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean EXECUTE_BEFORE_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isExecuteBefore() <em>Execute
Before</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isExecuteBefore()
+ * @generated
+ * @ordered
+ */
+ protected boolean executeBefore = EXECUTE_BEFORE_EDEFAULT;
+
+ /**
+ * This is true if the Execute Before attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean executeBeforeESet;
+
+ /**
+ * The default value of the '{@link #getRouteOnElement() <em>Route On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElement()
+ * @generated
+ * @ordered
+ */
+ protected static final String ROUTE_ON_ELEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRouteOnElement() <em>Route On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElement()
+ * @generated
+ * @ordered
+ */
+ protected String routeOnElement = ROUTE_ON_ELEMENT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getRouteOnElementNS() <em>Route On
Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected static final String ROUTE_ON_ELEMENT_NS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRouteOnElementNS() <em>Route On Element
NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRouteOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected String routeOnElementNS = ROUTE_ON_ELEMENT_NS_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected JmsRouterImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JmsroutingPackage.Literals.JMS_ROUTER;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Message getMessage() {
+ return message;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetMessage(Message newMessage, NotificationChain msgs) {
+ Message oldMessage = message;
+ message = newMessage;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__MESSAGE, oldMessage, newMessage);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMessage(Message newMessage) {
+ if (newMessage != message) {
+ NotificationChain msgs = null;
+ if (message != null)
+ msgs = ((InternalEObject)message).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.JMS_ROUTER__MESSAGE, null, msgs);
+ if (newMessage != null)
+ msgs = ((InternalEObject)newMessage).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.JMS_ROUTER__MESSAGE, null, msgs);
+ msgs = basicSetMessage(newMessage, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__MESSAGE, newMessage, newMessage));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Connection getConnection() {
+ return connection;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetConnection(Connection newConnection, NotificationChain
msgs) {
+ Connection oldConnection = connection;
+ connection = newConnection;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__CONNECTION, oldConnection, newConnection);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setConnection(Connection newConnection) {
+ if (newConnection != connection) {
+ NotificationChain msgs = null;
+ if (connection != null)
+ msgs = ((InternalEObject)connection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.JMS_ROUTER__CONNECTION, null, msgs);
+ if (newConnection != null)
+ msgs = ((InternalEObject)newConnection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.JMS_ROUTER__CONNECTION, null, msgs);
+ msgs = basicSetConnection(newConnection, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__CONNECTION, newConnection, newConnection));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Session getSession() {
+ return session;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetSession(Session newSession, NotificationChain msgs) {
+ Session oldSession = session;
+ session = newSession;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__SESSION, oldSession, newSession);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSession(Session newSession) {
+ if (newSession != session) {
+ NotificationChain msgs = null;
+ if (session != null)
+ msgs = ((InternalEObject)session).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.JMS_ROUTER__SESSION, null, msgs);
+ if (newSession != null)
+ msgs = ((InternalEObject)newSession).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.JMS_ROUTER__SESSION, null, msgs);
+ msgs = basicSetSession(newSession, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__SESSION, newSession, newSession));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Jndi getJndi() {
+ return jndi;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetJndi(Jndi newJndi, NotificationChain msgs) {
+ Jndi oldJndi = jndi;
+ jndi = newJndi;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__JNDI, oldJndi, newJndi);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setJndi(Jndi newJndi) {
+ if (newJndi != jndi) {
+ NotificationChain msgs = null;
+ if (jndi != null)
+ msgs = ((InternalEObject)jndi).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.JMS_ROUTER__JNDI, null, msgs);
+ if (newJndi != null)
+ msgs = ((InternalEObject)newJndi).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.JMS_ROUTER__JNDI, null, msgs);
+ msgs = basicSetJndi(newJndi, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__JNDI, newJndi, newJndi));
+ }
+
+ /**
+ * <!-- 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,
JmsroutingPackage.JMS_ROUTER__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 -
JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK, null, msgs);
+ if (newHighWaterMark != null)
+ msgs = ((InternalEObject)newHighWaterMark).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK, null, msgs);
+ msgs = basicSetHighWaterMark(newHighWaterMark, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK, newHighWaterMark, newHighWaterMark));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBeanId() {
+ return beanId;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBeanId(String newBeanId) {
+ String oldBeanId = beanId;
+ beanId = newBeanId;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__BEAN_ID, oldBeanId, beanId));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDestination() {
+ return destination;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDestination(String newDestination) {
+ String oldDestination = destination;
+ destination = newDestination;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__DESTINATION, oldDestination, destination));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isExecuteBefore() {
+ return executeBefore;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setExecuteBefore(boolean newExecuteBefore) {
+ boolean oldExecuteBefore = executeBefore;
+ executeBefore = newExecuteBefore;
+ boolean oldExecuteBeforeESet = executeBeforeESet;
+ executeBeforeESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE, oldExecuteBefore, executeBefore,
!oldExecuteBeforeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetExecuteBefore() {
+ boolean oldExecuteBefore = executeBefore;
+ boolean oldExecuteBeforeESet = executeBeforeESet;
+ executeBefore = EXECUTE_BEFORE_EDEFAULT;
+ executeBeforeESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE, oldExecuteBefore, EXECUTE_BEFORE_EDEFAULT,
oldExecuteBeforeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetExecuteBefore() {
+ return executeBeforeESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRouteOnElement() {
+ return routeOnElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouteOnElement(String newRouteOnElement) {
+ String oldRouteOnElement = routeOnElement;
+ routeOnElement = newRouteOnElement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT, oldRouteOnElement, routeOnElement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRouteOnElementNS() {
+ return routeOnElementNS;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouteOnElementNS(String newRouteOnElementNS) {
+ String oldRouteOnElementNS = routeOnElementNS;
+ routeOnElementNS = newRouteOnElementNS;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS, oldRouteOnElementNS,
routeOnElementNS));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case JmsroutingPackage.JMS_ROUTER__MESSAGE:
+ return basicSetMessage(null, msgs);
+ case JmsroutingPackage.JMS_ROUTER__CONNECTION:
+ return basicSetConnection(null, msgs);
+ case JmsroutingPackage.JMS_ROUTER__SESSION:
+ return basicSetSession(null, msgs);
+ case JmsroutingPackage.JMS_ROUTER__JNDI:
+ return basicSetJndi(null, msgs);
+ case JmsroutingPackage.JMS_ROUTER__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 JmsroutingPackage.JMS_ROUTER__MESSAGE:
+ return getMessage();
+ case JmsroutingPackage.JMS_ROUTER__CONNECTION:
+ return getConnection();
+ case JmsroutingPackage.JMS_ROUTER__SESSION:
+ return getSession();
+ case JmsroutingPackage.JMS_ROUTER__JNDI:
+ return getJndi();
+ case JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK:
+ return getHighWaterMark();
+ case JmsroutingPackage.JMS_ROUTER__BEAN_ID:
+ return getBeanId();
+ case JmsroutingPackage.JMS_ROUTER__DESTINATION:
+ return getDestination();
+ case JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE:
+ return isExecuteBefore() ? Boolean.TRUE : Boolean.FALSE;
+ case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT:
+ return getRouteOnElement();
+ case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS:
+ return getRouteOnElementNS();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case JmsroutingPackage.JMS_ROUTER__MESSAGE:
+ setMessage((Message)newValue);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__CONNECTION:
+ setConnection((Connection)newValue);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__SESSION:
+ setSession((Session)newValue);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__JNDI:
+ setJndi((Jndi)newValue);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK:
+ setHighWaterMark((HighWaterMark)newValue);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__BEAN_ID:
+ setBeanId((String)newValue);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__DESTINATION:
+ setDestination((String)newValue);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE:
+ setExecuteBefore(((Boolean)newValue).booleanValue());
+ return;
+ case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT:
+ setRouteOnElement((String)newValue);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS:
+ setRouteOnElementNS((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.JMS_ROUTER__MESSAGE:
+ setMessage((Message)null);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__CONNECTION:
+ setConnection((Connection)null);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__SESSION:
+ setSession((Session)null);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__JNDI:
+ setJndi((Jndi)null);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK:
+ setHighWaterMark((HighWaterMark)null);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__BEAN_ID:
+ setBeanId(BEAN_ID_EDEFAULT);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__DESTINATION:
+ setDestination(DESTINATION_EDEFAULT);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE:
+ unsetExecuteBefore();
+ return;
+ case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT:
+ setRouteOnElement(ROUTE_ON_ELEMENT_EDEFAULT);
+ return;
+ case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS:
+ setRouteOnElementNS(ROUTE_ON_ELEMENT_NS_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.JMS_ROUTER__MESSAGE:
+ return message != null;
+ case JmsroutingPackage.JMS_ROUTER__CONNECTION:
+ return connection != null;
+ case JmsroutingPackage.JMS_ROUTER__SESSION:
+ return session != null;
+ case JmsroutingPackage.JMS_ROUTER__JNDI:
+ return jndi != null;
+ case JmsroutingPackage.JMS_ROUTER__HIGH_WATER_MARK:
+ return highWaterMark != null;
+ case JmsroutingPackage.JMS_ROUTER__BEAN_ID:
+ return BEAN_ID_EDEFAULT == null ? beanId != null : !BEAN_ID_EDEFAULT.equals(beanId);
+ case JmsroutingPackage.JMS_ROUTER__DESTINATION:
+ return DESTINATION_EDEFAULT == null ? destination != null :
!DESTINATION_EDEFAULT.equals(destination);
+ case JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE:
+ return isSetExecuteBefore();
+ case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT:
+ return ROUTE_ON_ELEMENT_EDEFAULT == null ? routeOnElement != null :
!ROUTE_ON_ELEMENT_EDEFAULT.equals(routeOnElement);
+ case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS:
+ return ROUTE_ON_ELEMENT_NS_EDEFAULT == null ? routeOnElementNS != null :
!ROUTE_ON_ELEMENT_NS_EDEFAULT.equals(routeOnElementNS);
+ }
+ 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(" (beanId: ");
+ result.append(beanId);
+ result.append(", destination: ");
+ result.append(destination);
+ result.append(", executeBefore: ");
+ if (executeBeforeESet) result.append(executeBefore); else
result.append("<unset>");
+ result.append(", routeOnElement: ");
+ result.append(routeOnElement);
+ result.append(", routeOnElementNS: ");
+ result.append(routeOnElementNS);
+ result.append(')');
+ return result.toString();
+ }
+
+} //JmsRouterImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsRouterImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingFactoryImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,339 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.impl;
+
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+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.jmsrouting.AcknowledgeMode;
+import org.jboss.tools.smooks.model.jmsrouting.Connection;
+import org.jboss.tools.smooks.model.jmsrouting.DeliveryMode;
+import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark;
+import org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.JmsRouter;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Jndi;
+import org.jboss.tools.smooks.model.jmsrouting.Message;
+import org.jboss.tools.smooks.model.jmsrouting.MessageType;
+import org.jboss.tools.smooks.model.jmsrouting.Session;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class JmsroutingFactoryImpl extends EFactoryImpl implements JmsroutingFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static JmsroutingFactory init() {
+ try {
+ JmsroutingFactory theJmsroutingFactory =
(
JmsroutingFactory)EPackage.Registry.INSTANCE.getEFactory("http://www...);
+ if (theJmsroutingFactory != null) {
+ return theJmsroutingFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new JmsroutingFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JmsroutingFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case JmsroutingPackage.CONNECTION: return createConnection();
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT: return createJmsDocumentRoot();
+ case JmsroutingPackage.HIGH_WATER_MARK: return createHighWaterMark();
+ case JmsroutingPackage.JNDI: return createJndi();
+ case JmsroutingPackage.MESSAGE: return createMessage();
+ case JmsroutingPackage.JMS_ROUTER: return createJmsRouter();
+ case JmsroutingPackage.SESSION: return createSession();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch (eDataType.getClassifierID()) {
+ case JmsroutingPackage.ACKNOWLEDGE_MODE:
+ return createAcknowledgeModeFromString(eDataType, initialValue);
+ case JmsroutingPackage.DELIVERY_MODE:
+ return createDeliveryModeFromString(eDataType, initialValue);
+ case JmsroutingPackage.MESSAGE_TYPE:
+ return createMessageTypeFromString(eDataType, initialValue);
+ case JmsroutingPackage.ACKNOWLEDGE_MODE_OBJECT:
+ return createAcknowledgeModeObjectFromString(eDataType, initialValue);
+ case JmsroutingPackage.DELIVERY_MODE_OBJECT:
+ return createDeliveryModeObjectFromString(eDataType, initialValue);
+ case JmsroutingPackage.MESSAGE_TYPE_OBJECT:
+ return createMessageTypeObjectFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" +
eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch (eDataType.getClassifierID()) {
+ case JmsroutingPackage.ACKNOWLEDGE_MODE:
+ return convertAcknowledgeModeToString(eDataType, instanceValue);
+ case JmsroutingPackage.DELIVERY_MODE:
+ return convertDeliveryModeToString(eDataType, instanceValue);
+ case JmsroutingPackage.MESSAGE_TYPE:
+ return convertMessageTypeToString(eDataType, instanceValue);
+ case JmsroutingPackage.ACKNOWLEDGE_MODE_OBJECT:
+ return convertAcknowledgeModeObjectToString(eDataType, instanceValue);
+ case JmsroutingPackage.DELIVERY_MODE_OBJECT:
+ return convertDeliveryModeObjectToString(eDataType, instanceValue);
+ case JmsroutingPackage.MESSAGE_TYPE_OBJECT:
+ return convertMessageTypeObjectToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" +
eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Connection createConnection() {
+ ConnectionImpl connection = new ConnectionImpl();
+ return connection;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JmsDocumentRoot createJmsDocumentRoot() {
+ JmsDocumentRootImpl jmsDocumentRoot = new JmsDocumentRootImpl();
+ return jmsDocumentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HighWaterMark createHighWaterMark() {
+ HighWaterMarkImpl highWaterMark = new HighWaterMarkImpl();
+ return highWaterMark;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Jndi createJndi() {
+ JndiImpl jndi = new JndiImpl();
+ return jndi;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Message createMessage() {
+ MessageImpl message = new MessageImpl();
+ return message;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JmsRouter createJmsRouter() {
+ JmsRouterImpl jmsRouter = new JmsRouterImpl();
+ return jmsRouter;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Session createSession() {
+ SessionImpl session = new SessionImpl();
+ return session;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AcknowledgeMode createAcknowledgeModeFromString(EDataType eDataType, String
initialValue) {
+ AcknowledgeMode result = AcknowledgeMode.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" +
initialValue + "' is not a valid enumerator of '" + eDataType.getName()
+ "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertAcknowledgeModeToString(EDataType eDataType, Object instanceValue)
{
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DeliveryMode createDeliveryModeFromString(EDataType eDataType, String
initialValue) {
+ DeliveryMode result = DeliveryMode.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" +
initialValue + "' is not a valid enumerator of '" + eDataType.getName()
+ "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertDeliveryModeToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MessageType createMessageTypeFromString(EDataType eDataType, String initialValue)
{
+ MessageType result = MessageType.get(initialValue);
+ if (result == null) throw new IllegalArgumentException("The value '" +
initialValue + "' is not a valid enumerator of '" + eDataType.getName()
+ "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertMessageTypeToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AcknowledgeMode createAcknowledgeModeObjectFromString(EDataType eDataType, String
initialValue) {
+ return createAcknowledgeModeFromString(JmsroutingPackage.Literals.ACKNOWLEDGE_MODE,
initialValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertAcknowledgeModeObjectToString(EDataType eDataType, Object
instanceValue) {
+ return convertAcknowledgeModeToString(JmsroutingPackage.Literals.ACKNOWLEDGE_MODE,
instanceValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DeliveryMode createDeliveryModeObjectFromString(EDataType eDataType, String
initialValue) {
+ return createDeliveryModeFromString(JmsroutingPackage.Literals.DELIVERY_MODE,
initialValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertDeliveryModeObjectToString(EDataType eDataType, Object
instanceValue) {
+ return convertDeliveryModeToString(JmsroutingPackage.Literals.DELIVERY_MODE,
instanceValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MessageType createMessageTypeObjectFromString(EDataType eDataType, String
initialValue) {
+ return createMessageTypeFromString(JmsroutingPackage.Literals.MESSAGE_TYPE,
initialValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertMessageTypeObjectToString(EDataType eDataType, Object
instanceValue) {
+ return convertMessageTypeToString(JmsroutingPackage.Literals.MESSAGE_TYPE,
instanceValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JmsroutingPackage getJmsroutingPackage() {
+ return (JmsroutingPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static JmsroutingPackage getPackage() {
+ return JmsroutingPackage.eINSTANCE;
+ }
+
+} //JmsroutingFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingPackageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingPackageImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,1105 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.impl;
+
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+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.jmsrouting.AcknowledgeMode;
+import org.jboss.tools.smooks.model.jmsrouting.Connection;
+import org.jboss.tools.smooks.model.jmsrouting.DeliveryMode;
+import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark;
+import org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.JmsRouter;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Jndi;
+import org.jboss.tools.smooks.model.jmsrouting.Message;
+import org.jboss.tools.smooks.model.jmsrouting.MessageType;
+import org.jboss.tools.smooks.model.jmsrouting.Session;
+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 JmsroutingPackageImpl extends EPackageImpl implements JmsroutingPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass connectionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass jmsDocumentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass highWaterMarkEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass jndiEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass messageEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass jmsRouterEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass sessionEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum acknowledgeModeEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum deliveryModeEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum messageTypeEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EDataType acknowledgeModeObjectEDataType = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EDataType deliveryModeObjectEDataType = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EDataType messageTypeObjectEDataType = 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.jmsrouting.JmsroutingPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private JmsroutingPackageImpl() {
+ super(eNS_URI, JmsroutingFactory.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 JmsroutingPackage init() {
+ if (isInited) return
(JmsroutingPackage)EPackage.Registry.INSTANCE.getEPackage(JmsroutingPackage.eNS_URI);
+
+ // Obtain or create and register package
+ JmsroutingPackageImpl theJmsroutingPackage =
(JmsroutingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof
JmsroutingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new
JmsroutingPackageImpl());
+
+ 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
+ theJmsroutingPackage.createPackageContents();
+ theSmooksPackage.createPackageContents();
+ theCommonPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theJmsroutingPackage.initializePackageContents();
+ theSmooksPackage.initializePackageContents();
+ theCommonPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theJmsroutingPackage.freeze();
+
+ return theJmsroutingPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getConnection() {
+ return connectionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getConnection_Factory() {
+ return (EAttribute)connectionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getConnection_SecurityCredential() {
+ return (EAttribute)connectionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getConnection_SecurityPrincipal() {
+ return (EAttribute)connectionEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getJmsDocumentRoot() {
+ return jmsDocumentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJmsDocumentRoot_Mixed() {
+ return (EAttribute)jmsDocumentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJmsDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)jmsDocumentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJmsDocumentRoot_XSISchemaLocation() {
+ return (EReference)jmsDocumentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJmsDocumentRoot_Router() {
+ return (EReference)jmsDocumentRootEClass.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 getJndi() {
+ return jndiEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJndi_ContextFactory() {
+ return (EAttribute)jndiEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJndi_NamingFactory() {
+ return (EAttribute)jndiEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJndi_ProviderUrl() {
+ return (EAttribute)jndiEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getMessage() {
+ return messageEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getMessage_CorrelationIdPattern() {
+ return (EAttribute)messageEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getMessage_DeliveryMode() {
+ return (EAttribute)messageEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getMessage_Priority() {
+ return (EAttribute)messageEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getMessage_TimeToLive() {
+ return (EAttribute)messageEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getMessage_Type() {
+ return (EAttribute)messageEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getJmsRouter() {
+ return jmsRouterEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJmsRouter_Message() {
+ return (EReference)jmsRouterEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJmsRouter_Connection() {
+ return (EReference)jmsRouterEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJmsRouter_Session() {
+ return (EReference)jmsRouterEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJmsRouter_Jndi() {
+ return (EReference)jmsRouterEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJmsRouter_HighWaterMark() {
+ return (EReference)jmsRouterEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJmsRouter_BeanId() {
+ return (EAttribute)jmsRouterEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJmsRouter_Destination() {
+ return (EAttribute)jmsRouterEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJmsRouter_ExecuteBefore() {
+ return (EAttribute)jmsRouterEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJmsRouter_RouteOnElement() {
+ return (EAttribute)jmsRouterEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJmsRouter_RouteOnElementNS() {
+ return (EAttribute)jmsRouterEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSession() {
+ return sessionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSession_AcknowledgeMode() {
+ return (EAttribute)sessionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getSession_Transacted() {
+ return (EAttribute)sessionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getAcknowledgeMode() {
+ return acknowledgeModeEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getDeliveryMode() {
+ return deliveryModeEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getMessageType() {
+ return messageTypeEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDataType getAcknowledgeModeObject() {
+ return acknowledgeModeObjectEDataType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDataType getDeliveryModeObject() {
+ return deliveryModeObjectEDataType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDataType getMessageTypeObject() {
+ return messageTypeObjectEDataType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JmsroutingFactory getJmsroutingFactory() {
+ return (JmsroutingFactory)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
+ connectionEClass = createEClass(CONNECTION);
+ createEAttribute(connectionEClass, CONNECTION__FACTORY);
+ createEAttribute(connectionEClass, CONNECTION__SECURITY_CREDENTIAL);
+ createEAttribute(connectionEClass, CONNECTION__SECURITY_PRINCIPAL);
+
+ jmsDocumentRootEClass = createEClass(JMS_DOCUMENT_ROOT);
+ createEAttribute(jmsDocumentRootEClass, JMS_DOCUMENT_ROOT__MIXED);
+ createEReference(jmsDocumentRootEClass, JMS_DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(jmsDocumentRootEClass, JMS_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(jmsDocumentRootEClass, JMS_DOCUMENT_ROOT__ROUTER);
+
+ highWaterMarkEClass = createEClass(HIGH_WATER_MARK);
+ createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__MARK);
+ createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__POLL_FREQUENCY);
+ createEAttribute(highWaterMarkEClass, HIGH_WATER_MARK__TIMEOUT);
+
+ jndiEClass = createEClass(JNDI);
+ createEAttribute(jndiEClass, JNDI__CONTEXT_FACTORY);
+ createEAttribute(jndiEClass, JNDI__NAMING_FACTORY);
+ createEAttribute(jndiEClass, JNDI__PROVIDER_URL);
+
+ messageEClass = createEClass(MESSAGE);
+ createEAttribute(messageEClass, MESSAGE__CORRELATION_ID_PATTERN);
+ createEAttribute(messageEClass, MESSAGE__DELIVERY_MODE);
+ createEAttribute(messageEClass, MESSAGE__PRIORITY);
+ createEAttribute(messageEClass, MESSAGE__TIME_TO_LIVE);
+ createEAttribute(messageEClass, MESSAGE__TYPE);
+
+ jmsRouterEClass = createEClass(JMS_ROUTER);
+ createEReference(jmsRouterEClass, JMS_ROUTER__MESSAGE);
+ createEReference(jmsRouterEClass, JMS_ROUTER__CONNECTION);
+ createEReference(jmsRouterEClass, JMS_ROUTER__SESSION);
+ createEReference(jmsRouterEClass, JMS_ROUTER__JNDI);
+ createEReference(jmsRouterEClass, JMS_ROUTER__HIGH_WATER_MARK);
+ createEAttribute(jmsRouterEClass, JMS_ROUTER__BEAN_ID);
+ createEAttribute(jmsRouterEClass, JMS_ROUTER__DESTINATION);
+ createEAttribute(jmsRouterEClass, JMS_ROUTER__EXECUTE_BEFORE);
+ createEAttribute(jmsRouterEClass, JMS_ROUTER__ROUTE_ON_ELEMENT);
+ createEAttribute(jmsRouterEClass, JMS_ROUTER__ROUTE_ON_ELEMENT_NS);
+
+ sessionEClass = createEClass(SESSION);
+ createEAttribute(sessionEClass, SESSION__ACKNOWLEDGE_MODE);
+ createEAttribute(sessionEClass, SESSION__TRANSACTED);
+
+ // Create enums
+ acknowledgeModeEEnum = createEEnum(ACKNOWLEDGE_MODE);
+ deliveryModeEEnum = createEEnum(DELIVERY_MODE);
+ messageTypeEEnum = createEEnum(MESSAGE_TYPE);
+
+ // Create data types
+ acknowledgeModeObjectEDataType = createEDataType(ACKNOWLEDGE_MODE_OBJECT);
+ deliveryModeObjectEDataType = createEDataType(DELIVERY_MODE_OBJECT);
+ messageTypeObjectEDataType = createEDataType(MESSAGE_TYPE_OBJECT);
+ }
+
+ /**
+ * <!-- 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
+ jmsRouterEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(connectionEClass, Connection.class, "Connection", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getConnection_Factory(), theXMLTypePackage.getString(),
"factory", "ConnectionFactory", 0, 1, Connection.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getConnection_SecurityCredential(), theXMLTypePackage.getString(),
"securityCredential", null, 0, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getConnection_SecurityPrincipal(), theXMLTypePackage.getString(),
"securityPrincipal", null, 0, 1, Connection.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(jmsDocumentRootEClass, JmsDocumentRoot.class, "JmsDocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getJmsDocumentRoot_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(getJmsDocumentRoot_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(getJmsDocumentRoot_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(getJmsDocumentRoot_Router(), this.getJmsRouter(), null,
"router", 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(jndiEClass, Jndi.class, "Jndi", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getJndi_ContextFactory(), theXMLTypePackage.getString(),
"contextFactory", "org.jnp.interfaces.NamingContextFactory", 0, 1,
Jndi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJndi_NamingFactory(), theXMLTypePackage.getString(),
"namingFactory", "org.jboss.naming:java.naming.factory.url.pkgs", 0,
1, Jndi.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJndi_ProviderUrl(), theXMLTypePackage.getString(),
"providerUrl", "jnp://localhost:1099", 0, 1, Jndi.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+
+ initEClass(messageEClass, Message.class, "Message", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getMessage_CorrelationIdPattern(), theXMLTypePackage.getString(),
"correlationIdPattern", null, 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMessage_DeliveryMode(), this.getDeliveryMode(),
"deliveryMode", "persistent", 0, 1, Message.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMessage_Priority(), theXMLTypePackage.getInt(), "priority",
"4", 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMessage_TimeToLive(), theXMLTypePackage.getLong(),
"timeToLive", "0", 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getMessage_Type(), this.getMessageType(), "type",
"TextMessage", 0, 1, Message.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(jmsRouterEClass, JmsRouter.class, "JmsRouter", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getJmsRouter_Message(), this.getMessage(), null, "message",
null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getJmsRouter_Connection(), this.getConnection(), null,
"connection", null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEReference(getJmsRouter_Session(), this.getSession(), null, "session",
null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getJmsRouter_Jndi(), this.getJndi(), null, "jndi", null, 0, 1,
JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getJmsRouter_HighWaterMark(), this.getHighWaterMark(), null,
"highWaterMark", null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEAttribute(getJmsRouter_BeanId(), theXMLTypePackage.getString(),
"beanId", null, 1, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJmsRouter_Destination(), theXMLTypePackage.getString(),
"destination", null, 1, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJmsRouter_ExecuteBefore(), theXMLTypePackage.getBoolean(),
"executeBefore", "false", 0, 1, JmsRouter.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJmsRouter_RouteOnElement(), theXMLTypePackage.getString(),
"routeOnElement", null, 1, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJmsRouter_RouteOnElementNS(), theXMLTypePackage.getString(),
"routeOnElementNS", null, 0, 1, JmsRouter.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(sessionEClass, Session.class, "Session", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSession_AcknowledgeMode(), this.getAcknowledgeMode(),
"acknowledgeMode", "AUTO_ACKNOWLEDGE", 0, 1, Session.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEAttribute(getSession_Transacted(), theXMLTypePackage.getBoolean(),
"transacted", "false", 0, 1, Session.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Initialize enums and add enum literals
+ initEEnum(acknowledgeModeEEnum, AcknowledgeMode.class, "AcknowledgeMode");
+ addEEnumLiteral(acknowledgeModeEEnum, AcknowledgeMode.AUTOACKNOWLEDGE);
+ addEEnumLiteral(acknowledgeModeEEnum, AcknowledgeMode.CLIENTACKNOWLEDGE);
+ addEEnumLiteral(acknowledgeModeEEnum, AcknowledgeMode.DUPSOKACKNOWLEDGE);
+
+ initEEnum(deliveryModeEEnum, DeliveryMode.class, "DeliveryMode");
+ addEEnumLiteral(deliveryModeEEnum, DeliveryMode.PERSISTENT);
+ addEEnumLiteral(deliveryModeEEnum, DeliveryMode.NON_PERSISTENT);
+
+ initEEnum(messageTypeEEnum, MessageType.class, "MessageType");
+ addEEnumLiteral(messageTypeEEnum, MessageType.TEXT_MESSAGE);
+ addEEnumLiteral(messageTypeEEnum, MessageType.OBJECT_MESSAGE);
+ addEEnumLiteral(messageTypeEEnum, MessageType.MAP_MESSAGE);
+
+ // Initialize data types
+ initEDataType(acknowledgeModeObjectEDataType, AcknowledgeMode.class,
"AcknowledgeModeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);
+ initEDataType(deliveryModeObjectEDataType, DeliveryMode.class,
"DeliveryModeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);
+ initEDataType(messageTypeObjectEDataType, MessageType.class,
"MessageTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS);
+
+ // 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
+ (acknowledgeModeEEnum,
+ source,
+ new String[] {
+ "name", "acknowledgeMode"
+ });
+ addAnnotation
+ (acknowledgeModeObjectEDataType,
+ source,
+ new String[] {
+ "name", "acknowledgeMode:Object",
+ "baseType", "acknowledgeMode"
+ });
+ addAnnotation
+ (connectionEClass,
+ source,
+ new String[] {
+ "name", "connection",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getConnection_Factory(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "factory"
+ });
+ addAnnotation
+ (getConnection_SecurityCredential(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "securityCredential"
+ });
+ addAnnotation
+ (getConnection_SecurityPrincipal(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "securityPrincipal"
+ });
+ addAnnotation
+ (deliveryModeEEnum,
+ source,
+ new String[] {
+ "name", "deliveryMode"
+ });
+ addAnnotation
+ (deliveryModeObjectEDataType,
+ source,
+ new String[] {
+ "name", "deliveryMode:Object",
+ "baseType", "deliveryMode"
+ });
+ addAnnotation
+ (jmsDocumentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getJmsDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getJmsDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getJmsDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getJmsDocumentRoot_Router(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "router",
+ "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
+ (jndiEClass,
+ source,
+ new String[] {
+ "name", "jndi",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getJndi_ContextFactory(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "contextFactory"
+ });
+ addAnnotation
+ (getJndi_NamingFactory(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "namingFactory"
+ });
+ addAnnotation
+ (getJndi_ProviderUrl(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "providerUrl"
+ });
+ addAnnotation
+ (messageEClass,
+ source,
+ new String[] {
+ "name", "message",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getMessage_CorrelationIdPattern(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "correlationIdPattern",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getMessage_DeliveryMode(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "deliveryMode"
+ });
+ addAnnotation
+ (getMessage_Priority(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "priority"
+ });
+ addAnnotation
+ (getMessage_TimeToLive(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "timeToLive"
+ });
+ addAnnotation
+ (getMessage_Type(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "type"
+ });
+ addAnnotation
+ (messageTypeEEnum,
+ source,
+ new String[] {
+ "name", "messageType"
+ });
+ addAnnotation
+ (messageTypeObjectEDataType,
+ source,
+ new String[] {
+ "name", "messageType:Object",
+ "baseType", "messageType"
+ });
+ addAnnotation
+ (jmsRouterEClass,
+ source,
+ new String[] {
+ "name", "router",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getJmsRouter_Message(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "message",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getJmsRouter_Connection(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "connection",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getJmsRouter_Session(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "session",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getJmsRouter_Jndi(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "jndi",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getJmsRouter_HighWaterMark(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "highWaterMark",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getJmsRouter_BeanId(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "beanId"
+ });
+ addAnnotation
+ (getJmsRouter_Destination(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "destination"
+ });
+ addAnnotation
+ (getJmsRouter_ExecuteBefore(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "executeBefore"
+ });
+ addAnnotation
+ (getJmsRouter_RouteOnElement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "routeOnElement"
+ });
+ addAnnotation
+ (getJmsRouter_RouteOnElementNS(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "routeOnElementNS"
+ });
+ addAnnotation
+ (sessionEClass,
+ source,
+ new String[] {
+ "name", "session",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getSession_AcknowledgeMode(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "acknowledgeMode"
+ });
+ addAnnotation
+ (getSession_Transacted(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "transacted"
+ });
+ }
+
+} //JmsroutingPackageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JmsroutingPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JndiImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JndiImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JndiImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,377 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Jndi;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object
'<em><b>Jndi</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl#getContextFactory <em>Context
Factory</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl#getNamingFactory <em>Naming
Factory</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl#getProviderUrl <em>Provider
Url</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class JndiImpl extends EObjectImpl implements Jndi {
+ /**
+ * The default value of the '{@link #getContextFactory() <em>Context
Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getContextFactory()
+ * @generated
+ * @ordered
+ */
+ protected static final String CONTEXT_FACTORY_EDEFAULT =
"org.jnp.interfaces.NamingContextFactory";
+
+ /**
+ * The cached value of the '{@link #getContextFactory() <em>Context
Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getContextFactory()
+ * @generated
+ * @ordered
+ */
+ protected String contextFactory = CONTEXT_FACTORY_EDEFAULT;
+
+ /**
+ * This is true if the Context Factory attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean contextFactoryESet;
+
+ /**
+ * The default value of the '{@link #getNamingFactory() <em>Naming
Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNamingFactory()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAMING_FACTORY_EDEFAULT =
"org.jboss.naming:java.naming.factory.url.pkgs";
+
+ /**
+ * The cached value of the '{@link #getNamingFactory() <em>Naming
Factory</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNamingFactory()
+ * @generated
+ * @ordered
+ */
+ protected String namingFactory = NAMING_FACTORY_EDEFAULT;
+
+ /**
+ * This is true if the Naming Factory attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean namingFactoryESet;
+
+ /**
+ * The default value of the '{@link #getProviderUrl() <em>Provider
Url</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProviderUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String PROVIDER_URL_EDEFAULT = "jnp://localhost:1099";
+
+ /**
+ * The cached value of the '{@link #getProviderUrl() <em>Provider
Url</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProviderUrl()
+ * @generated
+ * @ordered
+ */
+ protected String providerUrl = PROVIDER_URL_EDEFAULT;
+
+ /**
+ * This is true if the Provider Url attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean providerUrlESet;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected JndiImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JmsroutingPackage.Literals.JNDI;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getContextFactory() {
+ return contextFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setContextFactory(String newContextFactory) {
+ String oldContextFactory = contextFactory;
+ contextFactory = newContextFactory;
+ boolean oldContextFactoryESet = contextFactoryESet;
+ contextFactoryESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JNDI__CONTEXT_FACTORY, oldContextFactory, contextFactory,
!oldContextFactoryESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetContextFactory() {
+ String oldContextFactory = contextFactory;
+ boolean oldContextFactoryESet = contextFactoryESet;
+ contextFactory = CONTEXT_FACTORY_EDEFAULT;
+ contextFactoryESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.JNDI__CONTEXT_FACTORY, oldContextFactory, CONTEXT_FACTORY_EDEFAULT,
oldContextFactoryESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetContextFactory() {
+ return contextFactoryESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getNamingFactory() {
+ return namingFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setNamingFactory(String newNamingFactory) {
+ String oldNamingFactory = namingFactory;
+ namingFactory = newNamingFactory;
+ boolean oldNamingFactoryESet = namingFactoryESet;
+ namingFactoryESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JNDI__NAMING_FACTORY, oldNamingFactory, namingFactory,
!oldNamingFactoryESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetNamingFactory() {
+ String oldNamingFactory = namingFactory;
+ boolean oldNamingFactoryESet = namingFactoryESet;
+ namingFactory = NAMING_FACTORY_EDEFAULT;
+ namingFactoryESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.JNDI__NAMING_FACTORY, oldNamingFactory, NAMING_FACTORY_EDEFAULT,
oldNamingFactoryESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetNamingFactory() {
+ return namingFactoryESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getProviderUrl() {
+ return providerUrl;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProviderUrl(String newProviderUrl) {
+ String oldProviderUrl = providerUrl;
+ providerUrl = newProviderUrl;
+ boolean oldProviderUrlESet = providerUrlESet;
+ providerUrlESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.JNDI__PROVIDER_URL, oldProviderUrl, providerUrl, !oldProviderUrlESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetProviderUrl() {
+ String oldProviderUrl = providerUrl;
+ boolean oldProviderUrlESet = providerUrlESet;
+ providerUrl = PROVIDER_URL_EDEFAULT;
+ providerUrlESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.JNDI__PROVIDER_URL, oldProviderUrl, PROVIDER_URL_EDEFAULT,
oldProviderUrlESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetProviderUrl() {
+ return providerUrlESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case JmsroutingPackage.JNDI__CONTEXT_FACTORY:
+ return getContextFactory();
+ case JmsroutingPackage.JNDI__NAMING_FACTORY:
+ return getNamingFactory();
+ case JmsroutingPackage.JNDI__PROVIDER_URL:
+ return getProviderUrl();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case JmsroutingPackage.JNDI__CONTEXT_FACTORY:
+ setContextFactory((String)newValue);
+ return;
+ case JmsroutingPackage.JNDI__NAMING_FACTORY:
+ setNamingFactory((String)newValue);
+ return;
+ case JmsroutingPackage.JNDI__PROVIDER_URL:
+ setProviderUrl((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.JNDI__CONTEXT_FACTORY:
+ unsetContextFactory();
+ return;
+ case JmsroutingPackage.JNDI__NAMING_FACTORY:
+ unsetNamingFactory();
+ return;
+ case JmsroutingPackage.JNDI__PROVIDER_URL:
+ unsetProviderUrl();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.JNDI__CONTEXT_FACTORY:
+ return isSetContextFactory();
+ case JmsroutingPackage.JNDI__NAMING_FACTORY:
+ return isSetNamingFactory();
+ case JmsroutingPackage.JNDI__PROVIDER_URL:
+ return isSetProviderUrl();
+ }
+ 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(" (contextFactory: ");
+ if (contextFactoryESet) result.append(contextFactory); else
result.append("<unset>");
+ result.append(", namingFactory: ");
+ if (namingFactoryESet) result.append(namingFactory); else
result.append("<unset>");
+ result.append(", providerUrl: ");
+ if (providerUrlESet) result.append(providerUrl); else
result.append("<unset>");
+ result.append(')');
+ return result.toString();
+ }
+
+} //JndiImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/JndiImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/MessageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/MessageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/MessageImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,521 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.DeliveryMode;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Message;
+import org.jboss.tools.smooks.model.jmsrouting.MessageType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object
'<em><b>Message</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl#getCorrelationIdPattern
<em>Correlation Id Pattern</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl#getDeliveryMode
<em>Delivery Mode</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl#getPriority
<em>Priority</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl#getTimeToLive <em>Time To
Live</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl#getType
<em>Type</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MessageImpl extends EObjectImpl implements Message {
+ /**
+ * The default value of the '{@link #getCorrelationIdPattern() <em>Correlation
Id Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCorrelationIdPattern()
+ * @generated
+ * @ordered
+ */
+ protected static final String CORRELATION_ID_PATTERN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getCorrelationIdPattern() <em>Correlation
Id Pattern</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCorrelationIdPattern()
+ * @generated
+ * @ordered
+ */
+ protected String correlationIdPattern = CORRELATION_ID_PATTERN_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDeliveryMode() <em>Delivery
Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDeliveryMode()
+ * @generated
+ * @ordered
+ */
+ protected static final DeliveryMode DELIVERY_MODE_EDEFAULT = DeliveryMode.PERSISTENT;
+
+ /**
+ * The cached value of the '{@link #getDeliveryMode() <em>Delivery
Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDeliveryMode()
+ * @generated
+ * @ordered
+ */
+ protected DeliveryMode deliveryMode = DELIVERY_MODE_EDEFAULT;
+
+ /**
+ * This is true if the Delivery Mode attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean deliveryModeESet;
+
+ /**
+ * The default value of the '{@link #getPriority()
<em>Priority</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPriority()
+ * @generated
+ * @ordered
+ */
+ protected static final int PRIORITY_EDEFAULT = 4;
+
+ /**
+ * The cached value of the '{@link #getPriority()
<em>Priority</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPriority()
+ * @generated
+ * @ordered
+ */
+ protected int priority = PRIORITY_EDEFAULT;
+
+ /**
+ * This is true if the Priority attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean priorityESet;
+
+ /**
+ * The default value of the '{@link #getTimeToLive() <em>Time To
Live</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTimeToLive()
+ * @generated
+ * @ordered
+ */
+ protected static final long TIME_TO_LIVE_EDEFAULT = 0L;
+
+ /**
+ * The cached value of the '{@link #getTimeToLive() <em>Time To
Live</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTimeToLive()
+ * @generated
+ * @ordered
+ */
+ protected long timeToLive = TIME_TO_LIVE_EDEFAULT;
+
+ /**
+ * This is true if the Time To Live attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean timeToLiveESet;
+
+ /**
+ * The default value of the '{@link #getType() <em>Type</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected static final MessageType TYPE_EDEFAULT = MessageType.TEXT_MESSAGE;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected MessageType type = TYPE_EDEFAULT;
+
+ /**
+ * This is true if the Type attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean typeESet;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected MessageImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JmsroutingPackage.Literals.MESSAGE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getCorrelationIdPattern() {
+ return correlationIdPattern;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCorrelationIdPattern(String newCorrelationIdPattern) {
+ String oldCorrelationIdPattern = correlationIdPattern;
+ correlationIdPattern = newCorrelationIdPattern;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN, oldCorrelationIdPattern,
correlationIdPattern));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DeliveryMode getDeliveryMode() {
+ return deliveryMode;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDeliveryMode(DeliveryMode newDeliveryMode) {
+ DeliveryMode oldDeliveryMode = deliveryMode;
+ deliveryMode = newDeliveryMode == null ? DELIVERY_MODE_EDEFAULT : newDeliveryMode;
+ boolean oldDeliveryModeESet = deliveryModeESet;
+ deliveryModeESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.MESSAGE__DELIVERY_MODE, oldDeliveryMode, deliveryMode,
!oldDeliveryModeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetDeliveryMode() {
+ DeliveryMode oldDeliveryMode = deliveryMode;
+ boolean oldDeliveryModeESet = deliveryModeESet;
+ deliveryMode = DELIVERY_MODE_EDEFAULT;
+ deliveryModeESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.MESSAGE__DELIVERY_MODE, oldDeliveryMode, DELIVERY_MODE_EDEFAULT,
oldDeliveryModeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetDeliveryMode() {
+ return deliveryModeESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getPriority() {
+ return priority;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPriority(int newPriority) {
+ int oldPriority = priority;
+ priority = newPriority;
+ boolean oldPriorityESet = priorityESet;
+ priorityESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.MESSAGE__PRIORITY, oldPriority, priority, !oldPriorityESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetPriority() {
+ int oldPriority = priority;
+ boolean oldPriorityESet = priorityESet;
+ priority = PRIORITY_EDEFAULT;
+ priorityESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.MESSAGE__PRIORITY, oldPriority, PRIORITY_EDEFAULT, oldPriorityESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetPriority() {
+ return priorityESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public long getTimeToLive() {
+ return timeToLive;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTimeToLive(long newTimeToLive) {
+ long oldTimeToLive = timeToLive;
+ timeToLive = newTimeToLive;
+ boolean oldTimeToLiveESet = timeToLiveESet;
+ timeToLiveESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.MESSAGE__TIME_TO_LIVE, oldTimeToLive, timeToLive, !oldTimeToLiveESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetTimeToLive() {
+ long oldTimeToLive = timeToLive;
+ boolean oldTimeToLiveESet = timeToLiveESet;
+ timeToLive = TIME_TO_LIVE_EDEFAULT;
+ timeToLiveESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.MESSAGE__TIME_TO_LIVE, oldTimeToLive, TIME_TO_LIVE_EDEFAULT,
oldTimeToLiveESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetTimeToLive() {
+ return timeToLiveESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public MessageType getType() {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(MessageType newType) {
+ MessageType oldType = type;
+ type = newType == null ? TYPE_EDEFAULT : newType;
+ boolean oldTypeESet = typeESet;
+ typeESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.MESSAGE__TYPE,
oldType, type, !oldTypeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetType() {
+ MessageType oldType = type;
+ boolean oldTypeESet = typeESet;
+ type = TYPE_EDEFAULT;
+ typeESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.MESSAGE__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetType() {
+ return typeESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN:
+ return getCorrelationIdPattern();
+ case JmsroutingPackage.MESSAGE__DELIVERY_MODE:
+ return getDeliveryMode();
+ case JmsroutingPackage.MESSAGE__PRIORITY:
+ return new Integer(getPriority());
+ case JmsroutingPackage.MESSAGE__TIME_TO_LIVE:
+ return new Long(getTimeToLive());
+ case JmsroutingPackage.MESSAGE__TYPE:
+ return getType();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN:
+ setCorrelationIdPattern((String)newValue);
+ return;
+ case JmsroutingPackage.MESSAGE__DELIVERY_MODE:
+ setDeliveryMode((DeliveryMode)newValue);
+ return;
+ case JmsroutingPackage.MESSAGE__PRIORITY:
+ setPriority(((Integer)newValue).intValue());
+ return;
+ case JmsroutingPackage.MESSAGE__TIME_TO_LIVE:
+ setTimeToLive(((Long)newValue).longValue());
+ return;
+ case JmsroutingPackage.MESSAGE__TYPE:
+ setType((MessageType)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN:
+ setCorrelationIdPattern(CORRELATION_ID_PATTERN_EDEFAULT);
+ return;
+ case JmsroutingPackage.MESSAGE__DELIVERY_MODE:
+ unsetDeliveryMode();
+ return;
+ case JmsroutingPackage.MESSAGE__PRIORITY:
+ unsetPriority();
+ return;
+ case JmsroutingPackage.MESSAGE__TIME_TO_LIVE:
+ unsetTimeToLive();
+ return;
+ case JmsroutingPackage.MESSAGE__TYPE:
+ unsetType();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN:
+ return CORRELATION_ID_PATTERN_EDEFAULT == null ? correlationIdPattern != null :
!CORRELATION_ID_PATTERN_EDEFAULT.equals(correlationIdPattern);
+ case JmsroutingPackage.MESSAGE__DELIVERY_MODE:
+ return isSetDeliveryMode();
+ case JmsroutingPackage.MESSAGE__PRIORITY:
+ return isSetPriority();
+ case JmsroutingPackage.MESSAGE__TIME_TO_LIVE:
+ return isSetTimeToLive();
+ case JmsroutingPackage.MESSAGE__TYPE:
+ return isSetType();
+ }
+ 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(" (correlationIdPattern: ");
+ result.append(correlationIdPattern);
+ result.append(", deliveryMode: ");
+ if (deliveryModeESet) result.append(deliveryMode); else
result.append("<unset>");
+ result.append(", priority: ");
+ if (priorityESet) result.append(priority); else
result.append("<unset>");
+ result.append(", timeToLive: ");
+ if (timeToLiveESet) result.append(timeToLive); else
result.append("<unset>");
+ result.append(", type: ");
+ if (typeESet) result.append(type); else result.append("<unset>");
+ result.append(')');
+ return result.toString();
+ }
+
+} //MessageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/MessageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/SessionImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/SessionImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/SessionImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,290 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.AcknowledgeMode;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Session;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object
'<em><b>Session</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl#getAcknowledgeMode
<em>Acknowledge Mode</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl#isTransacted
<em>Transacted</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class SessionImpl extends EObjectImpl implements Session {
+ /**
+ * The default value of the '{@link #getAcknowledgeMode() <em>Acknowledge
Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAcknowledgeMode()
+ * @generated
+ * @ordered
+ */
+ protected static final AcknowledgeMode ACKNOWLEDGE_MODE_EDEFAULT =
AcknowledgeMode.AUTOACKNOWLEDGE;
+
+ /**
+ * The cached value of the '{@link #getAcknowledgeMode() <em>Acknowledge
Mode</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getAcknowledgeMode()
+ * @generated
+ * @ordered
+ */
+ protected AcknowledgeMode acknowledgeMode = ACKNOWLEDGE_MODE_EDEFAULT;
+
+ /**
+ * This is true if the Acknowledge Mode attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean acknowledgeModeESet;
+
+ /**
+ * The default value of the '{@link #isTransacted()
<em>Transacted</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isTransacted()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean TRANSACTED_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isTransacted()
<em>Transacted</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isTransacted()
+ * @generated
+ * @ordered
+ */
+ protected boolean transacted = TRANSACTED_EDEFAULT;
+
+ /**
+ * This is true if the Transacted attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean transactedESet;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SessionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JmsroutingPackage.Literals.SESSION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public AcknowledgeMode getAcknowledgeMode() {
+ return acknowledgeMode;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setAcknowledgeMode(AcknowledgeMode newAcknowledgeMode) {
+ AcknowledgeMode oldAcknowledgeMode = acknowledgeMode;
+ acknowledgeMode = newAcknowledgeMode == null ? ACKNOWLEDGE_MODE_EDEFAULT :
newAcknowledgeMode;
+ boolean oldAcknowledgeModeESet = acknowledgeModeESet;
+ acknowledgeModeESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE, oldAcknowledgeMode, acknowledgeMode,
!oldAcknowledgeModeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetAcknowledgeMode() {
+ AcknowledgeMode oldAcknowledgeMode = acknowledgeMode;
+ boolean oldAcknowledgeModeESet = acknowledgeModeESet;
+ acknowledgeMode = ACKNOWLEDGE_MODE_EDEFAULT;
+ acknowledgeModeESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE, oldAcknowledgeMode,
ACKNOWLEDGE_MODE_EDEFAULT, oldAcknowledgeModeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetAcknowledgeMode() {
+ return acknowledgeModeESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isTransacted() {
+ return transacted;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTransacted(boolean newTransacted) {
+ boolean oldTransacted = transacted;
+ transacted = newTransacted;
+ boolean oldTransactedESet = transactedESet;
+ transactedESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.SESSION__TRANSACTED, oldTransacted, transacted, !oldTransactedESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetTransacted() {
+ boolean oldTransacted = transacted;
+ boolean oldTransactedESet = transactedESet;
+ transacted = TRANSACTED_EDEFAULT;
+ transactedESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JmsroutingPackage.SESSION__TRANSACTED, oldTransacted, TRANSACTED_EDEFAULT,
oldTransactedESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetTransacted() {
+ return transactedESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE:
+ return getAcknowledgeMode();
+ case JmsroutingPackage.SESSION__TRANSACTED:
+ return isTransacted() ? Boolean.TRUE : Boolean.FALSE;
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE:
+ setAcknowledgeMode((AcknowledgeMode)newValue);
+ return;
+ case JmsroutingPackage.SESSION__TRANSACTED:
+ setTransacted(((Boolean)newValue).booleanValue());
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE:
+ unsetAcknowledgeMode();
+ return;
+ case JmsroutingPackage.SESSION__TRANSACTED:
+ unsetTransacted();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE:
+ return isSetAcknowledgeMode();
+ case JmsroutingPackage.SESSION__TRANSACTED:
+ return isSetTransacted();
+ }
+ 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(" (acknowledgeMode: ");
+ if (acknowledgeModeESet) result.append(acknowledgeMode); else
result.append("<unset>");
+ result.append(", transacted: ");
+ if (transactedESet) result.append(transacted); else
result.append("<unset>");
+ result.append(')');
+ return result.toString();
+ }
+
+} //SessionImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/SessionImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/ConnectionItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/ConnectionItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/ConnectionItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,209 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.Connection;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.Connection} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ConnectionItemProvider
+ 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 ConnectionItemProvider(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);
+
+ addFactoryPropertyDescriptor(object);
+ addSecurityCredentialPropertyDescriptor(object);
+ addSecurityPrincipalPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Factory feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addFactoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Connection_factory_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Connection_factory_feature", "_UI_Connection_type"),
+ JmsroutingPackage.Literals.CONNECTION__FACTORY,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Security Credential feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSecurityCredentialPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Connection_securityCredential_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Connection_securityCredential_feature", "_UI_Connection_type"),
+ JmsroutingPackage.Literals.CONNECTION__SECURITY_CREDENTIAL,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Security Principal feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSecurityPrincipalPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Connection_securityPrincipal_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Connection_securityPrincipal_feature", "_UI_Connection_type"),
+ JmsroutingPackage.Literals.CONNECTION__SECURITY_PRINCIPAL,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns Connection.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/Connection"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Connection)object).getFactory();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Connection_type") :
+ getString("_UI_Connection_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(Connection.class)) {
+ case JmsroutingPackage.CONNECTION__FACTORY:
+ case JmsroutingPackage.CONNECTION__SECURITY_CREDENTIAL:
+ case JmsroutingPackage.CONNECTION__SECURITY_PRINCIPAL:
+ 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 Jmsrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/ConnectionItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/HighWaterMarkItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/HighWaterMarkItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/HighWaterMarkItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,207 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.HighWaterMark;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.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"),
+ JmsroutingPackage.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"),
+ JmsroutingPackage.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"),
+ JmsroutingPackage.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 JmsroutingPackage.HIGH_WATER_MARK__MARK:
+ case JmsroutingPackage.HIGH_WATER_MARK__POLL_FREQUENCY:
+ case JmsroutingPackage.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 Jmsrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/HighWaterMarkItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsDocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsDocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsDocumentRootItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.JmsDocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class JmsDocumentRootItemProvider
+ 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 JmsDocumentRootItemProvider(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(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER);
+ }
+ 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 JmsDocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/JmsDocumentRoot"));
+ }
+
+ /**
+ * 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_JmsDocumentRoot_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(JmsDocumentRoot.class)) {
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT__ROUTER:
+ 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
+ (JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER,
+ JmsroutingFactory.eINSTANCE.createJmsRouter()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Jmsrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsDocumentRootItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsRouterItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsRouterItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsRouterItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,323 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.model.jmsrouting.JmsRouter;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class JmsRouterItemProvider
+ 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 JmsRouterItemProvider(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);
+
+ addBeanIdPropertyDescriptor(object);
+ addDestinationPropertyDescriptor(object);
+ addExecuteBeforePropertyDescriptor(object);
+ addRouteOnElementPropertyDescriptor(object);
+ addRouteOnElementNSPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Bean Id feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addBeanIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JmsRouter_beanId_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JmsRouter_beanId_feature", "_UI_JmsRouter_type"),
+ JmsroutingPackage.Literals.JMS_ROUTER__BEAN_ID,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Destination feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addDestinationPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JmsRouter_destination_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JmsRouter_destination_feature", "_UI_JmsRouter_type"),
+ JmsroutingPackage.Literals.JMS_ROUTER__DESTINATION,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Execute Before feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addExecuteBeforePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JmsRouter_executeBefore_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JmsRouter_executeBefore_feature", "_UI_JmsRouter_type"),
+ JmsroutingPackage.Literals.JMS_ROUTER__EXECUTE_BEFORE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Route On Element feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addRouteOnElementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JmsRouter_routeOnElement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JmsRouter_routeOnElement_feature", "_UI_JmsRouter_type"),
+ JmsroutingPackage.Literals.JMS_ROUTER__ROUTE_ON_ELEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Route On Element NS feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addRouteOnElementNSPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JmsRouter_routeOnElementNS_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JmsRouter_routeOnElementNS_feature", "_UI_JmsRouter_type"),
+ JmsroutingPackage.Literals.JMS_ROUTER__ROUTE_ON_ELEMENT_NS,
+ 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(JmsroutingPackage.Literals.JMS_ROUTER__MESSAGE);
+ childrenFeatures.add(JmsroutingPackage.Literals.JMS_ROUTER__CONNECTION);
+ childrenFeatures.add(JmsroutingPackage.Literals.JMS_ROUTER__SESSION);
+ childrenFeatures.add(JmsroutingPackage.Literals.JMS_ROUTER__JNDI);
+ childrenFeatures.add(JmsroutingPackage.Literals.JMS_ROUTER__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 JmsRouter.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/JmsRouter"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((JmsRouter)object).getTargetProfile();
+ return label == null || label.length() == 0 ?
+ getString("_UI_JmsRouter_type") :
+ getString("_UI_JmsRouter_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(JmsRouter.class)) {
+ case JmsroutingPackage.JMS_ROUTER__BEAN_ID:
+ case JmsroutingPackage.JMS_ROUTER__DESTINATION:
+ case JmsroutingPackage.JMS_ROUTER__EXECUTE_BEFORE:
+ case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT:
+ case JmsroutingPackage.JMS_ROUTER__ROUTE_ON_ELEMENT_NS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
+ return;
+ case JmsroutingPackage.JMS_ROUTER__MESSAGE:
+ case JmsroutingPackage.JMS_ROUTER__CONNECTION:
+ case JmsroutingPackage.JMS_ROUTER__SESSION:
+ case JmsroutingPackage.JMS_ROUTER__JNDI:
+ case JmsroutingPackage.JMS_ROUTER__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
+ (JmsroutingPackage.Literals.JMS_ROUTER__MESSAGE,
+ JmsroutingFactory.eINSTANCE.createMessage()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (JmsroutingPackage.Literals.JMS_ROUTER__CONNECTION,
+ JmsroutingFactory.eINSTANCE.createConnection()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (JmsroutingPackage.Literals.JMS_ROUTER__SESSION,
+ JmsroutingFactory.eINSTANCE.createSession()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (JmsroutingPackage.Literals.JMS_ROUTER__JNDI,
+ JmsroutingFactory.eINSTANCE.createJndi()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (JmsroutingPackage.Literals.JMS_ROUTER__HIGH_WATER_MARK,
+ JmsroutingFactory.eINSTANCE.createHighWaterMark()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Jmsrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsRouterItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/Jmsrouting1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/Jmsrouting1EditPlugin.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/Jmsrouting1EditPlugin.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,93 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the Jms-routing-1 edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class Jmsrouting1EditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final Jmsrouting1EditPlugin INSTANCE = new Jmsrouting1EditPlugin();
+
+ /**
+ * 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 Jmsrouting1EditPlugin() {
+ super
+ (new ResourceLocator [] {
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/Jmsrouting1EditPlugin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsroutingItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsroutingItemProviderAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsroutingItemProviderAdapterFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,346 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.util.JmsroutingAdapterFactory;
+
+/**
+ * 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 JmsroutingItemProviderAdapterFactory extends JmsroutingAdapterFactory
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 JmsroutingItemProviderAdapterFactory() {
+ 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.jmsrouting.Connection} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ConnectionItemProvider connectionItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.Connection}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createConnectionAdapter() {
+ if (connectionItemProvider == null) {
+ connectionItemProvider = new ConnectionItemProvider(this);
+ }
+
+ return connectionItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected JmsDocumentRootItemProvider jmsDocumentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createJmsDocumentRootAdapter() {
+ if (jmsDocumentRootItemProvider == null) {
+ jmsDocumentRootItemProvider = new JmsDocumentRootItemProvider(this);
+ }
+
+ return jmsDocumentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.jmsrouting.HighWaterMark} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HighWaterMarkItemProvider highWaterMarkItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.Jndi} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected JndiItemProvider jndiItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.jmsrouting.Jndi}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createJndiAdapter() {
+ if (jndiItemProvider == null) {
+ jndiItemProvider = new JndiItemProvider(this);
+ }
+
+ return jndiItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.jmsrouting.Message} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected MessageItemProvider messageItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.Message}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createMessageAdapter() {
+ if (messageItemProvider == null) {
+ messageItemProvider = new MessageItemProvider(this);
+ }
+
+ return messageItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected JmsRouterItemProvider jmsRouterItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createJmsRouterAdapter() {
+ if (jmsRouterItemProvider == null) {
+ jmsRouterItemProvider = new JmsRouterItemProvider(this);
+ }
+
+ return jmsRouterItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.jmsrouting.Session} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SessionItemProvider sessionItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.Session}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createSessionAdapter() {
+ if (sessionItemProvider == null) {
+ sessionItemProvider = new SessionItemProvider(this);
+ }
+
+ return sessionItemProvider;
+ }
+
+ /**
+ * 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 (connectionItemProvider != null) connectionItemProvider.dispose();
+ if (jmsDocumentRootItemProvider != null) jmsDocumentRootItemProvider.dispose();
+ if (highWaterMarkItemProvider != null) highWaterMarkItemProvider.dispose();
+ if (jndiItemProvider != null) jndiItemProvider.dispose();
+ if (messageItemProvider != null) messageItemProvider.dispose();
+ if (jmsRouterItemProvider != null) jmsRouterItemProvider.dispose();
+ if (sessionItemProvider != null) sessionItemProvider.dispose();
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JmsroutingItemProviderAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JndiItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JndiItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JndiItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,209 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Jndi;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.Jndi} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class JndiItemProvider
+ 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 JndiItemProvider(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);
+
+ addContextFactoryPropertyDescriptor(object);
+ addNamingFactoryPropertyDescriptor(object);
+ addProviderUrlPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Context Factory feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addContextFactoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Jndi_contextFactory_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Jndi_contextFactory_feature", "_UI_Jndi_type"),
+ JmsroutingPackage.Literals.JNDI__CONTEXT_FACTORY,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Naming Factory feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addNamingFactoryPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Jndi_namingFactory_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Jndi_namingFactory_feature", "_UI_Jndi_type"),
+ JmsroutingPackage.Literals.JNDI__NAMING_FACTORY,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Provider Url feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addProviderUrlPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Jndi_providerUrl_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Jndi_providerUrl_feature", "_UI_Jndi_type"),
+ JmsroutingPackage.Literals.JNDI__PROVIDER_URL,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns Jndi.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/Jndi"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Jndi)object).getContextFactory();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Jndi_type") :
+ getString("_UI_Jndi_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(Jndi.class)) {
+ case JmsroutingPackage.JNDI__CONTEXT_FACTORY:
+ case JmsroutingPackage.JNDI__NAMING_FACTORY:
+ case JmsroutingPackage.JNDI__PROVIDER_URL:
+ 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 Jmsrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/JndiItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/MessageItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/MessageItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/MessageItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,257 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Message;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.Message} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class MessageItemProvider
+ 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 MessageItemProvider(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);
+
+ addCorrelationIdPatternPropertyDescriptor(object);
+ addDeliveryModePropertyDescriptor(object);
+ addPriorityPropertyDescriptor(object);
+ addTimeToLivePropertyDescriptor(object);
+ addTypePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Correlation Id Pattern feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addCorrelationIdPatternPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Message_correlationIdPattern_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Message_correlationIdPattern_feature", "_UI_Message_type"),
+ JmsroutingPackage.Literals.MESSAGE__CORRELATION_ID_PATTERN,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Delivery Mode feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addDeliveryModePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Message_deliveryMode_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Message_deliveryMode_feature", "_UI_Message_type"),
+ JmsroutingPackage.Literals.MESSAGE__DELIVERY_MODE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Priority feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addPriorityPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Message_priority_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Message_priority_feature", "_UI_Message_type"),
+ JmsroutingPackage.Literals.MESSAGE__PRIORITY,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Time To Live feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addTimeToLivePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Message_timeToLive_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Message_timeToLive_feature", "_UI_Message_type"),
+ JmsroutingPackage.Literals.MESSAGE__TIME_TO_LIVE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Type feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addTypePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Message_type_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Message_type_feature", "_UI_Message_type"),
+ JmsroutingPackage.Literals.MESSAGE__TYPE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns Message.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/Message"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Message)object).getCorrelationIdPattern();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Message_type") :
+ getString("_UI_Message_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(Message.class)) {
+ case JmsroutingPackage.MESSAGE__CORRELATION_ID_PATTERN:
+ case JmsroutingPackage.MESSAGE__DELIVERY_MODE:
+ case JmsroutingPackage.MESSAGE__PRIORITY:
+ case JmsroutingPackage.MESSAGE__TIME_TO_LIVE:
+ case JmsroutingPackage.MESSAGE__TYPE:
+ 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 Jmsrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/MessageItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/SessionItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/SessionItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/SessionItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,187 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.AcknowledgeMode;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Session;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.Session} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class SessionItemProvider
+ 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 SessionItemProvider(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);
+
+ addAcknowledgeModePropertyDescriptor(object);
+ addTransactedPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Acknowledge Mode feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addAcknowledgeModePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Session_acknowledgeMode_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Session_acknowledgeMode_feature", "_UI_Session_type"),
+ JmsroutingPackage.Literals.SESSION__ACKNOWLEDGE_MODE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Transacted feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addTransactedPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Session_transacted_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Session_transacted_feature", "_UI_Session_type"),
+ JmsroutingPackage.Literals.SESSION__TRANSACTED,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns Session.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/Session"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ AcknowledgeMode labelValue = ((Session)object).getAcknowledgeMode();
+ String label = labelValue == null ? null : labelValue.toString();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Session_type") :
+ getString("_UI_Session_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(Session.class)) {
+ case JmsroutingPackage.SESSION__ACKNOWLEDGE_MODE:
+ case JmsroutingPackage.SESSION__TRANSACTED:
+ 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 Jmsrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/SessionItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingAdapterFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,313 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.Connection;
+import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark;
+import org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.JmsRouter;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Jndi;
+import org.jboss.tools.smooks.model.jmsrouting.Message;
+import org.jboss.tools.smooks.model.jmsrouting.Session;
+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.jmsrouting.JmsroutingPackage
+ * @generated
+ */
+public class JmsroutingAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static JmsroutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JmsroutingAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = JmsroutingPackage.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 JmsroutingSwitch<Adapter> modelSwitch =
+ new JmsroutingSwitch<Adapter>() {
+ @Override
+ public Adapter caseConnection(Connection object) {
+ return createConnectionAdapter();
+ }
+ @Override
+ public Adapter caseJmsDocumentRoot(JmsDocumentRoot object) {
+ return createJmsDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseHighWaterMark(HighWaterMark object) {
+ return createHighWaterMarkAdapter();
+ }
+ @Override
+ public Adapter caseJndi(Jndi object) {
+ return createJndiAdapter();
+ }
+ @Override
+ public Adapter caseMessage(Message object) {
+ return createMessageAdapter();
+ }
+ @Override
+ public Adapter caseJmsRouter(JmsRouter object) {
+ return createJmsRouterAdapter();
+ }
+ @Override
+ public Adapter caseSession(Session object) {
+ return createSessionAdapter();
+ }
+ @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.jmsrouting.Connection <em>Connection</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.jmsrouting.Connection
+ * @generated
+ */
+ public Adapter createConnectionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot <em>Jms 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.jmsrouting.JmsDocumentRoot
+ * @generated
+ */
+ public Adapter createJmsDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.HighWaterMark
+ * @generated
+ */
+ public Adapter createHighWaterMarkAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.jmsrouting.Jndi <em>Jndi</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.jmsrouting.Jndi
+ * @generated
+ */
+ public Adapter createJndiAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.jmsrouting.Message <em>Message</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.jmsrouting.Message
+ * @generated
+ */
+ public Adapter createMessageAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.jmsrouting.JmsRouter <em>Jms Router</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.jmsrouting.JmsRouter
+ * @generated
+ */
+ public Adapter createJmsRouterAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.jmsrouting.Session <em>Session</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.jmsrouting.Session
+ * @generated
+ */
+ public Adapter createSessionAdapter() {
+ 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;
+ }
+
+} //JmsroutingAdapterFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceFactoryImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.util.JmsroutingResourceImpl
+ * @generated
+ */
+public class JmsroutingResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JmsroutingResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new JmsroutingResourceImpl(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;
+ }
+
+} //JmsroutingResourceFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.util.JmsroutingResourceFactoryImpl
+ * @generated
+ */
+public class JmsroutingResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public JmsroutingResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //JmsroutingResourceImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingSwitch.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingSwitch.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingSwitch.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,331 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.Connection;
+import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark;
+import org.jboss.tools.smooks.model.jmsrouting.JmsDocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.JmsRouter;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Jndi;
+import org.jboss.tools.smooks.model.jmsrouting.Message;
+import org.jboss.tools.smooks.model.jmsrouting.Session;
+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.jmsrouting.JmsroutingPackage
+ * @generated
+ */
+public class JmsroutingSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static JmsroutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JmsroutingSwitch() {
+ if (modelPackage == null) {
+ modelPackage = JmsroutingPackage.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 JmsroutingPackage.CONNECTION: {
+ Connection connection = (Connection)theEObject;
+ T result = caseConnection(connection);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case JmsroutingPackage.JMS_DOCUMENT_ROOT: {
+ JmsDocumentRoot jmsDocumentRoot = (JmsDocumentRoot)theEObject;
+ T result = caseJmsDocumentRoot(jmsDocumentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case JmsroutingPackage.HIGH_WATER_MARK: {
+ HighWaterMark highWaterMark = (HighWaterMark)theEObject;
+ T result = caseHighWaterMark(highWaterMark);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case JmsroutingPackage.JNDI: {
+ Jndi jndi = (Jndi)theEObject;
+ T result = caseJndi(jndi);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case JmsroutingPackage.MESSAGE: {
+ Message message = (Message)theEObject;
+ T result = caseMessage(message);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case JmsroutingPackage.JMS_ROUTER: {
+ JmsRouter jmsRouter = (JmsRouter)theEObject;
+ T result = caseJmsRouter(jmsRouter);
+ if (result == null) result = caseElementVisitor(jmsRouter);
+ if (result == null) result = caseAbstractResourceConfig(jmsRouter);
+ if (result == null) result = caseAbstractAnyType(jmsRouter);
+ if (result == null) result = caseAnyType(jmsRouter);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case JmsroutingPackage.SESSION: {
+ Session session = (Session)theEObject;
+ T result = caseSession(session);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Connection</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>Connection</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseConnection(Connection object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Jms
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>Jms
Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseJmsDocumentRoot(JmsDocumentRoot 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>Jndi</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>Jndi</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseJndi(Jndi object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Message</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>Message</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMessage(Message object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Jms
Router</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>Jms
Router</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseJmsRouter(JmsRouter object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Session</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>Session</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSession(Session 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;
+ }
+
+} //JmsroutingSwitch
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingXMLProcessor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingXMLProcessor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingXMLProcessor.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.jmsrouting.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.jmsrouting.JmsroutingPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class JmsroutingXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JmsroutingXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ JmsroutingPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the
JmsroutingResourceFactoryImpl 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 JmsroutingResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new JmsroutingResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //JmsroutingXMLProcessor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/util/JmsroutingXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonDocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonDocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonDocumentRoot.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,118 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json;
+
+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.json.JsonDocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.JsonDocumentRoot#getReader
<em>Reader</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface JsonDocumentRoot 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.json.JsonPackage#getJsonDocumentRoot_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.json.JsonPackage#getJsonDocumentRoot_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.json.JsonPackage#getJsonDocumentRoot_XSISchemaLocation()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>Reader</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * JSON Reader Configuration
+ * The JSON reader reads a JSON stream and converts it to SAX events that
Smooks
+ * can process.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Reader</em>' containment
reference.
+ * @see #setReader(JsonReader)
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonDocumentRoot_Reader()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='reader'
namespace='##targetNamespace'
affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader&...
+ * @generated
+ */
+ JsonReader getReader();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot#getReader
<em>Reader</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Reader</em>' containment
reference.
+ * @see #getReader()
+ * @generated
+ */
+ void setReader(JsonReader value);
+
+} // JsonDocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonDocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,73 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json;
+
+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.json.JsonPackage
+ * @generated
+ */
+public interface JsonFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ JsonFactory eINSTANCE = org.jboss.tools.smooks.model.json.impl.JsonFactoryImpl.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
+ */
+ JsonDocumentRoot createJsonDocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>Key</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Key</em>'.
+ * @generated
+ */
+ Key createKey();
+
+ /**
+ * Returns a new object of class '<em>Key Map</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Key Map</em>'.
+ * @generated
+ */
+ KeyMap createKeyMap();
+
+ /**
+ * Returns a new object of class '<em>Reader</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Reader</em>'.
+ * @generated
+ */
+ JsonReader createJsonReader();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ JsonPackage getJsonPackage();
+
+} //JsonFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonPackage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonPackage.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonPackage.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,731 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json;
+
+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 JSON Reader Configuration
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.json.JsonFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface JsonPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "json";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.milyn.org/xsd/smooks/json-1.1.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "json";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ JsonPackage eINSTANCE = org.jboss.tools.smooks.model.json.impl.JsonPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getJsonDocumentRoot()
+ * @generated
+ */
+ int JSON_DOCUMENT_ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_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 JSON_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 JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Reader</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_DOCUMENT_ROOT__READER = 3;
+
+ /**
+ * The number of structural features of the '<em>Document Root</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.jboss.tools.smooks.model.json.impl.KeyImpl
<em>Key</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.KeyImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getKey()
+ * @generated
+ */
+ int KEY = 1;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int KEY__VALUE = 0;
+
+ /**
+ * The feature id for the '<em><b>From</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int KEY__FROM = 1;
+
+ /**
+ * The feature id for the '<em><b>To</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int KEY__TO = 2;
+
+ /**
+ * The number of structural features of the '<em>Key</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int KEY_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.json.impl.KeyMapImpl <em>Key Map</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.KeyMapImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getKeyMap()
+ * @generated
+ */
+ int KEY_MAP = 2;
+
+ /**
+ * The feature id for the '<em><b>Key</b></em>'
containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int KEY_MAP__KEY = 0;
+
+ /**
+ * The number of structural features of the '<em>Key Map</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int KEY_MAP_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.json.impl.JsonReaderImpl <em>Reader</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.JsonReaderImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getJsonReader()
+ * @generated
+ */
+ int JSON_READER = 3;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__MIXED = SmooksPackage.ABSTRACT_READER__MIXED;
+
+ /**
+ * The feature id for the '<em><b>Any</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__ANY = SmooksPackage.ABSTRACT_READER__ANY;
+
+ /**
+ * The feature id for the '<em><b>Any
Attribute</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__ANY_ATTRIBUTE = SmooksPackage.ABSTRACT_READER__ANY_ATTRIBUTE;
+
+ /**
+ * The feature id for the '<em><b>Target
Profile</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__TARGET_PROFILE = SmooksPackage.ABSTRACT_READER__TARGET_PROFILE;
+
+ /**
+ * The feature id for the '<em><b>Key Map</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__KEY_MAP = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Array Element
Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__ARRAY_ELEMENT_NAME = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Encoding</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__ENCODING = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Illegal Element Name Char
Replacement</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT =
SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Key Prefix On
Numeric</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__KEY_PREFIX_ON_NUMERIC = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT +
4;
+
+ /**
+ * The feature id for the '<em><b>Key Whitspace
Replacement</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__KEY_WHITSPACE_REPLACEMENT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT
+ 5;
+
+ /**
+ * The feature id for the '<em><b>Null Value
Replacement</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__NULL_VALUE_REPLACEMENT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT +
6;
+
+ /**
+ * The feature id for the '<em><b>Root Name</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER__ROOT_NAME = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 7;
+
+ /**
+ * The number of structural features of the '<em>Reader</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int JSON_READER_FEATURE_COUNT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 8;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot <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.json.JsonDocumentRoot
+ * @generated
+ */
+ EClass getJsonDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot#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.json.JsonDocumentRoot#getMixed()
+ * @see #getJsonDocumentRoot()
+ * @generated
+ */
+ EAttribute getJsonDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot#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.json.JsonDocumentRoot#getXMLNSPrefixMap()
+ * @see #getJsonDocumentRoot()
+ * @generated
+ */
+ EReference getJsonDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot#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.json.JsonDocumentRoot#getXSISchemaLocation()
+ * @see #getJsonDocumentRoot()
+ * @generated
+ */
+ EReference getJsonDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot#getReader
<em>Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Reader</em>'.
+ * @see org.jboss.tools.smooks.model.json.JsonDocumentRoot#getReader()
+ * @see #getJsonDocumentRoot()
+ * @generated
+ */
+ EReference getJsonDocumentRoot_Reader();
+
+ /**
+ * Returns the meta object for class '{@link org.jboss.tools.smooks.model.json.Key
<em>Key</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Key</em>'.
+ * @see org.jboss.tools.smooks.model.json.Key
+ * @generated
+ */
+ EClass getKey();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.Key#getValue <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Value</em>'.
+ * @see org.jboss.tools.smooks.model.json.Key#getValue()
+ * @see #getKey()
+ * @generated
+ */
+ EAttribute getKey_Value();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.Key#getFrom <em>From</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>From</em>'.
+ * @see org.jboss.tools.smooks.model.json.Key#getFrom()
+ * @see #getKey()
+ * @generated
+ */
+ EAttribute getKey_From();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.Key#getTo <em>To</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>To</em>'.
+ * @see org.jboss.tools.smooks.model.json.Key#getTo()
+ * @see #getKey()
+ * @generated
+ */
+ EAttribute getKey_To();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.json.KeyMap <em>Key Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Key Map</em>'.
+ * @see org.jboss.tools.smooks.model.json.KeyMap
+ * @generated
+ */
+ EClass getKeyMap();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link
org.jboss.tools.smooks.model.json.KeyMap#getKey <em>Key</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list
'<em>Key</em>'.
+ * @see org.jboss.tools.smooks.model.json.KeyMap#getKey()
+ * @see #getKeyMap()
+ * @generated
+ */
+ EReference getKeyMap_Key();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.json.JsonReader <em>Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Reader</em>'.
+ * @see org.jboss.tools.smooks.model.json.JsonReader
+ * @generated
+ */
+ EClass getJsonReader();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.json.JsonReader#getKeyMap <em>Key
Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Key
Map</em>'.
+ * @see org.jboss.tools.smooks.model.json.JsonReader#getKeyMap()
+ * @see #getJsonReader()
+ * @generated
+ */
+ EReference getJsonReader_KeyMap();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName <em>Array Element
Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Array Element
Name</em>'.
+ * @see org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName()
+ * @see #getJsonReader()
+ * @generated
+ */
+ EAttribute getJsonReader_ArrayElementName();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.JsonReader#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.json.JsonReader#getEncoding()
+ * @see #getJsonReader()
+ * @generated
+ */
+ EAttribute getJsonReader_Encoding();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.JsonReader#getIllegalElementNameCharReplacement
<em>Illegal Element Name Char Replacement</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Illegal Element Name Char
Replacement</em>'.
+ * @see
org.jboss.tools.smooks.model.json.JsonReader#getIllegalElementNameCharReplacement()
+ * @see #getJsonReader()
+ * @generated
+ */
+ EAttribute getJsonReader_IllegalElementNameCharReplacement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.JsonReader#getKeyPrefixOnNumeric <em>Key Prefix On
Numeric</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Key Prefix On
Numeric</em>'.
+ * @see org.jboss.tools.smooks.model.json.JsonReader#getKeyPrefixOnNumeric()
+ * @see #getJsonReader()
+ * @generated
+ */
+ EAttribute getJsonReader_KeyPrefixOnNumeric();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.JsonReader#getKeyWhitspaceReplacement <em>Key
Whitspace Replacement</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Key Whitspace
Replacement</em>'.
+ * @see org.jboss.tools.smooks.model.json.JsonReader#getKeyWhitspaceReplacement()
+ * @see #getJsonReader()
+ * @generated
+ */
+ EAttribute getJsonReader_KeyWhitspaceReplacement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.JsonReader#getNullValueReplacement <em>Null Value
Replacement</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Null Value
Replacement</em>'.
+ * @see org.jboss.tools.smooks.model.json.JsonReader#getNullValueReplacement()
+ * @see #getJsonReader()
+ * @generated
+ */
+ EAttribute getJsonReader_NullValueReplacement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.JsonReader#getRootName <em>Root
Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Root Name</em>'.
+ * @see org.jboss.tools.smooks.model.json.JsonReader#getRootName()
+ * @see #getJsonReader()
+ * @generated
+ */
+ EAttribute getJsonReader_RootName();
+
+ /**
+ * 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
+ */
+ JsonFactory getJsonFactory();
+
+ /**
+ * <!-- 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.json.impl.JsonDocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getJsonDocumentRoot()
+ * @generated
+ */
+ EClass JSON_DOCUMENT_ROOT = eINSTANCE.getJsonDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JSON_DOCUMENT_ROOT__MIXED = eINSTANCE.getJsonDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getJsonDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getJsonDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Reader</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JSON_DOCUMENT_ROOT__READER = eINSTANCE.getJsonDocumentRoot_Reader();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.json.impl.KeyImpl <em>Key</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.KeyImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getKey()
+ * @generated
+ */
+ EClass KEY = eINSTANCE.getKey();
+
+ /**
+ * The meta object literal for the
'<em><b>Value</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute KEY__VALUE = eINSTANCE.getKey_Value();
+
+ /**
+ * The meta object literal for the
'<em><b>From</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute KEY__FROM = eINSTANCE.getKey_From();
+
+ /**
+ * The meta object literal for the '<em><b>To</b></em>'
attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute KEY__TO = eINSTANCE.getKey_To();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.json.impl.KeyMapImpl <em>Key Map</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.KeyMapImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getKeyMap()
+ * @generated
+ */
+ EClass KEY_MAP = eINSTANCE.getKeyMap();
+
+ /**
+ * The meta object literal for the
'<em><b>Key</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference KEY_MAP__KEY = eINSTANCE.getKeyMap_Key();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.json.impl.JsonReaderImpl <em>Reader</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.JsonReaderImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getJsonReader()
+ * @generated
+ */
+ EClass JSON_READER = eINSTANCE.getJsonReader();
+
+ /**
+ * The meta object literal for the '<em><b>Key
Map</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference JSON_READER__KEY_MAP = eINSTANCE.getJsonReader_KeyMap();
+
+ /**
+ * The meta object literal for the '<em><b>Array Element
Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JSON_READER__ARRAY_ELEMENT_NAME =
eINSTANCE.getJsonReader_ArrayElementName();
+
+ /**
+ * The meta object literal for the
'<em><b>Encoding</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JSON_READER__ENCODING = eINSTANCE.getJsonReader_Encoding();
+
+ /**
+ * The meta object literal for the '<em><b>Illegal Element Name Char
Replacement</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT =
eINSTANCE.getJsonReader_IllegalElementNameCharReplacement();
+
+ /**
+ * The meta object literal for the '<em><b>Key Prefix On
Numeric</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JSON_READER__KEY_PREFIX_ON_NUMERIC =
eINSTANCE.getJsonReader_KeyPrefixOnNumeric();
+
+ /**
+ * The meta object literal for the '<em><b>Key Whitspace
Replacement</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JSON_READER__KEY_WHITSPACE_REPLACEMENT =
eINSTANCE.getJsonReader_KeyWhitspaceReplacement();
+
+ /**
+ * The meta object literal for the '<em><b>Null Value
Replacement</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JSON_READER__NULL_VALUE_REPLACEMENT =
eINSTANCE.getJsonReader_NullValueReplacement();
+
+ /**
+ * The meta object literal for the '<em><b>Root
Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute JSON_READER__ROOT_NAME = eINSTANCE.getJsonReader_RootName();
+
+ }
+
+} //JsonPackage
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonReader.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonReader.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonReader.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,351 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json;
+
+import org.jboss.tools.smooks.model.smooks.AbstractReader;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object
'<em><b>Reader</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ * JSON Reader
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.json.JsonReader#getKeyMap
<em>Key Map</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName
<em>Array Element Name</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.JsonReader#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.JsonReader#getIllegalElementNameCharReplacement
<em>Illegal Element Name Char Replacement</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.JsonReader#getKeyPrefixOnNumeric
<em>Key Prefix On Numeric</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.JsonReader#getKeyWhitspaceReplacement <em>Key
Whitspace Replacement</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.JsonReader#getNullValueReplacement <em>Null Value
Replacement</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.JsonReader#getRootName
<em>Root Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader()
+ * @model extendedMetaData="name='reader' kind='elementOnly'"
+ * @generated
+ */
+public interface JsonReader extends AbstractReader {
+ /**
+ * Returns the value of the '<em><b>Key Map</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * Defines a JSON element name mapping
+ * The "from" key will be replaced with the "to" key or
the contents of the element.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Key Map</em>' containment
reference.
+ * @see #setKeyMap(KeyMap)
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_KeyMap()
+ * @model containment="true"
+ * extendedMetaData="kind='element' name='keyMap'
namespace='##targetNamespace'"
+ * @generated
+ */
+ KeyMap getKeyMap();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getKeyMap <em>Key Map</em>}'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Key Map</em>' containment
reference.
+ * @see #getKeyMap()
+ * @generated
+ */
+ void setKeyMap(KeyMap value);
+
+ /**
+ * Returns the value of the '<em><b>Array Element
Name</b></em>' attribute.
+ * The default value is <code>"element"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The element name of a array element. Default of 'element'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Array Element Name</em>'
attribute.
+ * @see #isSetArrayElementName()
+ * @see #unsetArrayElementName()
+ * @see #setArrayElementName(String)
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_ArrayElementName()
+ * @model default="element" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='arrayElementName'"
+ * @generated
+ */
+ String getArrayElementName();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName <em>Array Element
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Array Element Name</em>'
attribute.
+ * @see #isSetArrayElementName()
+ * @see #unsetArrayElementName()
+ * @see #getArrayElementName()
+ * @generated
+ */
+ void setArrayElementName(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName <em>Array Element
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetArrayElementName()
+ * @see #getArrayElementName()
+ * @see #setArrayElementName(String)
+ * @generated
+ */
+ void unsetArrayElementName();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getArrayElementName <em>Array Element
Name</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Array Element Name</em>'
attribute is set.
+ * @see #unsetArrayElementName()
+ * @see #getArrayElementName()
+ * @see #setArrayElementName(String)
+ * @generated
+ */
+ boolean isSetArrayElementName();
+
+ /**
+ * 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 of the input stream. Default of '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.json.JsonPackage#getJsonReader_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.json.JsonReader#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.json.JsonReader#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.json.JsonReader#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>Illegal Element Name Char
Replacement</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * If illegal characters are encountered in a JSON element name then they are
replaced with this value.
+ * By default this is not defined, so that the reader doesn't doesn't
search for illegal characters.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Illegal Element Name Char
Replacement</em>' attribute.
+ * @see #setIllegalElementNameCharReplacement(String)
+ * @see
org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_IllegalElementNameCharReplacement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='illegalElementNameCharReplacement'"
+ * @generated
+ */
+ String getIllegalElementNameCharReplacement();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getIllegalElementNameCharReplacement
<em>Illegal Element Name Char Replacement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Illegal Element Name Char
Replacement</em>' attribute.
+ * @see #getIllegalElementNameCharReplacement()
+ * @generated
+ */
+ void setIllegalElementNameCharReplacement(String value);
+
+ /**
+ * Returns the value of the '<em><b>Key Prefix On
Numeric</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The prefix character to add if the JSON node name starts with a number.
+ * By default this is not defined, so that the reader doesn't search for
element names that start with a number.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Key Prefix On Numeric</em>'
attribute.
+ * @see #setKeyPrefixOnNumeric(String)
+ * @see
org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_KeyPrefixOnNumeric()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='keyPrefixOnNumeric'"
+ * @generated
+ */
+ String getKeyPrefixOnNumeric();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getKeyPrefixOnNumeric <em>Key Prefix On
Numeric</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Key Prefix On
Numeric</em>' attribute.
+ * @see #getKeyPrefixOnNumeric()
+ * @generated
+ */
+ void setKeyPrefixOnNumeric(String value);
+
+ /**
+ * Returns the value of the '<em><b>Key Whitspace
Replacement</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The replacement character for whitespaces in a JSON map key.
+ * By default this not defined, so that the reader doesn't search for
whitespaces.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Key Whitspace Replacement</em>'
attribute.
+ * @see #setKeyWhitspaceReplacement(String)
+ * @see
org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_KeyWhitspaceReplacement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='keyWhitspaceReplacement'"
+ * @generated
+ */
+ String getKeyWhitspaceReplacement();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getKeyWhitspaceReplacement <em>Key
Whitspace Replacement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Key Whitspace
Replacement</em>' attribute.
+ * @see #getKeyWhitspaceReplacement()
+ * @generated
+ */
+ void setKeyWhitspaceReplacement(String value);
+
+ /**
+ * Returns the value of the '<em><b>Null Value
Replacement</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The replacement string for JSON NULL values. Default is an empty string.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Null Value Replacement</em>'
attribute.
+ * @see #setNullValueReplacement(String)
+ * @see
org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_NullValueReplacement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='nullValueReplacement'"
+ * @generated
+ */
+ String getNullValueReplacement();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getNullValueReplacement <em>Null Value
Replacement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Null Value
Replacement</em>' attribute.
+ * @see #getNullValueReplacement()
+ * @generated
+ */
+ void setNullValueReplacement(String value);
+
+ /**
+ * Returns the value of the '<em><b>Root Name</b></em>'
attribute.
+ * The default value is <code>"json"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The element name of the document root. Default of 'json'.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Root Name</em>' attribute.
+ * @see #isSetRootName()
+ * @see #unsetRootName()
+ * @see #setRootName(String)
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getJsonReader_RootName()
+ * @model default="json" unsettable="true"
dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='rootName'"
+ * @generated
+ */
+ String getRootName();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getRootName <em>Root
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Root Name</em>'
attribute.
+ * @see #isSetRootName()
+ * @see #unsetRootName()
+ * @see #getRootName()
+ * @generated
+ */
+ void setRootName(String value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getRootName <em>Root
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetRootName()
+ * @see #getRootName()
+ * @see #setRootName(String)
+ * @generated
+ */
+ void unsetRootName();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.json.JsonReader#getRootName <em>Root
Name</em>}' attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Root Name</em>' attribute
is set.
+ * @see #unsetRootName()
+ * @see #getRootName()
+ * @see #setRootName(String)
+ * @generated
+ */
+ boolean isSetRootName();
+
+} // JsonReader
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/JsonReader.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/Key.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/Key.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/Key.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,113 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object
'<em><b>Key</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.json.Key#getValue
<em>Value</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.Key#getFrom
<em>From</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.Key#getTo
<em>To</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getKey()
+ * @model extendedMetaData="name='key' kind='simple'"
+ * @generated
+ */
+public interface Key extends EObject {
+ /**
+ * Returns the value of the '<em><b>Value</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value</em>' attribute isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Value</em>' attribute.
+ * @see #setValue(String)
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getKey_Value()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="name=':0' kind='simple'"
+ * @generated
+ */
+ String getValue();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.json.Key#getValue
<em>Value</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Value</em>' attribute.
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(String value);
+
+ /**
+ * Returns the value of the '<em><b>From</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The name of the key that will be replaced.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>From</em>' attribute.
+ * @see #setFrom(String)
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getKey_From()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute' name='from'"
+ * @generated
+ */
+ String getFrom();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.json.Key#getFrom
<em>From</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>From</em>' attribute.
+ * @see #getFrom()
+ * @generated
+ */
+ void setFrom(String value);
+
+ /**
+ * Returns the value of the '<em><b>To</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The name the "from" key name is changed into.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>To</em>' attribute.
+ * @see #setTo(String)
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getKey_To()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='to'"
+ * @generated
+ */
+ String getTo();
+
+ /**
+ * Sets the value of the '{@link org.jboss.tools.smooks.model.json.Key#getTo
<em>To</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>To</em>' attribute.
+ * @see #getTo()
+ * @generated
+ */
+ void setTo(String value);
+
+} // Key
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/Key.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/KeyMap.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/KeyMap.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/KeyMap.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,49 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Key
Map</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.json.KeyMap#getKey
<em>Key</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getKeyMap()
+ * @model extendedMetaData="name='keyMap' kind='elementOnly'"
+ * @generated
+ */
+public interface KeyMap extends EObject {
+ /**
+ * Returns the value of the '<em><b>Key</b></em>'
containment reference list.
+ * The list contents are of type {@link org.jboss.tools.smooks.model.json.Key}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * Defines a JSON element name mapping
+ * The "from" key will be replaced with the "to" key or
the contents of this element.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Key</em>' containment reference
list.
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getKeyMap_Key()
+ * @model containment="true" required="true"
+ * extendedMetaData="kind='element' name='key'
namespace='##targetNamespace'"
+ * @generated
+ */
+ EList<Key> getKey();
+
+} // KeyMap
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/KeyMap.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonDocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonDocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonDocumentRootImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,286 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonDocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.JsonReader;
+
+/**
+ * <!-- 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.json.impl.JsonDocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.JsonDocumentRootImpl#getReader
<em>Reader</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class JsonDocumentRootImpl extends EObjectImpl implements JsonDocumentRoot {
+ /**
+ * 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 JsonDocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JsonPackage.Literals.JSON_DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, JsonPackage.JSON_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,
JsonPackage.JSON_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,
JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonReader getReader() {
+ return (JsonReader)getMixed().get(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER,
true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetReader(JsonReader newReader, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER,
newReader, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setReader(JsonReader newReader) {
+ ((FeatureMap.Internal)getMixed()).set(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER,
newReader);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case JsonPackage.JSON_DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case JsonPackage.JSON_DOCUMENT_ROOT__READER:
+ return basicSetReader(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case JsonPackage.JSON_DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case JsonPackage.JSON_DOCUMENT_ROOT__READER:
+ return getReader();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case JsonPackage.JSON_DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case JsonPackage.JSON_DOCUMENT_ROOT__READER:
+ setReader((JsonReader)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JsonPackage.JSON_DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case JsonPackage.JSON_DOCUMENT_ROOT__READER:
+ setReader((JsonReader)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JsonPackage.JSON_DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case JsonPackage.JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case JsonPackage.JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case JsonPackage.JSON_DOCUMENT_ROOT__READER:
+ return getReader() != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (mixed: ");
+ result.append(mixed);
+ result.append(')');
+ return result.toString();
+ }
+
+} //JsonDocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonDocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonFactoryImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,135 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonDocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonFactory;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.JsonReader;
+import org.jboss.tools.smooks.model.json.Key;
+import org.jboss.tools.smooks.model.json.KeyMap;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class JsonFactoryImpl extends EFactoryImpl implements JsonFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static JsonFactory init() {
+ try {
+ JsonFactory theJsonFactory =
(
JsonFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.milyn...);
+ if (theJsonFactory != null) {
+ return theJsonFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new JsonFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case JsonPackage.JSON_DOCUMENT_ROOT: return createJsonDocumentRoot();
+ case JsonPackage.KEY: return createKey();
+ case JsonPackage.KEY_MAP: return createKeyMap();
+ case JsonPackage.JSON_READER: return createJsonReader();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonDocumentRoot createJsonDocumentRoot() {
+ JsonDocumentRootImpl jsonDocumentRoot = new JsonDocumentRootImpl();
+ return jsonDocumentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Key createKey() {
+ KeyImpl key = new KeyImpl();
+ return key;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public KeyMap createKeyMap() {
+ KeyMapImpl keyMap = new KeyMapImpl();
+ return keyMap;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonReader createJsonReader() {
+ JsonReaderImpl jsonReader = new JsonReaderImpl();
+ return jsonReader;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonPackage getJsonPackage() {
+ return (JsonPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static JsonPackage getPackage() {
+ return JsonPackage.eINSTANCE;
+ }
+
+} //JsonFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonPackageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonPackageImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,595 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonDocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonFactory;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.JsonReader;
+import org.jboss.tools.smooks.model.json.Key;
+import org.jboss.tools.smooks.model.json.KeyMap;
+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 JsonPackageImpl extends EPackageImpl implements JsonPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass jsonDocumentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass keyEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass keyMapEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass jsonReaderEClass = 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.json.JsonPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private JsonPackageImpl() {
+ super(eNS_URI, JsonFactory.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 JsonPackage init() {
+ if (isInited) return
(JsonPackage)EPackage.Registry.INSTANCE.getEPackage(JsonPackage.eNS_URI);
+
+ // Obtain or create and register package
+ JsonPackageImpl theJsonPackage =
(JsonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof
JsonPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new
JsonPackageImpl());
+
+ 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
+ theJsonPackage.createPackageContents();
+ theSmooksPackage.createPackageContents();
+ theCommonPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theJsonPackage.initializePackageContents();
+ theSmooksPackage.initializePackageContents();
+ theCommonPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theJsonPackage.freeze();
+
+ return theJsonPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getJsonDocumentRoot() {
+ return jsonDocumentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJsonDocumentRoot_Mixed() {
+ return (EAttribute)jsonDocumentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJsonDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)jsonDocumentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJsonDocumentRoot_XSISchemaLocation() {
+ return (EReference)jsonDocumentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJsonDocumentRoot_Reader() {
+ return (EReference)jsonDocumentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getKey() {
+ return keyEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getKey_Value() {
+ return (EAttribute)keyEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getKey_From() {
+ return (EAttribute)keyEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getKey_To() {
+ return (EAttribute)keyEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getKeyMap() {
+ return keyMapEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getKeyMap_Key() {
+ return (EReference)keyMapEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getJsonReader() {
+ return jsonReaderEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getJsonReader_KeyMap() {
+ return (EReference)jsonReaderEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJsonReader_ArrayElementName() {
+ return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJsonReader_Encoding() {
+ return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJsonReader_IllegalElementNameCharReplacement() {
+ return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJsonReader_KeyPrefixOnNumeric() {
+ return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJsonReader_KeyWhitspaceReplacement() {
+ return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJsonReader_NullValueReplacement() {
+ return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getJsonReader_RootName() {
+ return (EAttribute)jsonReaderEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonFactory getJsonFactory() {
+ return (JsonFactory)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
+ jsonDocumentRootEClass = createEClass(JSON_DOCUMENT_ROOT);
+ createEAttribute(jsonDocumentRootEClass, JSON_DOCUMENT_ROOT__MIXED);
+ createEReference(jsonDocumentRootEClass, JSON_DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(jsonDocumentRootEClass, JSON_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(jsonDocumentRootEClass, JSON_DOCUMENT_ROOT__READER);
+
+ keyEClass = createEClass(KEY);
+ createEAttribute(keyEClass, KEY__VALUE);
+ createEAttribute(keyEClass, KEY__FROM);
+ createEAttribute(keyEClass, KEY__TO);
+
+ keyMapEClass = createEClass(KEY_MAP);
+ createEReference(keyMapEClass, KEY_MAP__KEY);
+
+ jsonReaderEClass = createEClass(JSON_READER);
+ createEReference(jsonReaderEClass, JSON_READER__KEY_MAP);
+ createEAttribute(jsonReaderEClass, JSON_READER__ARRAY_ELEMENT_NAME);
+ createEAttribute(jsonReaderEClass, JSON_READER__ENCODING);
+ createEAttribute(jsonReaderEClass,
JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT);
+ createEAttribute(jsonReaderEClass, JSON_READER__KEY_PREFIX_ON_NUMERIC);
+ createEAttribute(jsonReaderEClass, JSON_READER__KEY_WHITSPACE_REPLACEMENT);
+ createEAttribute(jsonReaderEClass, JSON_READER__NULL_VALUE_REPLACEMENT);
+ createEAttribute(jsonReaderEClass, JSON_READER__ROOT_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
+ jsonReaderEClass.getESuperTypes().add(theSmooksPackage.getAbstractReader());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(jsonDocumentRootEClass, JsonDocumentRoot.class,
"JsonDocumentRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getJsonDocumentRoot_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(getJsonDocumentRoot_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(getJsonDocumentRoot_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(getJsonDocumentRoot_Reader(), this.getJsonReader(), null,
"reader", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE,
IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+
+ initEClass(keyEClass, Key.class, "Key", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getKey_Value(), theXMLTypePackage.getString(), "value", null,
0, 1, Key.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getKey_From(), theXMLTypePackage.getString(), "from", null, 1,
1, Key.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getKey_To(), theXMLTypePackage.getString(), "to", null, 0, 1,
Key.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
+
+ initEClass(keyMapEClass, KeyMap.class, "KeyMap", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getKeyMap_Key(), this.getKey(), null, "key", null, 1, -1,
KeyMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(jsonReaderEClass, JsonReader.class, "JsonReader", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getJsonReader_KeyMap(), this.getKeyMap(), null, "keyMap",
null, 0, 1, JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJsonReader_ArrayElementName(), theXMLTypePackage.getString(),
"arrayElementName", "element", 0, 1, JsonReader.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJsonReader_Encoding(), theXMLTypePackage.getString(),
"encoding", "UTF-8", 0, 1, JsonReader.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJsonReader_IllegalElementNameCharReplacement(),
theXMLTypePackage.getString(), "illegalElementNameCharReplacement", null, 0, 1,
JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJsonReader_KeyPrefixOnNumeric(), theXMLTypePackage.getString(),
"keyPrefixOnNumeric", null, 0, 1, JsonReader.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJsonReader_KeyWhitspaceReplacement(), theXMLTypePackage.getString(),
"keyWhitspaceReplacement", null, 0, 1, JsonReader.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJsonReader_NullValueReplacement(), theXMLTypePackage.getString(),
"nullValueReplacement", null, 0, 1, JsonReader.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getJsonReader_RootName(), theXMLTypePackage.getString(),
"rootName", "json", 0, 1, JsonReader.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
+ (jsonDocumentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getJsonDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getJsonDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getJsonDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getJsonDocumentRoot_Reader(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "reader",
+ "namespace", "##targetNamespace",
+ "affiliation",
"http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader"
+ });
+ addAnnotation
+ (keyEClass,
+ source,
+ new String[] {
+ "name", "key",
+ "kind", "simple"
+ });
+ addAnnotation
+ (getKey_Value(),
+ source,
+ new String[] {
+ "name", ":0",
+ "kind", "simple"
+ });
+ addAnnotation
+ (getKey_From(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "from"
+ });
+ addAnnotation
+ (getKey_To(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "to"
+ });
+ addAnnotation
+ (keyMapEClass,
+ source,
+ new String[] {
+ "name", "keyMap",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getKeyMap_Key(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "key",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (jsonReaderEClass,
+ source,
+ new String[] {
+ "name", "reader",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getJsonReader_KeyMap(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "keyMap",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getJsonReader_ArrayElementName(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "arrayElementName"
+ });
+ addAnnotation
+ (getJsonReader_Encoding(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "encoding"
+ });
+ addAnnotation
+ (getJsonReader_IllegalElementNameCharReplacement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "illegalElementNameCharReplacement"
+ });
+ addAnnotation
+ (getJsonReader_KeyPrefixOnNumeric(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "keyPrefixOnNumeric"
+ });
+ addAnnotation
+ (getJsonReader_KeyWhitspaceReplacement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "keyWhitspaceReplacement"
+ });
+ addAnnotation
+ (getJsonReader_NullValueReplacement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "nullValueReplacement"
+ });
+ addAnnotation
+ (getJsonReader_RootName(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "rootName"
+ });
+ }
+
+} //JsonPackageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonReaderImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonReaderImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonReaderImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,672 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.JsonReader;
+import org.jboss.tools.smooks.model.json.KeyMap;
+import org.jboss.tools.smooks.model.smooks.impl.AbstractReaderImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object
'<em><b>Reader</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getKeyMap
<em>Key Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getArrayElementName <em>Array
Element Name</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getIllegalElementNameCharReplacement
<em>Illegal Element Name Char Replacement</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getKeyPrefixOnNumeric <em>Key
Prefix On Numeric</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getKeyWhitspaceReplacement
<em>Key Whitspace Replacement</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getNullValueReplacement
<em>Null Value Replacement</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.impl.JsonReaderImpl#getRootName
<em>Root Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class JsonReaderImpl extends AbstractReaderImpl implements JsonReader {
+ /**
+ * The cached value of the '{@link #getKeyMap() <em>Key Map</em>}'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKeyMap()
+ * @generated
+ * @ordered
+ */
+ protected KeyMap keyMap;
+
+ /**
+ * The default value of the '{@link #getArrayElementName() <em>Array Element
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getArrayElementName()
+ * @generated
+ * @ordered
+ */
+ protected static final String ARRAY_ELEMENT_NAME_EDEFAULT = "element";
+
+ /**
+ * The cached value of the '{@link #getArrayElementName() <em>Array Element
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getArrayElementName()
+ * @generated
+ * @ordered
+ */
+ protected String arrayElementName = ARRAY_ELEMENT_NAME_EDEFAULT;
+
+ /**
+ * This is true if the Array Element Name attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean arrayElementNameESet;
+
+ /**
+ * 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 #getIllegalElementNameCharReplacement()
<em>Illegal Element Name Char Replacement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getIllegalElementNameCharReplacement()
+ * @generated
+ * @ordered
+ */
+ protected static final String ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getIllegalElementNameCharReplacement()
<em>Illegal Element Name Char Replacement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getIllegalElementNameCharReplacement()
+ * @generated
+ * @ordered
+ */
+ protected String illegalElementNameCharReplacement =
ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getKeyPrefixOnNumeric() <em>Key Prefix On
Numeric</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKeyPrefixOnNumeric()
+ * @generated
+ * @ordered
+ */
+ protected static final String KEY_PREFIX_ON_NUMERIC_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getKeyPrefixOnNumeric() <em>Key Prefix On
Numeric</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKeyPrefixOnNumeric()
+ * @generated
+ * @ordered
+ */
+ protected String keyPrefixOnNumeric = KEY_PREFIX_ON_NUMERIC_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getKeyWhitspaceReplacement() <em>Key
Whitspace Replacement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKeyWhitspaceReplacement()
+ * @generated
+ * @ordered
+ */
+ protected static final String KEY_WHITSPACE_REPLACEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getKeyWhitspaceReplacement() <em>Key
Whitspace Replacement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKeyWhitspaceReplacement()
+ * @generated
+ * @ordered
+ */
+ protected String keyWhitspaceReplacement = KEY_WHITSPACE_REPLACEMENT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getNullValueReplacement() <em>Null Value
Replacement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNullValueReplacement()
+ * @generated
+ * @ordered
+ */
+ protected static final String NULL_VALUE_REPLACEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getNullValueReplacement() <em>Null Value
Replacement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getNullValueReplacement()
+ * @generated
+ * @ordered
+ */
+ protected String nullValueReplacement = NULL_VALUE_REPLACEMENT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getRootName() <em>Root
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRootName()
+ * @generated
+ * @ordered
+ */
+ protected static final String ROOT_NAME_EDEFAULT = "json";
+
+ /**
+ * The cached value of the '{@link #getRootName() <em>Root
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRootName()
+ * @generated
+ * @ordered
+ */
+ protected String rootName = ROOT_NAME_EDEFAULT;
+
+ /**
+ * This is true if the Root Name attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean rootNameESet;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected JsonReaderImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JsonPackage.Literals.JSON_READER;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public KeyMap getKeyMap() {
+ return keyMap;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetKeyMap(KeyMap newKeyMap, NotificationChain msgs) {
+ KeyMap oldKeyMap = keyMap;
+ keyMap = newKeyMap;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
JsonPackage.JSON_READER__KEY_MAP, oldKeyMap, newKeyMap);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setKeyMap(KeyMap newKeyMap) {
+ if (newKeyMap != keyMap) {
+ NotificationChain msgs = null;
+ if (keyMap != null)
+ msgs = ((InternalEObject)keyMap).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
JsonPackage.JSON_READER__KEY_MAP, null, msgs);
+ if (newKeyMap != null)
+ msgs = ((InternalEObject)newKeyMap).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JsonPackage.JSON_READER__KEY_MAP, null, msgs);
+ msgs = basicSetKeyMap(newKeyMap, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JsonPackage.JSON_READER__KEY_MAP, newKeyMap, newKeyMap));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getArrayElementName() {
+ return arrayElementName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setArrayElementName(String newArrayElementName) {
+ String oldArrayElementName = arrayElementName;
+ arrayElementName = newArrayElementName;
+ boolean oldArrayElementNameESet = arrayElementNameESet;
+ arrayElementNameESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME, oldArrayElementName, arrayElementName,
!oldArrayElementNameESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetArrayElementName() {
+ String oldArrayElementName = arrayElementName;
+ boolean oldArrayElementNameESet = arrayElementNameESet;
+ arrayElementName = ARRAY_ELEMENT_NAME_EDEFAULT;
+ arrayElementNameESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME, oldArrayElementName,
ARRAY_ELEMENT_NAME_EDEFAULT, oldArrayElementNameESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetArrayElementName() {
+ return arrayElementNameESet;
+ }
+
+ /**
+ * <!-- 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,
JsonPackage.JSON_READER__ENCODING, oldEncoding, encoding, !oldEncodingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetEncoding() {
+ String oldEncoding = encoding;
+ boolean oldEncodingESet = encodingESet;
+ encoding = ENCODING_EDEFAULT;
+ encodingESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JsonPackage.JSON_READER__ENCODING, oldEncoding, ENCODING_EDEFAULT, oldEncodingESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetEncoding() {
+ return encodingESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getIllegalElementNameCharReplacement() {
+ return illegalElementNameCharReplacement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setIllegalElementNameCharReplacement(String
newIllegalElementNameCharReplacement) {
+ String oldIllegalElementNameCharReplacement = illegalElementNameCharReplacement;
+ illegalElementNameCharReplacement = newIllegalElementNameCharReplacement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT,
oldIllegalElementNameCharReplacement, illegalElementNameCharReplacement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getKeyPrefixOnNumeric() {
+ return keyPrefixOnNumeric;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setKeyPrefixOnNumeric(String newKeyPrefixOnNumeric) {
+ String oldKeyPrefixOnNumeric = keyPrefixOnNumeric;
+ keyPrefixOnNumeric = newKeyPrefixOnNumeric;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC, oldKeyPrefixOnNumeric,
keyPrefixOnNumeric));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getKeyWhitspaceReplacement() {
+ return keyWhitspaceReplacement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setKeyWhitspaceReplacement(String newKeyWhitspaceReplacement) {
+ String oldKeyWhitspaceReplacement = keyWhitspaceReplacement;
+ keyWhitspaceReplacement = newKeyWhitspaceReplacement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT, oldKeyWhitspaceReplacement,
keyWhitspaceReplacement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getNullValueReplacement() {
+ return nullValueReplacement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setNullValueReplacement(String newNullValueReplacement) {
+ String oldNullValueReplacement = nullValueReplacement;
+ nullValueReplacement = newNullValueReplacement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT, oldNullValueReplacement,
nullValueReplacement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRootName() {
+ return rootName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRootName(String newRootName) {
+ String oldRootName = rootName;
+ rootName = newRootName;
+ boolean oldRootNameESet = rootNameESet;
+ rootNameESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JsonPackage.JSON_READER__ROOT_NAME, oldRootName, rootName, !oldRootNameESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetRootName() {
+ String oldRootName = rootName;
+ boolean oldRootNameESet = rootNameESet;
+ rootName = ROOT_NAME_EDEFAULT;
+ rootNameESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
JsonPackage.JSON_READER__ROOT_NAME, oldRootName, ROOT_NAME_EDEFAULT, oldRootNameESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetRootName() {
+ return rootNameESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case JsonPackage.JSON_READER__KEY_MAP:
+ return basicSetKeyMap(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 JsonPackage.JSON_READER__KEY_MAP:
+ return getKeyMap();
+ case JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME:
+ return getArrayElementName();
+ case JsonPackage.JSON_READER__ENCODING:
+ return getEncoding();
+ case JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT:
+ return getIllegalElementNameCharReplacement();
+ case JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC:
+ return getKeyPrefixOnNumeric();
+ case JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT:
+ return getKeyWhitspaceReplacement();
+ case JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT:
+ return getNullValueReplacement();
+ case JsonPackage.JSON_READER__ROOT_NAME:
+ return getRootName();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case JsonPackage.JSON_READER__KEY_MAP:
+ setKeyMap((KeyMap)newValue);
+ return;
+ case JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME:
+ setArrayElementName((String)newValue);
+ return;
+ case JsonPackage.JSON_READER__ENCODING:
+ setEncoding((String)newValue);
+ return;
+ case JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT:
+ setIllegalElementNameCharReplacement((String)newValue);
+ return;
+ case JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC:
+ setKeyPrefixOnNumeric((String)newValue);
+ return;
+ case JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT:
+ setKeyWhitspaceReplacement((String)newValue);
+ return;
+ case JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT:
+ setNullValueReplacement((String)newValue);
+ return;
+ case JsonPackage.JSON_READER__ROOT_NAME:
+ setRootName((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JsonPackage.JSON_READER__KEY_MAP:
+ setKeyMap((KeyMap)null);
+ return;
+ case JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME:
+ unsetArrayElementName();
+ return;
+ case JsonPackage.JSON_READER__ENCODING:
+ unsetEncoding();
+ return;
+ case JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT:
+ setIllegalElementNameCharReplacement(ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT);
+ return;
+ case JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC:
+ setKeyPrefixOnNumeric(KEY_PREFIX_ON_NUMERIC_EDEFAULT);
+ return;
+ case JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT:
+ setKeyWhitspaceReplacement(KEY_WHITSPACE_REPLACEMENT_EDEFAULT);
+ return;
+ case JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT:
+ setNullValueReplacement(NULL_VALUE_REPLACEMENT_EDEFAULT);
+ return;
+ case JsonPackage.JSON_READER__ROOT_NAME:
+ unsetRootName();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JsonPackage.JSON_READER__KEY_MAP:
+ return keyMap != null;
+ case JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME:
+ return isSetArrayElementName();
+ case JsonPackage.JSON_READER__ENCODING:
+ return isSetEncoding();
+ case JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT:
+ return ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT == null ?
illegalElementNameCharReplacement != null :
!ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT.equals(illegalElementNameCharReplacement);
+ case JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC:
+ return KEY_PREFIX_ON_NUMERIC_EDEFAULT == null ? keyPrefixOnNumeric != null :
!KEY_PREFIX_ON_NUMERIC_EDEFAULT.equals(keyPrefixOnNumeric);
+ case JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT:
+ return KEY_WHITSPACE_REPLACEMENT_EDEFAULT == null ? keyWhitspaceReplacement != null :
!KEY_WHITSPACE_REPLACEMENT_EDEFAULT.equals(keyWhitspaceReplacement);
+ case JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT:
+ return NULL_VALUE_REPLACEMENT_EDEFAULT == null ? nullValueReplacement != null :
!NULL_VALUE_REPLACEMENT_EDEFAULT.equals(nullValueReplacement);
+ case JsonPackage.JSON_READER__ROOT_NAME:
+ return isSetRootName();
+ }
+ 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(" (arrayElementName: ");
+ if (arrayElementNameESet) result.append(arrayElementName); else
result.append("<unset>");
+ result.append(", encoding: ");
+ if (encodingESet) result.append(encoding); else
result.append("<unset>");
+ result.append(", illegalElementNameCharReplacement: ");
+ result.append(illegalElementNameCharReplacement);
+ result.append(", keyPrefixOnNumeric: ");
+ result.append(keyPrefixOnNumeric);
+ result.append(", keyWhitspaceReplacement: ");
+ result.append(keyWhitspaceReplacement);
+ result.append(", nullValueReplacement: ");
+ result.append(nullValueReplacement);
+ result.append(", rootName: ");
+ if (rootNameESet) result.append(rootName); else
result.append("<unset>");
+ result.append(')');
+ return result.toString();
+ }
+
+} //JsonReaderImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/JsonReaderImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/KeyImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/KeyImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/KeyImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,275 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.Key;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object
'<em><b>Key</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.json.impl.KeyImpl#getValue
<em>Value</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.impl.KeyImpl#getFrom
<em>From</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.impl.KeyImpl#getTo
<em>To</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class KeyImpl extends EObjectImpl implements Key {
+ /**
+ * The default value of the '{@link #getValue() <em>Value</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected static final String VALUE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected String value = VALUE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFrom() <em>From</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFrom()
+ * @generated
+ * @ordered
+ */
+ protected static final String FROM_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFrom() <em>From</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFrom()
+ * @generated
+ * @ordered
+ */
+ protected String from = FROM_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTo() <em>To</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTo()
+ * @generated
+ * @ordered
+ */
+ protected static final String TO_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTo() <em>To</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTo()
+ * @generated
+ * @ordered
+ */
+ protected String to = TO_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected KeyImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JsonPackage.Literals.KEY;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValue(String newValue) {
+ String oldValue = value;
+ value = newValue;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.KEY__VALUE,
oldValue, value));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFrom() {
+ return from;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFrom(String newFrom) {
+ String oldFrom = from;
+ from = newFrom;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.KEY__FROM, oldFrom,
from));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTo() {
+ return to;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTo(String newTo) {
+ String oldTo = to;
+ to = newTo;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.KEY__TO, oldTo,
to));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case JsonPackage.KEY__VALUE:
+ return getValue();
+ case JsonPackage.KEY__FROM:
+ return getFrom();
+ case JsonPackage.KEY__TO:
+ return getTo();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case JsonPackage.KEY__VALUE:
+ setValue((String)newValue);
+ return;
+ case JsonPackage.KEY__FROM:
+ setFrom((String)newValue);
+ return;
+ case JsonPackage.KEY__TO:
+ setTo((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JsonPackage.KEY__VALUE:
+ setValue(VALUE_EDEFAULT);
+ return;
+ case JsonPackage.KEY__FROM:
+ setFrom(FROM_EDEFAULT);
+ return;
+ case JsonPackage.KEY__TO:
+ setTo(TO_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JsonPackage.KEY__VALUE:
+ return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
+ case JsonPackage.KEY__FROM:
+ return FROM_EDEFAULT == null ? from != null : !FROM_EDEFAULT.equals(from);
+ case JsonPackage.KEY__TO:
+ return TO_EDEFAULT == null ? to != null : !TO_EDEFAULT.equals(to);
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (value: ");
+ result.append(value);
+ result.append(", from: ");
+ result.append(from);
+ result.append(", to: ");
+ result.append(to);
+ result.append(')');
+ return result.toString();
+ }
+
+} //KeyImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/KeyImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/KeyMapImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/KeyMapImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/KeyMapImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,156 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.impl;
+
+import java.util.Collection;
+
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.Key;
+import org.jboss.tools.smooks.model.json.KeyMap;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Key
Map</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.json.impl.KeyMapImpl#getKey
<em>Key</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class KeyMapImpl extends EObjectImpl implements KeyMap {
+ /**
+ * The cached value of the '{@link #getKey() <em>Key</em>}'
containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getKey()
+ * @generated
+ * @ordered
+ */
+ protected EList<Key> key;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected KeyMapImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JsonPackage.Literals.KEY_MAP;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<Key> getKey() {
+ if (key == null) {
+ key = new EObjectContainmentEList<Key>(Key.class, this,
JsonPackage.KEY_MAP__KEY);
+ }
+ return key;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case JsonPackage.KEY_MAP__KEY:
+ return ((InternalEList<?>)getKey()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case JsonPackage.KEY_MAP__KEY:
+ return getKey();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case JsonPackage.KEY_MAP__KEY:
+ getKey().clear();
+ getKey().addAll((Collection<? extends Key>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JsonPackage.KEY_MAP__KEY:
+ getKey().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JsonPackage.KEY_MAP__KEY:
+ return key != null && !key.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //KeyMapImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/KeyMapImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/Json1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/Json1EditPlugin.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/Json1EditPlugin.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,93 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the Json-1 edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class Json1EditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final Json1EditPlugin INSTANCE = new Json1EditPlugin();
+
+ /**
+ * 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 Json1EditPlugin() {
+ super
+ (new ResourceLocator [] {
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/Json1EditPlugin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonDocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonDocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonDocumentRootItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonDocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonFactory;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class JsonDocumentRootItemProvider
+ 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 JsonDocumentRootItemProvider(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(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use
for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns JsonDocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/JsonDocumentRoot"));
+ }
+
+ /**
+ * 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_JsonDocumentRoot_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(JsonDocumentRoot.class)) {
+ case JsonPackage.JSON_DOCUMENT_ROOT__READER:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the
children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors,
Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER,
+ JsonFactory.eINSTANCE.createJsonReader()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Json1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonDocumentRootItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonItemProviderAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonItemProviderAdapterFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,274 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.util.JsonAdapterFactory;
+
+/**
+ * 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 JsonItemProviderAdapterFactory extends JsonAdapterFactory 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 JsonItemProviderAdapterFactory() {
+ 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.json.JsonDocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected JsonDocumentRootItemProvider jsonDocumentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createJsonDocumentRootAdapter() {
+ if (jsonDocumentRootItemProvider == null) {
+ jsonDocumentRootItemProvider = new JsonDocumentRootItemProvider(this);
+ }
+
+ return jsonDocumentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.json.Key} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected KeyItemProvider keyItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.json.Key}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createKeyAdapter() {
+ if (keyItemProvider == null) {
+ keyItemProvider = new KeyItemProvider(this);
+ }
+
+ return keyItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.json.KeyMap} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected KeyMapItemProvider keyMapItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.json.KeyMap}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createKeyMapAdapter() {
+ if (keyMapItemProvider == null) {
+ keyMapItemProvider = new KeyMapItemProvider(this);
+ }
+
+ return keyMapItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.json.JsonReader} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected JsonReaderItemProvider jsonReaderItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.json.JsonReader}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createJsonReaderAdapter() {
+ if (jsonReaderItemProvider == null) {
+ jsonReaderItemProvider = new JsonReaderItemProvider(this);
+ }
+
+ return jsonReaderItemProvider;
+ }
+
+ /**
+ * 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 (jsonDocumentRootItemProvider != null) jsonDocumentRootItemProvider.dispose();
+ if (keyItemProvider != null) keyItemProvider.dispose();
+ if (keyMapItemProvider != null) keyMapItemProvider.dispose();
+ if (jsonReaderItemProvider != null) jsonReaderItemProvider.dispose();
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonItemProviderAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonReaderItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonReaderItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonReaderItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,343 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.model.json.JsonFactory;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.JsonReader;
+import org.jboss.tools.smooks.model.smooks.provider.AbstractReaderItemProvider;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.json.JsonReader} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class JsonReaderItemProvider
+ extends AbstractReaderItemProvider
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonReaderItemProvider(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);
+
+ addArrayElementNamePropertyDescriptor(object);
+ addEncodingPropertyDescriptor(object);
+ addIllegalElementNameCharReplacementPropertyDescriptor(object);
+ addKeyPrefixOnNumericPropertyDescriptor(object);
+ addKeyWhitspaceReplacementPropertyDescriptor(object);
+ addNullValueReplacementPropertyDescriptor(object);
+ addRootNamePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Array Element Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addArrayElementNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JsonReader_arrayElementName_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JsonReader_arrayElementName_feature", "_UI_JsonReader_type"),
+ JsonPackage.Literals.JSON_READER__ARRAY_ELEMENT_NAME,
+ 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_JsonReader_encoding_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JsonReader_encoding_feature", "_UI_JsonReader_type"),
+ JsonPackage.Literals.JSON_READER__ENCODING,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Illegal Element Name Char Replacement
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addIllegalElementNameCharReplacementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JsonReader_illegalElementNameCharReplacement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JsonReader_illegalElementNameCharReplacement_feature",
"_UI_JsonReader_type"),
+ JsonPackage.Literals.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Key Prefix On Numeric feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addKeyPrefixOnNumericPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JsonReader_keyPrefixOnNumeric_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JsonReader_keyPrefixOnNumeric_feature", "_UI_JsonReader_type"),
+ JsonPackage.Literals.JSON_READER__KEY_PREFIX_ON_NUMERIC,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Key Whitspace Replacement feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addKeyWhitspaceReplacementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JsonReader_keyWhitspaceReplacement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JsonReader_keyWhitspaceReplacement_feature",
"_UI_JsonReader_type"),
+ JsonPackage.Literals.JSON_READER__KEY_WHITSPACE_REPLACEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Null Value Replacement feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addNullValueReplacementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JsonReader_nullValueReplacement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JsonReader_nullValueReplacement_feature",
"_UI_JsonReader_type"),
+ JsonPackage.Literals.JSON_READER__NULL_VALUE_REPLACEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Root Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addRootNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_JsonReader_rootName_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_JsonReader_rootName_feature", "_UI_JsonReader_type"),
+ JsonPackage.Literals.JSON_READER__ROOT_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(JsonPackage.Literals.JSON_READER__KEY_MAP);
+ }
+ 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 JsonReader.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/JsonReader"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((JsonReader)object).getArrayElementName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_JsonReader_type") :
+ getString("_UI_JsonReader_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(JsonReader.class)) {
+ case JsonPackage.JSON_READER__ARRAY_ELEMENT_NAME:
+ case JsonPackage.JSON_READER__ENCODING:
+ case JsonPackage.JSON_READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT:
+ case JsonPackage.JSON_READER__KEY_PREFIX_ON_NUMERIC:
+ case JsonPackage.JSON_READER__KEY_WHITSPACE_REPLACEMENT:
+ case JsonPackage.JSON_READER__NULL_VALUE_REPLACEMENT:
+ case JsonPackage.JSON_READER__ROOT_NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
+ return;
+ case JsonPackage.JSON_READER__KEY_MAP:
+ 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
+ (JsonPackage.Literals.JSON_READER__KEY_MAP,
+ JsonFactory.eINSTANCE.createKeyMap()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Json1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/JsonReaderItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/KeyItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/KeyItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/KeyItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,209 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.Key;
+
+/**
+ * This is the item provider adapter for a {@link org.jboss.tools.smooks.model.json.Key}
object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class KeyItemProvider
+ 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 KeyItemProvider(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);
+
+ addValuePropertyDescriptor(object);
+ addFromPropertyDescriptor(object);
+ addToPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Value feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addValuePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Key_value_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Key_value_feature", "_UI_Key_type"),
+ JsonPackage.Literals.KEY__VALUE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the From feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addFromPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Key_from_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Key_from_feature", "_UI_Key_type"),
+ JsonPackage.Literals.KEY__FROM,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the To feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addToPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Key_to_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Key_to_feature", "_UI_Key_type"),
+ JsonPackage.Literals.KEY__TO,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns Key.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/Key"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Key)object).getValue();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Key_type") :
+ getString("_UI_Key_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(Key.class)) {
+ case JsonPackage.KEY__VALUE:
+ case JsonPackage.KEY__FROM:
+ case JsonPackage.KEY__TO:
+ 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 Json1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/KeyItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/KeyMapItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/KeyMapItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/KeyMapItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonFactory;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.KeyMap;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.json.KeyMap} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class KeyMapItemProvider
+ 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 KeyMapItemProvider(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(JsonPackage.Literals.KEY_MAP__KEY);
+ }
+ 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 KeyMap.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/KeyMap"));
+ }
+
+ /**
+ * 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_KeyMap_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(KeyMap.class)) {
+ case JsonPackage.KEY_MAP__KEY:
+ 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
+ (JsonPackage.Literals.KEY_MAP__KEY,
+ JsonFactory.eINSTANCE.createKey()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Json1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/KeyMapItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonAdapterFactory.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,256 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonDocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.JsonReader;
+import org.jboss.tools.smooks.model.json.Key;
+import org.jboss.tools.smooks.model.json.KeyMap;
+import org.jboss.tools.smooks.model.smooks.AbstractReader;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the
model.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.JsonPackage
+ * @generated
+ */
+public class JsonAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static JsonPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = JsonPackage.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 JsonSwitch<Adapter> modelSwitch =
+ new JsonSwitch<Adapter>() {
+ @Override
+ public Adapter caseJsonDocumentRoot(JsonDocumentRoot object) {
+ return createJsonDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseKey(Key object) {
+ return createKeyAdapter();
+ }
+ @Override
+ public Adapter caseKeyMap(KeyMap object) {
+ return createKeyMapAdapter();
+ }
+ @Override
+ public Adapter caseJsonReader(JsonReader object) {
+ return createJsonReaderAdapter();
+ }
+ @Override
+ public Adapter caseAnyType(AnyType object) {
+ return createAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractAnyType(AbstractAnyType object) {
+ return createAbstractAnyTypeAdapter();
+ }
+ @Override
+ public Adapter caseAbstractResourceConfig(AbstractResourceConfig object) {
+ return createAbstractResourceConfigAdapter();
+ }
+ @Override
+ public Adapter caseAbstractReader(AbstractReader object) {
+ return createAbstractReaderAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.json.JsonDocumentRoot <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.json.JsonDocumentRoot
+ * @generated
+ */
+ public Adapter createJsonDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.json.Key <em>Key</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.json.Key
+ * @generated
+ */
+ public Adapter createKeyAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.json.KeyMap <em>Key Map</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.json.KeyMap
+ * @generated
+ */
+ public Adapter createKeyMapAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.json.JsonReader <em>Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.json.JsonReader
+ * @generated
+ */
+ public Adapter createJsonReaderAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.eclipse.emf.ecore.xml.type.AnyType <em>Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.emf.ecore.xml.type.AnyType
+ * @generated
+ */
+ public Adapter createAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link common.AbstractAnyType
<em>Abstract Any Type</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see common.AbstractAnyType
+ * @generated
+ */
+ public Adapter createAbstractAnyTypeAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
smooks.AbstractResourceConfig <em>Abstract Resource Config</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.AbstractResourceConfig
+ * @generated
+ */
+ public Adapter createAbstractResourceConfigAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link smooks.AbstractReader
<em>Abstract Reader</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see smooks.AbstractReader
+ * @generated
+ */
+ public Adapter createAbstractReaderAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //JsonAdapterFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonResourceFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonResourceFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonResourceFactoryImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.util.JsonResourceImpl
+ * @generated
+ */
+public class JsonResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new JsonResourceImpl(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;
+ }
+
+} //JsonResourceFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonResourceImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonResourceImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonResourceImpl.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.util.JsonResourceFactoryImpl
+ * @generated
+ */
+public class JsonResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public JsonResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //JsonResourceImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonSwitch.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonSwitch.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonSwitch.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,265 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonDocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.JsonReader;
+import org.jboss.tools.smooks.model.json.Key;
+import org.jboss.tools.smooks.model.json.KeyMap;
+import org.jboss.tools.smooks.model.smooks.AbstractReader;
+import org.jboss.tools.smooks.model.smooks.AbstractResourceConfig;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.JsonPackage
+ * @generated
+ */
+public class JsonSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static JsonPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonSwitch() {
+ if (modelPackage == null) {
+ modelPackage = JsonPackage.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 JsonPackage.JSON_DOCUMENT_ROOT: {
+ JsonDocumentRoot jsonDocumentRoot = (JsonDocumentRoot)theEObject;
+ T result = caseJsonDocumentRoot(jsonDocumentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case JsonPackage.KEY: {
+ Key key = (Key)theEObject;
+ T result = caseKey(key);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case JsonPackage.KEY_MAP: {
+ KeyMap keyMap = (KeyMap)theEObject;
+ T result = caseKeyMap(keyMap);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case JsonPackage.JSON_READER: {
+ JsonReader jsonReader = (JsonReader)theEObject;
+ T result = caseJsonReader(jsonReader);
+ if (result == null) result = caseAbstractReader(jsonReader);
+ if (result == null) result = caseAbstractResourceConfig(jsonReader);
+ if (result == null) result = caseAbstractAnyType(jsonReader);
+ if (result == null) result = caseAnyType(jsonReader);
+ 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 caseJsonDocumentRoot(JsonDocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Key</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>Key</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseKey(Key object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Key
Map</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Key
Map</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseKeyMap(KeyMap object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Reader</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Reader</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseJsonReader(JsonReader object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Any
Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAnyType(AnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Any Type</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractAnyType(AbstractAnyType object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Resource Config</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Resource Config</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractResourceConfig(AbstractResourceConfig object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Abstract Reader</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Abstract Reader</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractReader(AbstractReader object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case
anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //JsonSwitch
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonXMLProcessor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonXMLProcessor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonXMLProcessor.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.json.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.json.JsonPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class JsonXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public JsonXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ JsonPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the
JsonResourceFactoryImpl 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 JsonResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new JsonResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //JsonXMLProcessor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/util/JsonXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-04-14
09:58:00 UTC (rev 14732)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -264,14 +264,14 @@
/***********************************************/
// for CSV
newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
- .createEntry(CsvPackage.Literals.DOCUMENT_ROOT__READER,
CsvFactory.eINSTANCE.createReader())));
+ .createEntry(CsvPackage.Literals.CSV_DOCUMENT_ROOT__READER,
CsvFactory.eINSTANCE.createCsvReader())));
// for EDI
newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
.createEntry(EdiPackage.Literals.EDI_DOCUMENT_ROOT__READER,
EdiFactory.eINSTANCE.createEDIReader())));
// for JSON
newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
- .createEntry(JsonPackage.Literals.DOCUMENT_ROOT__READER,
JsonFactory.eINSTANCE.createReader())));
+ .createEntry(JsonPackage.Literals.JSON_DOCUMENT_ROOT__READER,
JsonFactory.eINSTANCE.createJsonReader())));
// for javabean
newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
@@ -293,11 +293,11 @@
// for IO routing
newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
- .createEntry(IoroutingPackage.Literals.DOCUMENT_ROOT__ROUTER,
IoroutingFactory.eINSTANCE.createRouter())));
+ .createEntry(IoroutingPackage.Literals.IO_DOCUMENT_ROOT__ROUTER,
IoroutingFactory.eINSTANCE.createIORouter())));
// for JMS routing
newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
- .createEntry(JmsroutingPackage.Literals.DOCUMENT_ROOT__ROUTER,
JmsroutingFactory.eINSTANCE.createRouter())));
+ .createEntry(JmsroutingPackage.Literals.JMS_DOCUMENT_ROOT__ROUTER,
JmsroutingFactory.eINSTANCE.createJmsRouter())));
// for File routing
newChildDescriptors.add(createChildParameter(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
FeatureMapUtil
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java 2009-04-14
09:58:00 UTC (rev 14732)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Codegenerator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -13,20 +13,17 @@
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
-import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
-import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
-import org.jboss.tools.smooks.model.groovy.GroovyPackage;
-import org.jboss.tools.smooks.model.medi.MEdiPackage;
+import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
public class Codegenerator {
- String basePath =
"/home/Dart/Works/eclipse_wtp.3.0.4/eclipse/workspace/jbosstools/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/temp/";
+ String basePath =
"/home/DartPeng/Work/eclipse/smooks-configuration-workspace/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/uitls/temp/";
String tempContents = "";
public Codegenerator() {
try {
FileReader reader = new FileReader(
new File(
- "/home/Dart/Works/eclipse_wtp.3.0.4/eclipse/workspace/jbosstools/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Template.txt"));
+ "/home/DartPeng/Work/eclipse/smooks-configuration-workspace/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/Template.txt"));
BufferedReader r = new BufferedReader(reader);
String line = r.readLine();
while (line != null) {
@@ -46,7 +43,7 @@
public static void main(String[] args) {
Codegenerator g = new Codegenerator();
try {
- g.generateCodes(MEdiPackage.eINSTANCE);
+ g.generateCodes(DbroutingPackage.eINSTANCE);
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java 2009-04-14
09:58:00 UTC (rev 14732)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/PropertyUICreatorManager.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -13,6 +13,10 @@
import java.util.HashMap;
import java.util.Map;
+import org.jboss.tools.smooks.configuration.editors.csv.CsvReaderUICreator;
+import org.jboss.tools.smooks.configuration.editors.dbrouting.ExecutorUICreator;
+import
org.jboss.tools.smooks.configuration.editors.dbrouting.ResultSetRowSelectorUICreator;
+import org.jboss.tools.smooks.configuration.editors.dbrouting.ResultSetUICreator;
import org.jboss.tools.smooks.configuration.editors.edi.ComponentUICreator;
import org.jboss.tools.smooks.configuration.editors.edi.DelimitersUICreator;
import org.jboss.tools.smooks.configuration.editors.edi.DescriptionUICreator;
@@ -22,6 +26,7 @@
import org.jboss.tools.smooks.configuration.editors.edi.SegmentUICreator;
import org.jboss.tools.smooks.configuration.editors.edi.SegmentsUICreator;
import org.jboss.tools.smooks.configuration.editors.edi.SubComponentUICreator;
+import org.jboss.tools.smooks.configuration.editors.edireader.EDIReaderUICreator;
import org.jboss.tools.smooks.configuration.editors.filerouting.HighWaterMarkUICreator;
import org.jboss.tools.smooks.configuration.editors.filerouting.OutputStreamUICreator;
import org.jboss.tools.smooks.configuration.editors.freemarker.FreemarkerUICreator;
@@ -29,9 +34,18 @@
import org.jboss.tools.smooks.configuration.editors.freemarker.UseUICreator;
import org.jboss.tools.smooks.configuration.editors.groovy.GroovyUICreator;
import org.jboss.tools.smooks.configuration.editors.groovy.ScriptUICreator;
+import org.jboss.tools.smooks.configuration.editors.iorouting.IORouterUICreator;
import org.jboss.tools.smooks.configuration.editors.javabean.BindingsPropertyUICreator;
import org.jboss.tools.smooks.configuration.editors.javabean.JavabeanValueUICreator;
import org.jboss.tools.smooks.configuration.editors.javabean.JavabeanWiringUICreator;
+import org.jboss.tools.smooks.configuration.editors.jms.ConnectionUICreator;
+import org.jboss.tools.smooks.configuration.editors.jms.JmsRouterUICreator;
+import org.jboss.tools.smooks.configuration.editors.jms.JndiUICreator;
+import org.jboss.tools.smooks.configuration.editors.jms.MessageUICreator;
+import org.jboss.tools.smooks.configuration.editors.jms.SessionUICreator;
+import org.jboss.tools.smooks.configuration.editors.json.JsonReaderUICreator;
+import org.jboss.tools.smooks.configuration.editors.json.KeyMapUICreator;
+import org.jboss.tools.smooks.configuration.editors.json.KeyUICreator;
import org.jboss.tools.smooks.configuration.editors.smooks.ConditionTypeUICreator;
import org.jboss.tools.smooks.configuration.editors.smooks.ImportTypeUICreator;
import org.jboss.tools.smooks.configuration.editors.smooks.ParamTypeUICreator;
@@ -41,6 +55,11 @@
import org.jboss.tools.smooks.configuration.editors.xsl.OutputToUICreator;
import org.jboss.tools.smooks.configuration.editors.xsl.TemplateUICreator;
import org.jboss.tools.smooks.configuration.editors.xsl.XslUICreator;
+import org.jboss.tools.smooks.model.csv.impl.CsvReaderImpl;
+import org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl;
+import org.jboss.tools.smooks.model.dbrouting.impl.ResultSetImpl;
+import org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl;
+import org.jboss.tools.smooks.model.edi.impl.EDIReaderImpl;
import org.jboss.tools.smooks.model.fileRouting.impl.HighWaterMarkImpl;
import org.jboss.tools.smooks.model.fileRouting.impl.OutputStreamImpl;
import org.jboss.tools.smooks.model.freemarker.impl.FreemarkerImpl;
@@ -48,9 +67,18 @@
import org.jboss.tools.smooks.model.freemarker.impl.UseImpl;
import org.jboss.tools.smooks.model.groovy.impl.GroovyImpl;
import org.jboss.tools.smooks.model.groovy.impl.ScriptTypeImpl;
+import org.jboss.tools.smooks.model.iorouting.impl.IORouterImpl;
import org.jboss.tools.smooks.model.javabean.impl.BindingsTypeImpl;
import org.jboss.tools.smooks.model.javabean.impl.ValueTypeImpl;
import org.jboss.tools.smooks.model.javabean.impl.WiringTypeImpl;
+import org.jboss.tools.smooks.model.jmsrouting.impl.ConnectionImpl;
+import org.jboss.tools.smooks.model.jmsrouting.impl.JmsRouterImpl;
+import org.jboss.tools.smooks.model.jmsrouting.impl.JndiImpl;
+import org.jboss.tools.smooks.model.jmsrouting.impl.MessageImpl;
+import org.jboss.tools.smooks.model.jmsrouting.impl.SessionImpl;
+import org.jboss.tools.smooks.model.json.impl.JsonReaderImpl;
+import org.jboss.tools.smooks.model.json.impl.KeyImpl;
+import org.jboss.tools.smooks.model.json.impl.KeyMapImpl;
import org.jboss.tools.smooks.model.medi.impl.ComponentImpl;
import org.jboss.tools.smooks.model.medi.impl.DelimitersImpl;
import org.jboss.tools.smooks.model.medi.impl.DescriptionImpl;
@@ -109,24 +137,24 @@
// for freemarker
map.put(org.jboss.tools.smooks.model.freemarker.impl.BindToImpl.class,
- new org.jboss.tools.smooks.configuration.editors.freemarker.BindToUICreator());
+ new org.jboss.tools.smooks.configuration.editors.freemarker.BindToUICreator());
map.put(FreemarkerImpl.class, new FreemarkerUICreator());
map.put(InlineImpl.class, new InlineUICreator());
map.put(org.jboss.tools.smooks.model.freemarker.impl.OutputToImpl.class,
- new org.jboss.tools.smooks.configuration.editors.freemarker.OutputToUICreator());
+ new org.jboss.tools.smooks.configuration.editors.freemarker.OutputToUICreator());
map.put(org.jboss.tools.smooks.model.freemarker.impl.TemplateImpl.class,
- new org.jboss.tools.smooks.configuration.editors.freemarker.TemplateUICreator());
+ new org.jboss.tools.smooks.configuration.editors.freemarker.TemplateUICreator());
map.put(UseImpl.class, new UseUICreator());
-
+
// for groovy
map.put(GroovyImpl.class, new GroovyUICreator());
map.put(ScriptTypeImpl.class, new ScriptUICreator());
-
+
// for filerouting
map.put(HighWaterMarkImpl.class, new HighWaterMarkUICreator());
map.put(OutputStreamImpl.class, new OutputStreamUICreator());
-
- // for edi
+
+ // for medi
map.put(ComponentImpl.class, new ComponentUICreator());
map.put(DelimitersImpl.class, new DelimitersUICreator());
map.put(DescriptionImpl.class, new DescriptionUICreator());
@@ -137,6 +165,35 @@
map.put(SegmentsImpl.class, new SegmentsUICreator());
map.put(SubComponentImpl.class, new SubComponentUICreator());
+ // for edi
+ map.put(EDIReaderImpl.class, new EDIReaderUICreator());
+
+ // for Json
+ map.put(KeyImpl.class, new KeyUICreator());
+ map.put(KeyMapImpl.class, new KeyMapUICreator());
+ map.put(JsonReaderImpl.class, new JsonReaderUICreator());
+
+ // for CSV
+ map.put(CsvReaderImpl.class, new CsvReaderUICreator());
+
+ // for IO Routing
+ map.put(IORouterImpl.class, new IORouterUICreator());
+
+ // for JMS
+ map.put(ConnectionImpl.class, new ConnectionUICreator());
+ map.put(HighWaterMarkImpl.class, new HighWaterMarkUICreator());
+ map.put(JndiImpl.class, new JndiUICreator());
+ map.put(MessageImpl.class, new MessageUICreator());
+ map.put(JmsRouterImpl.class, new JmsRouterUICreator());
+ map.put(SessionImpl.class, new SessionUICreator());
+
+ // for DB routing
+ map.put(ExecutorImpl.class, new ExecutorUICreator());
+ map.put(ResultSetImpl.class, new ResultSetUICreator());
+ map.put(ResultSetRowSelectorImpl.class, new ResultSetRowSelectorUICreator());
+
+
+
/*
* up if for smooks1.1
*/
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CsvReaderUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CsvReaderUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CsvReaderUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.csv;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class CsvReaderUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+
+ if (feature == CsvPackage.eINSTANCE.getCsvReader_Encoding()) {
+ }
+ if (feature == CsvPackage.eINSTANCE.getCsvReader_Fields()) {
+ }
+ if (feature == CsvPackage.eINSTANCE.getCsvReader_Quote()) {
+ }
+ if (feature == CsvPackage.eINSTANCE.getCsvReader_Separator()) {
+ }
+ if (feature == CsvPackage.eINSTANCE.getCsvReader_SkipLines()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/csv/CsvReaderUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ExecutorUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ExecutorUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ExecutorUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,51 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.dbrouting;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class ExecutorUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == DbroutingPackage.eINSTANCE.getExecutor_Statement()) {
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getExecutor_Datasource()) {
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getExecutor_ExecuteBefore()) {
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getExecutor_ExecuteOnElement()) {
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getExecutor_ExecuteOnElementNS()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ExecutorUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ResultSetRowSelectorUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ResultSetRowSelectorUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ResultSetRowSelectorUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,53 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.dbrouting;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class ResultSetRowSelectorUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == DbroutingPackage.eINSTANCE.getResultSetRowSelector_Where()) {
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getResultSetRowSelector_FailedSelectError())
{
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getResultSetRowSelector_BeanId()) {
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getResultSetRowSelector_ExecuteBefore()) {
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getResultSetRowSelector_ResultSetName()) {
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getResultSetRowSelector_SelectRowOnElement())
{
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ResultSetRowSelectorUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ResultSetUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ResultSetUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ResultSetUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.dbrouting;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class ResultSetUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == DbroutingPackage.eINSTANCE.getResultSet_Name()) {
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getResultSet_Scope()) {
+ }
+ if (feature == DbroutingPackage.eINSTANCE.getResultSet_TimeToLive()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/dbrouting/ResultSetUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edireader/EDIReaderUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edireader/EDIReaderUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edireader/EDIReaderUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.edireader;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.edi.EdiPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class EDIReaderUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == EdiPackage.eINSTANCE.getEDIReader_Encoding()) {
+ }
+ if (feature == EdiPackage.eINSTANCE.getEDIReader_MappingModel()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/edireader/EDIReaderUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/iorouting/IORouterUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/iorouting/IORouterUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/iorouting/IORouterUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.iorouting;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class IORouterUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+
+ if (feature == IoroutingPackage.eINSTANCE.getIORouter_BeanId()) {
+ }
+ if (feature == IoroutingPackage.eINSTANCE.getIORouter_Encoding()) {
+ }
+ if (feature == IoroutingPackage.eINSTANCE.getIORouter_ExecuteBefore()) {
+ }
+ if (feature == IoroutingPackage.eINSTANCE.getIORouter_ResourceName()) {
+ }
+ if (feature == IoroutingPackage.eINSTANCE.getIORouter_RouteOnElement()) {
+ }
+ if (feature == IoroutingPackage.eINSTANCE.getIORouter_RouteOnElementNS()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/iorouting/IORouterUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/ConnectionUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/ConnectionUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/ConnectionUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.jms;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class ConnectionUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == JmsroutingPackage.eINSTANCE.getConnection_Factory()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getConnection_SecurityCredential()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getConnection_SecurityPrincipal()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/ConnectionUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/HighWaterMarkUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/HighWaterMarkUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/HighWaterMarkUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.jms;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class HighWaterMarkUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == JmsroutingPackage.eINSTANCE.getHighWaterMark_Mark()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getHighWaterMark_PollFrequency()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getHighWaterMark_Timeout()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/HighWaterMarkUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JmsRouterUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JmsRouterUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JmsRouterUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.jms;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class JmsRouterUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+
+ if (feature == JmsroutingPackage.eINSTANCE.getJmsRouter_BeanId()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getJmsRouter_Destination()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getJmsRouter_ExecuteBefore()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getJmsRouter_RouteOnElement()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getJmsRouter_RouteOnElementNS()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JmsRouterUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JndiUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JndiUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JndiUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.jms;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class JndiUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == JmsroutingPackage.eINSTANCE.getJndi_ContextFactory()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getJndi_NamingFactory()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getJndi_ProviderUrl()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/JndiUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/MessageUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/MessageUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/MessageUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,51 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.jms;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class MessageUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == JmsroutingPackage.eINSTANCE.getMessage_CorrelationIdPattern()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getMessage_DeliveryMode()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getMessage_Priority()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getMessage_TimeToLive()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getMessage_Type()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/MessageUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/SessionUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/SessionUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/SessionUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.jms;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class SessionUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == JmsroutingPackage.eINSTANCE.getSession_AcknowledgeMode()) {
+ }
+ if (feature == JmsroutingPackage.eINSTANCE.getSession_Transacted()) {
+ }
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/jms/SessionUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/JsonReaderUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/JsonReaderUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/JsonReaderUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.json;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class JsonReaderUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == JsonPackage.eINSTANCE.getJsonReader_ArrayElementName()) {
+ }
+ if (feature == JsonPackage.eINSTANCE.getJsonReader_Encoding()) {
+ }
+ if (feature == JsonPackage.eINSTANCE.getJsonReader_IllegalElementNameCharReplacement())
{
+ }
+ if (feature == JsonPackage.eINSTANCE.getJsonReader_KeyPrefixOnNumeric()) {
+ }
+ if (feature == JsonPackage.eINSTANCE.getJsonReader_KeyWhitspaceReplacement()) {
+ }
+ if (feature == JsonPackage.eINSTANCE.getJsonReader_NullValueReplacement()) {
+ }
+ if (feature == JsonPackage.eINSTANCE.getJsonReader_RootName()) {
+ }
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/JsonReaderUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/KeyMapUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/KeyMapUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/KeyMapUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,41 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.json;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class KeyMapUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
+ IItemPropertyDescriptor propertyDescriptor, Object model, EAttribute feature
,SmooksMultiFormEditor formEditor) {
+
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
+ formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/KeyMapUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/KeyUICreator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/KeyUICreator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/KeyUICreator.java 2009-04-14
10:33:00 UTC (rev 14733)
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.smooks.configuration.editors.json;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.forms.widgets.FormToolkit;
+import org.jboss.tools.smooks.configuration.editors.PropertyUICreator;
+import org.jboss.tools.smooks.configuration.editors.SmooksMultiFormEditor;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+
+/**
+ * @author Dart Peng (dpeng(a)redhat.com) Date Apr 10, 2009
+ */
+public class KeyUICreator extends PropertyUICreator {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.jboss.tools.smooks.configuration.editors.IPropertyUICreator#
+ * createPropertyUI(org.eclipse.ui.forms.widgets.FormToolkit,
+ * org.eclipse.swt.widgets.Composite,
+ * org.eclipse.emf.edit.provider.IItemPropertyDescriptor, java.lang.Object,
+ * org.eclipse.emf.ecore.EAttribute)
+ */
+ public Composite createPropertyUI(FormToolkit toolkit, Composite parent,
IItemPropertyDescriptor propertyDescriptor, Object model,
+ EAttribute feature, SmooksMultiFormEditor formEditor) {
+ if (feature == JsonPackage.eINSTANCE.getKey_Value()) {
+ }
+ if (feature == JsonPackage.eINSTANCE.getKey_From()) {
+ }
+ if (feature == JsonPackage.eINSTANCE.getKey_To()) {
+ }
+ return super.createPropertyUI(toolkit, parent, propertyDescriptor, model, feature,
formEditor);
+ }
+
+}
\ No newline at end of file
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/json/KeyUICreator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain