Author: DartPeng
Date: 2009-04-14 02:07:39 -0400 (Tue, 14 Apr 2009)
New Revision: 14717
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/
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/DocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/Reader.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/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/DocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/ReaderImpl.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/CsvItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/ReaderItemProvider.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/dbrouting/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DbroutingFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DbroutingPackage.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DocumentRoot.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/Executor.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSet.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSetRowSelector.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSetScopeType.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DbroutingFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DbroutingPackageImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DocumentRootImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ExecutorImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ResultSetImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ResultSetRowSelectorImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/Dbrouting1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/DbroutingItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ExecutorItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ResultSetItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ResultSetRowSelectorItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingResourceFactoryImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingResourceImpl.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingSwitch.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingXMLProcessor.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/DocumentRoot.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/Router.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/DocumentRootImpl.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/impl/RouterImpl.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/DocumentRootItemProvider.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/provider/RouterItemProvider.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/javabean/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/
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/DocumentRoot.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/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/Router.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/DocumentRootImpl.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/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/RouterImpl.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/DocumentRootItemProvider.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/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/RouterItemProvider.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/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/DocumentRoot.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/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/Reader.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/DocumentRootImpl.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/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/impl/ReaderImpl.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/DocumentRootItemProvider.java
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/JsonItemProviderAdapterFactory.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/provider/ReaderItemProvider.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.core/src/org/jboss/tools/smooks/model/smooks/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/validate/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/validate/SmooksModelValidator.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/provider/AbstractAnyTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/provider/CommonItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/ComponentItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/DelimitersItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/DescriptionItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiMapItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/Edimessagemapping1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/FieldItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/MappingNodeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/SegmentItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/SegmentsItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/SubComponentItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/Filerouting1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/HighWaterMarkItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/OutputStreamItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/BindToItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/Freemarker1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/FreemarkerItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/FreemarkerItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/InlineItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/OutputToItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/TemplateItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/UseItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/BindingsTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/DecodeParamTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/ExpressionTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/Javabean1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/JavabeanItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/ValueTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/WiringTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/AbstractReaderItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/AbstractResourceConfigItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ConditionTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ConditionsTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ElementVisitorItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/FeaturesTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/HandlerTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/HandlersTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ImportTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ParamTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ParamsTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ProfileTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ProfilesTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ReaderTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ResourceConfigTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ResourceTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SetOffTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SetOnTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/BindToItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/InlineItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/OutputToItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/TemplateItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/UseItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/Xsl1EditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/XslItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/XslItemProviderAdapterFactory.java
Log:
JBIDE-4171
Add new model codes for smooks extension xsd
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/provider
(from rev 14691,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/common/provider)
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/provider/AbstractAnyTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/common/provider/AbstractAnyTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/provider/AbstractAnyTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.common.provider;
+package org.jboss.tools.smooks.model.common.provider;
import java.util.Collection;
@@ -23,9 +23,9 @@
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.edit.xsl.provider.Xsl1EditPlugin;
import org.jboss.tools.smooks.model.common.AbstractAnyType;
import org.jboss.tools.smooks.model.common.CommonPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
/**
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/provider/CommonItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/common/provider/CommonItemProviderAdapterFactory.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/common/provider/CommonItemProviderAdapterFactory.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.common.provider;
+package org.jboss.tools.smooks.model.common.provider;
import java.util.ArrayList;
import java.util.Collection;
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
06:07:39 UTC (rev 14717)
@@ -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
+ */
+ DocumentRoot createDocumentRoot();
+
+ /**
+ * 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
+ */
+ Reader createReader();
+
+ /**
+ * 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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.impl.DocumentRootImpl
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ int DOCUMENT_ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__MIXED = 0;
+
+ /**
+ * The feature id for the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+ /**
+ * The feature id for the '<em><b>XSI Schema
Location</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Reader</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int 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 DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.csv.impl.ReaderImpl <em>Reader</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.impl.ReaderImpl
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getReader()
+ * @generated
+ */
+ int READER = 1;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int 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 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 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 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 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 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 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 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 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 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.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Document Root</em>'.
+ * @see org.jboss.tools.smooks.model.csv.DocumentRoot
+ * @generated
+ */
+ EClass getDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.csv.DocumentRoot#getMixed <em>Mixed</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see org.jboss.tools.smooks.model.csv.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EAttribute getDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.csv.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix
Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see org.jboss.tools.smooks.model.csv.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.csv.DocumentRoot#getXSISchemaLocation <em>XSI Schema
Location</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XSI Schema
Location</em>'.
+ * @see org.jboss.tools.smooks.model.csv.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.csv.DocumentRoot#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.DocumentRoot#getReader()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_Reader();
+
+ /**
+ * Returns the meta object for class '{@link org.jboss.tools.smooks.model.csv.Reader
<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.Reader
+ * @generated
+ */
+ EClass getReader();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.csv.Reader#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.Reader#getEncoding()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_Encoding();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.csv.Reader#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.Reader#getFields()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_Fields();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.csv.Reader#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.Reader#getQuote()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_Quote();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.csv.Reader#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.Reader#getSeparator()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_Separator();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.csv.Reader#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.Reader#getSkipLines()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_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.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.impl.DocumentRootImpl
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Reader</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__READER = eINSTANCE.getDocumentRoot_Reader();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.csv.impl.ReaderImpl <em>Reader</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.csv.impl.ReaderImpl
+ * @see org.jboss.tools.smooks.model.csv.impl.CsvPackageImpl#getReader()
+ * @generated
+ */
+ EClass READER = eINSTANCE.getReader();
+
+ /**
+ * The meta object literal for the
'<em><b>Encoding</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute READER__ENCODING = eINSTANCE.getReader_Encoding();
+
+ /**
+ * The meta object literal for the
'<em><b>Fields</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute READER__FIELDS = eINSTANCE.getReader_Fields();
+
+ /**
+ * The meta object literal for the
'<em><b>Quote</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute READER__QUOTE = eINSTANCE.getReader_Quote();
+
+ /**
+ * The meta object literal for the
'<em><b>Separator</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute READER__SEPARATOR = eINSTANCE.getReader_Separator();
+
+ /**
+ * The meta object literal for the '<em><b>Skip
Lines</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute READER__SKIP_LINES = eINSTANCE.getReader_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/DocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/DocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/DocumentRoot.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.DocumentRoot#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.DocumentRoot#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.DocumentRoot#getReader
<em>Reader</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface DocumentRoot extends EObject {
+ /**
+ * Returns the value of the '<em><b>Mixed</b></em>'
attribute list.
+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Mixed</em>' attribute list isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Mixed</em>' attribute list.
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getDocumentRoot_Mixed()
+ * @model unique="false"
dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+ * extendedMetaData="kind='elementWildcard'
name=':mixed'"
+ * @generated
+ */
+ FeatureMap getMixed();
+
+ /**
+ * Returns the value of the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XMLNS Prefix Map</em>' map.
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getDocumentRoot_XMLNSPrefixMap()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xmlns:prefix'"
+ * @generated
+ */
+ EMap<String, String> getXMLNSPrefixMap();
+
+ /**
+ * Returns the value of the '<em><b>XSI Schema
Location</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XSI Schema Location</em>' map
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XSI Schema Location</em>' map.
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getDocumentRoot_XSISchemaLocation()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>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(Reader)
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getDocumentRoot_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
+ */
+ Reader getReader();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.csv.DocumentRoot#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(Reader value);
+
+} // DocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/DocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/Reader.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/Reader.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/Reader.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.Reader#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.Reader#getFields
<em>Fields</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.Reader#getQuote
<em>Quote</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.Reader#getSeparator
<em>Separator</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.Reader#getSkipLines <em>Skip
Lines</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.csv.CsvPackage#getReader()
+ * @model extendedMetaData="name='reader' kind='empty'"
+ * @generated
+ */
+public interface Reader 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#getReader_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.Reader#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.Reader#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.Reader#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#getReader_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.Reader#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#getReader_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.Reader#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.Reader#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.Reader#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#getReader_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.Reader#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.Reader#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.Reader#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#getReader_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.Reader#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.Reader#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.Reader#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();
+
+} // Reader
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/Reader.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
06:07:39 UTC (rev 14717)
@@ -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.*;
+
+/**
+ * <!-- 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.DOCUMENT_ROOT: return createDocumentRoot();
+ case CsvPackage.READER: return createReader();
+ 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 DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Reader createReader() {
+ ReaderImpl reader = new ReaderImpl();
+ return reader;
+ }
+
+ /**
+ * <!-- 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
06:07:39 UTC (rev 14717)
@@ -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.CsvFactory;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv.DocumentRoot;
+import org.jboss.tools.smooks.model.csv.Reader;
+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 documentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass readerEClass = 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 getDocumentRoot() {
+ return documentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDocumentRoot_Mixed() {
+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XSISchemaLocation() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_Reader() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getReader() {
+ return readerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_Encoding() {
+ return (EAttribute)readerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_Fields() {
+ return (EAttribute)readerEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_Quote() {
+ return (EAttribute)readerEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_Separator() {
+ return (EAttribute)readerEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_SkipLines() {
+ return (EAttribute)readerEClass.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
+ documentRootEClass = createEClass(DOCUMENT_ROOT);
+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__READER);
+
+ readerEClass = createEClass(READER);
+ createEAttribute(readerEClass, READER__ENCODING);
+ createEAttribute(readerEClass, READER__FIELDS);
+ createEAttribute(readerEClass, READER__QUOTE);
+ createEAttribute(readerEClass, READER__SEPARATOR);
+ createEAttribute(readerEClass, 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
+ readerEClass.getESuperTypes().add(theSmooksPackage.getAbstractReader());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(),
"mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XMLNSPrefixMap(),
ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1,
null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XSISchemaLocation(),
ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0,
-1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_Reader(), this.getReader(), 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(readerEClass, Reader.class, "CSV Reader", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getReader_Encoding(), theXMLTypePackage.getString(),
"encoding", "UTF-8", 0, 1, Reader.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_Fields(), theXMLTypePackage.getString(), "fields",
null, 0, 1, Reader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_Quote(), this.getChar(), "quote",
"\"", 0, 1, Reader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_Separator(), this.getChar(), "separator",
",", 0, 1, Reader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_SkipLines(), theXMLTypePackage.getInteger(),
"skipLines", "0", 0, 1, Reader.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
+ (documentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getDocumentRoot_Reader(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "reader",
+ "namespace", "##targetNamespace",
+ "affiliation",
"http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader"
+ });
+ addAnnotation
+ (readerEClass,
+ source,
+ new String[] {
+ "name", "reader",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getReader_Encoding(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "encoding"
+ });
+ addAnnotation
+ (getReader_Fields(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "fields"
+ });
+ addAnnotation
+ (getReader_Quote(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "quote"
+ });
+ addAnnotation
+ (getReader_Separator(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "separator"
+ });
+ addAnnotation
+ (getReader_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/DocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/DocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/DocumentRootImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.CsvPackage;
+import org.jboss.tools.smooks.model.csv.DocumentRoot;
+import org.jboss.tools.smooks.model.csv.Reader;
+
+/**
+ * <!-- 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.DocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.csv.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.csv.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI
Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.DocumentRootImpl#getReader
<em>Reader</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+ /**
+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix
Map</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xMLNSPrefixMap;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema
Location</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xSISchemaLocation;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return CsvPackage.Literals.DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, CsvPackage.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.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.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Reader getReader() {
+ return (Reader)getMixed().get(CsvPackage.Literals.DOCUMENT_ROOT__READER, true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetReader(Reader newReader, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(CsvPackage.Literals.DOCUMENT_ROOT__READER,
newReader, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setReader(Reader newReader) {
+ ((FeatureMap.Internal)getMixed()).set(CsvPackage.Literals.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.DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case CsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case CsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case CsvPackage.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.DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case CsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case CsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case CsvPackage.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.DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case CsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case CsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case CsvPackage.DOCUMENT_ROOT__READER:
+ setReader((Reader)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case CsvPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case CsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case CsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case CsvPackage.DOCUMENT_ROOT__READER:
+ setReader((Reader)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case CsvPackage.DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case CsvPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case CsvPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case CsvPackage.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();
+ }
+
+} //DocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/DocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/ReaderImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/ReaderImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/ReaderImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.Reader;
+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.ReaderImpl#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.ReaderImpl#getFields
<em>Fields</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.ReaderImpl#getQuote
<em>Quote</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.ReaderImpl#getSeparator
<em>Separator</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.csv.impl.ReaderImpl#getSkipLines
<em>Skip Lines</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ReaderImpl extends AbstractReaderImpl implements Reader {
+ /**
+ * 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 ReaderImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return CsvPackage.Literals.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.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.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.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.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.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.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.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.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.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.READER__ENCODING:
+ return getEncoding();
+ case CsvPackage.READER__FIELDS:
+ return getFields();
+ case CsvPackage.READER__QUOTE:
+ return getQuote();
+ case CsvPackage.READER__SEPARATOR:
+ return getSeparator();
+ case CsvPackage.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.READER__ENCODING:
+ setEncoding((String)newValue);
+ return;
+ case CsvPackage.READER__FIELDS:
+ setFields((String)newValue);
+ return;
+ case CsvPackage.READER__QUOTE:
+ setQuote((String)newValue);
+ return;
+ case CsvPackage.READER__SEPARATOR:
+ setSeparator((String)newValue);
+ return;
+ case CsvPackage.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.READER__ENCODING:
+ unsetEncoding();
+ return;
+ case CsvPackage.READER__FIELDS:
+ setFields(FIELDS_EDEFAULT);
+ return;
+ case CsvPackage.READER__QUOTE:
+ unsetQuote();
+ return;
+ case CsvPackage.READER__SEPARATOR:
+ unsetSeparator();
+ return;
+ case CsvPackage.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.READER__ENCODING:
+ return isSetEncoding();
+ case CsvPackage.READER__FIELDS:
+ return FIELDS_EDEFAULT == null ? fields != null : !FIELDS_EDEFAULT.equals(fields);
+ case CsvPackage.READER__QUOTE:
+ return isSetQuote();
+ case CsvPackage.READER__SEPARATOR:
+ return isSetSeparator();
+ case CsvPackage.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();
+ }
+
+} //ReaderImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/impl/ReaderImpl.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
06:07:39 UTC (rev 14717)
@@ -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/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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootItemProvider documentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.csv.DocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createDocumentRootAdapter() {
+ if (documentRootItemProvider == null) {
+ documentRootItemProvider = new DocumentRootItemProvider(this);
+ }
+
+ return documentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.csv.Reader} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ReaderItemProvider readerItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.csv.Reader}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createReaderAdapter() {
+ if (readerItemProvider == null) {
+ readerItemProvider = new ReaderItemProvider(this);
+ }
+
+ return readerItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this :
parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (documentRootItemProvider != null) documentRootItemProvider.dispose();
+ if (readerItemProvider != null) readerItemProvider.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/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/DocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.CsvFactory;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.csv.DocumentRoot;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.csv.DocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DocumentRootItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRootItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(CsvPackage.Literals.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 DocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/DocumentRoot"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DocumentRoot_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(DocumentRoot.class)) {
+ case CsvPackage.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.DOCUMENT_ROOT__READER,
+ CsvFactory.eINSTANCE.createReader()));
+ }
+
+ /**
+ * 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/DocumentRootItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/ReaderItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/ReaderItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/csv/provider/ReaderItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.Reader;
+import org.jboss.tools.smooks.model.smooks.provider.AbstractReaderItemProvider;
+
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.csv.Reader} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ReaderItemProvider
+ 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 ReaderItemProvider(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_Reader_encoding_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_encoding_feature", "_UI_CSV_Reader_type"),
+ CsvPackage.Literals.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_Reader_fields_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_fields_feature", "_UI_CSV_Reader_type"),
+ CsvPackage.Literals.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_Reader_quote_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_quote_feature", "_UI_CSV_Reader_type"),
+ CsvPackage.Literals.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_Reader_separator_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_separator_feature", "_UI_CSV_Reader_type"),
+ CsvPackage.Literals.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_Reader_skipLines_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_skipLines_feature", "_UI_CSV_Reader_type"),
+ CsvPackage.Literals.READER__SKIP_LINES,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns Reader.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/Reader"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Reader)object).getTargetProfile();
+ return label == null || label.length() == 0 ?
+ getString("_UI_CSV_Reader_type") :
+ getString("_UI_CSV_Reader_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(Reader.class)) {
+ case CsvPackage.READER__ENCODING:
+ case CsvPackage.READER__FIELDS:
+ case CsvPackage.READER__QUOTE:
+ case CsvPackage.READER__SEPARATOR:
+ case CsvPackage.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/ReaderItemProvider.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
06:07:39 UTC (rev 14717)
@@ -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.CsvPackage;
+import org.jboss.tools.smooks.model.csv.DocumentRoot;
+import org.jboss.tools.smooks.model.csv.Reader;
+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 caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseReader(Reader object) {
+ return createReaderAdapter();
+ }
+ @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.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.csv.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.csv.Reader <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.Reader
+ * @generated
+ */
+ public Adapter createReaderAdapter() {
+ 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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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.CsvPackage;
+import org.jboss.tools.smooks.model.csv.DocumentRoot;
+import org.jboss.tools.smooks.model.csv.Reader;
+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.DOCUMENT_ROOT: {
+ DocumentRoot documentRoot = (DocumentRoot)theEObject;
+ T result = caseDocumentRoot(documentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case CsvPackage.READER: {
+ Reader reader = (Reader)theEObject;
+ T result = caseReader(reader);
+ if (result == null) result = caseAbstractReader(reader);
+ if (result == null) result = caseAbstractResourceConfig(reader);
+ if (result == null) result = caseAbstractAnyType(reader);
+ if (result == null) result = caseAnyType(reader);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDocumentRoot(DocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>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 caseReader(Reader 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
06:07:39 UTC (rev 14717)
@@ -0,0 +1,185 @@
+/**
+ * <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.*;
+
+/**
+ * <!-- 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.DOCUMENT_ROOT:
+ return validateDocumentRoot((DocumentRoot)value, diagnostics, context);
+ case CsvPackage.READER:
+ return validateReader((Reader)value, diagnostics, context);
+ case CsvPackage.CHAR:
+ return validateChar((String)value, diagnostics, context);
+ default:
+ return true;
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean validateDocumentRoot(DocumentRoot documentRoot, DiagnosticChain
diagnostics, Map<Object, Object> context) {
+ return validate_EveryDefaultConstraint(documentRoot, diagnostics, context);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean validateReader(Reader reader, DiagnosticChain diagnostics, Map<Object,
Object> context) {
+ return validate_EveryDefaultConstraint(reader, 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
06:07:39 UTC (rev 14717)
@@ -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/dbrouting/DbroutingFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DbroutingFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DbroutingFactory.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,73 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting;
+
+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.dbrouting.DbroutingPackage
+ * @generated
+ */
+public interface DbroutingFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ DbroutingFactory eINSTANCE =
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Document Root</em>'.
+ * @generated
+ */
+ DocumentRoot createDocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>Executor</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Executor</em>'.
+ * @generated
+ */
+ Executor createExecutor();
+
+ /**
+ * Returns a new object of class '<em>Result Set</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Result Set</em>'.
+ * @generated
+ */
+ ResultSet createResultSet();
+
+ /**
+ * Returns a new object of class '<em>Result Set Row
Selector</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Result Set Row
Selector</em>'.
+ * @generated
+ */
+ ResultSetRowSelector createResultSetRowSelector();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ DbroutingPackage getDbroutingPackage();
+
+} //DbroutingFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DbroutingFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DbroutingPackage.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DbroutingPackage.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DbroutingPackage.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,961 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting;
+
+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 SQL Routing Configuration
+ * <!-- end-model-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.DbroutingFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface DbroutingPackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "dbrouting";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.milyn.org/xsd/smooks/db-routing-1.1.xsd";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "db";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ DbroutingPackage eINSTANCE =
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.dbrouting.impl.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.DocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ int DOCUMENT_ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__MIXED = 0;
+
+ /**
+ * The feature id for the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+ /**
+ * The feature id for the '<em><b>XSI Schema
Location</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Executor</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__EXECUTOR = 3;
+
+ /**
+ * The feature id for the '<em><b>Result Set Row
Selector</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR = 4;
+
+ /**
+ * The number of structural features of the '<em>Document Root</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT_FEATURE_COUNT = 5;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl
<em>Executor</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getExecutor()
+ * @generated
+ */
+ int EXECUTOR = 1;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EXECUTOR__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 EXECUTOR__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 EXECUTOR__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 EXECUTOR__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 EXECUTOR__TARGET_PROFILE = SmooksPackage.ELEMENT_VISITOR__TARGET_PROFILE;
+
+ /**
+ * The feature id for the '<em><b>Statement</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EXECUTOR__STATEMENT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Result Set</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EXECUTOR__RESULT_SET = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Datasource</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EXECUTOR__DATASOURCE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Execute
Before</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EXECUTOR__EXECUTE_BEFORE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Execute On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EXECUTOR__EXECUTE_ON_ELEMENT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>Execute On Element
NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EXECUTOR__EXECUTE_ON_ELEMENT_NS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 5;
+
+ /**
+ * The number of structural features of the '<em>Executor</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int EXECUTOR_FEATURE_COUNT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 6;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetImpl <em>Result
Set</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.ResultSetImpl
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getResultSet()
+ * @generated
+ */
+ int RESULT_SET = 2;
+
+ /**
+ * The feature id for the '<em><b>Name</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET__NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Scope</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET__SCOPE = 1;
+
+ /**
+ * The feature id for the '<em><b>Time To Live</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET__TIME_TO_LIVE = 2;
+
+ /**
+ * The number of structural features of the '<em>Result Set</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl <em>Result Set
Row Selector</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl
+ * @see
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getResultSetRowSelector()
+ * @generated
+ */
+ int RESULT_SET_ROW_SELECTOR = 3;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET_ROW_SELECTOR__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 RESULT_SET_ROW_SELECTOR__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 RESULT_SET_ROW_SELECTOR__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 RESULT_SET_ROW_SELECTOR__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 RESULT_SET_ROW_SELECTOR__TARGET_PROFILE =
SmooksPackage.ELEMENT_VISITOR__TARGET_PROFILE;
+
+ /**
+ * The feature id for the '<em><b>Where</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET_ROW_SELECTOR__WHERE = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Failed Select
Error</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET_ROW_SELECTOR__FAILED_SELECT_ERROR =
SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 1;
+
+ /**
+ * The feature id for the '<em><b>Bean Id</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET_ROW_SELECTOR__BEAN_ID = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 2;
+
+ /**
+ * The feature id for the '<em><b>Execute
Before</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET_ROW_SELECTOR__EXECUTE_BEFORE =
SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 3;
+
+ /**
+ * The feature id for the '<em><b>Result Set
Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET_ROW_SELECTOR__RESULT_SET_NAME =
SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 4;
+
+ /**
+ * The feature id for the '<em><b>Select Row On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET_ROW_SELECTOR__SELECT_ROW_ON_ELEMENT =
SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 5;
+
+ /**
+ * The number of structural features of the '<em>Result Set Row
Selector</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int RESULT_SET_ROW_SELECTOR_FEATURE_COUNT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT
+ 6;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType <em>Result Set Scope
Type</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType
+ * @see
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getResultSetScopeType()
+ * @generated
+ */
+ int RESULT_SET_SCOPE_TYPE = 4;
+
+ /**
+ * The meta object id for the '<em>Result Set Scope Type
Object</em>' data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType
+ * @see
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getResultSetScopeTypeObject()
+ * @generated
+ */
+ int RESULT_SET_SCOPE_TYPE_OBJECT = 5;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot <em>Document
Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Document Root</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.DocumentRoot
+ * @generated
+ */
+ EClass getDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getMixed
<em>Mixed</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EAttribute getDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XSI Schema
Location</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getExecutor
<em>Executor</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference
'<em>Executor</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getExecutor()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_Executor();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getResultSetRowSelector
<em>Result Set Row Selector</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Result Set Row
Selector</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getResultSetRowSelector()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_ResultSetRowSelector();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.dbrouting.Executor <em>Executor</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Executor</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.Executor
+ * @generated
+ */
+ EClass getExecutor();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getStatement
<em>Statement</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Statement</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.Executor#getStatement()
+ * @see #getExecutor()
+ * @generated
+ */
+ EAttribute getExecutor_Statement();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getResultSet <em>Result
Set</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Result
Set</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.Executor#getResultSet()
+ * @see #getExecutor()
+ * @generated
+ */
+ EReference getExecutor_ResultSet();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getDatasource
<em>Datasource</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Datasource</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.Executor#getDatasource()
+ * @see #getExecutor()
+ * @generated
+ */
+ EAttribute getExecutor_Datasource();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#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.dbrouting.Executor#isExecuteBefore()
+ * @see #getExecutor()
+ * @generated
+ */
+ EAttribute getExecutor_ExecuteBefore();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getExecuteOnElement <em>Execute On
Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Execute On
Element</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.Executor#getExecuteOnElement()
+ * @see #getExecutor()
+ * @generated
+ */
+ EAttribute getExecutor_ExecuteOnElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getExecuteOnElementNS <em>Execute On
Element NS</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Execute On Element
NS</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.Executor#getExecuteOnElementNS()
+ * @see #getExecutor()
+ * @generated
+ */
+ EAttribute getExecutor_ExecuteOnElementNS();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSet <em>Result Set</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Result Set</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSet
+ * @generated
+ */
+ EClass getResultSet();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSet#getName <em>Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Name</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSet#getName()
+ * @see #getResultSet()
+ * @generated
+ */
+ EAttribute getResultSet_Name();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSet#getScope
<em>Scope</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Scope</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSet#getScope()
+ * @see #getResultSet()
+ * @generated
+ */
+ EAttribute getResultSet_Scope();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSet#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.dbrouting.ResultSet#getTimeToLive()
+ * @see #getResultSet()
+ * @generated
+ */
+ EAttribute getResultSet_TimeToLive();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector <em>Result Set Row
Selector</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Result Set Row
Selector</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector
+ * @generated
+ */
+ EClass getResultSetRowSelector();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getWhere
<em>Where</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Where</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getWhere()
+ * @see #getResultSetRowSelector()
+ * @generated
+ */
+ EAttribute getResultSetRowSelector_Where();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getFailedSelectError
<em>Failed Select Error</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Failed Select
Error</em>'.
+ * @see
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getFailedSelectError()
+ * @see #getResultSetRowSelector()
+ * @generated
+ */
+ EAttribute getResultSetRowSelector_FailedSelectError();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#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.dbrouting.ResultSetRowSelector#getBeanId()
+ * @see #getResultSetRowSelector()
+ * @generated
+ */
+ EAttribute getResultSetRowSelector_BeanId();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#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.dbrouting.ResultSetRowSelector#isExecuteBefore()
+ * @see #getResultSetRowSelector()
+ * @generated
+ */
+ EAttribute getResultSetRowSelector_ExecuteBefore();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getResultSetName
<em>Result Set Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Result Set
Name</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getResultSetName()
+ * @see #getResultSetRowSelector()
+ * @generated
+ */
+ EAttribute getResultSetRowSelector_ResultSetName();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getSelectRowOnElement
<em>Select Row On Element</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Select Row On
Element</em>'.
+ * @see
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getSelectRowOnElement()
+ * @see #getResultSetRowSelector()
+ * @generated
+ */
+ EAttribute getResultSetRowSelector_SelectRowOnElement();
+
+ /**
+ * Returns the meta object for enum '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType <em>Result Set Scope
Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for enum '<em>Result Set Scope
Type</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType
+ * @generated
+ */
+ EEnum getResultSetScopeType();
+
+ /**
+ * Returns the meta object for data type '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType <em>Result Set Scope Type
Object</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for data type '<em>Result Set Scope Type
Object</em>'.
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType
+ * @model instanceClass="dbrouting.ResultSetScopeType"
+ * extendedMetaData="name='resultSetScopeType:Object'
baseType='resultSetScopeType'"
+ * @generated
+ */
+ EDataType getResultSetScopeTypeObject();
+
+ /**
+ * 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
+ */
+ DbroutingFactory getDbroutingFactory();
+
+ /**
+ * <!-- 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.dbrouting.impl.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.DocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Executor</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__EXECUTOR = eINSTANCE.getDocumentRoot_Executor();
+
+ /**
+ * The meta object literal for the '<em><b>Result Set Row
Selector</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR =
eINSTANCE.getDocumentRoot_ResultSetRowSelector();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl
<em>Executor</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getExecutor()
+ * @generated
+ */
+ EClass EXECUTOR = eINSTANCE.getExecutor();
+
+ /**
+ * The meta object literal for the
'<em><b>Statement</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute EXECUTOR__STATEMENT = eINSTANCE.getExecutor_Statement();
+
+ /**
+ * The meta object literal for the '<em><b>Result
Set</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference EXECUTOR__RESULT_SET = eINSTANCE.getExecutor_ResultSet();
+
+ /**
+ * The meta object literal for the
'<em><b>Datasource</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute EXECUTOR__DATASOURCE = eINSTANCE.getExecutor_Datasource();
+
+ /**
+ * The meta object literal for the '<em><b>Execute
Before</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute EXECUTOR__EXECUTE_BEFORE = eINSTANCE.getExecutor_ExecuteBefore();
+
+ /**
+ * The meta object literal for the '<em><b>Execute On
Element</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute EXECUTOR__EXECUTE_ON_ELEMENT = eINSTANCE.getExecutor_ExecuteOnElement();
+
+ /**
+ * The meta object literal for the '<em><b>Execute On Element
NS</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute EXECUTOR__EXECUTE_ON_ELEMENT_NS =
eINSTANCE.getExecutor_ExecuteOnElementNS();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetImpl <em>Result
Set</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.ResultSetImpl
+ * @see
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getResultSet()
+ * @generated
+ */
+ EClass RESULT_SET = eINSTANCE.getResultSet();
+
+ /**
+ * The meta object literal for the
'<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute RESULT_SET__NAME = eINSTANCE.getResultSet_Name();
+
+ /**
+ * The meta object literal for the
'<em><b>Scope</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute RESULT_SET__SCOPE = eINSTANCE.getResultSet_Scope();
+
+ /**
+ * The meta object literal for the '<em><b>Time To
Live</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute RESULT_SET__TIME_TO_LIVE = eINSTANCE.getResultSet_TimeToLive();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl <em>Result Set
Row Selector</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl
+ * @see
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getResultSetRowSelector()
+ * @generated
+ */
+ EClass RESULT_SET_ROW_SELECTOR = eINSTANCE.getResultSetRowSelector();
+
+ /**
+ * The meta object literal for the
'<em><b>Where</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute RESULT_SET_ROW_SELECTOR__WHERE = eINSTANCE.getResultSetRowSelector_Where();
+
+ /**
+ * The meta object literal for the '<em><b>Failed Select
Error</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute RESULT_SET_ROW_SELECTOR__FAILED_SELECT_ERROR =
eINSTANCE.getResultSetRowSelector_FailedSelectError();
+
+ /**
+ * The meta object literal for the '<em><b>Bean
Id</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute RESULT_SET_ROW_SELECTOR__BEAN_ID =
eINSTANCE.getResultSetRowSelector_BeanId();
+
+ /**
+ * The meta object literal for the '<em><b>Execute
Before</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute RESULT_SET_ROW_SELECTOR__EXECUTE_BEFORE =
eINSTANCE.getResultSetRowSelector_ExecuteBefore();
+
+ /**
+ * The meta object literal for the '<em><b>Result Set
Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute RESULT_SET_ROW_SELECTOR__RESULT_SET_NAME =
eINSTANCE.getResultSetRowSelector_ResultSetName();
+
+ /**
+ * The meta object literal for the '<em><b>Select Row On
Element</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute RESULT_SET_ROW_SELECTOR__SELECT_ROW_ON_ELEMENT =
eINSTANCE.getResultSetRowSelector_SelectRowOnElement();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType <em>Result Set Scope
Type</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType
+ * @see
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getResultSetScopeType()
+ * @generated
+ */
+ EEnum RESULT_SET_SCOPE_TYPE = eINSTANCE.getResultSetScopeType();
+
+ /**
+ * The meta object literal for the '<em>Result Set Scope Type
Object</em>' data type.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType
+ * @see
org.jboss.tools.smooks.model.dbrouting.impl.DbroutingPackageImpl#getResultSetScopeTypeObject()
+ * @generated
+ */
+ EDataType RESULT_SET_SCOPE_TYPE_OBJECT = eINSTANCE.getResultSetScopeTypeObject();
+
+ }
+
+} //DbroutingPackage
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DbroutingPackage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DocumentRoot.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,148 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting;
+
+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.dbrouting.DocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getExecutor
<em>Executor</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getResultSetRowSelector
<em>Result Set Row Selector</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface DocumentRoot extends EObject {
+ /**
+ * Returns the value of the '<em><b>Mixed</b></em>'
attribute list.
+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Mixed</em>' attribute list isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Mixed</em>' attribute list.
+ * @see org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getDocumentRoot_Mixed()
+ * @model unique="false"
dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+ * extendedMetaData="kind='elementWildcard'
name=':mixed'"
+ * @generated
+ */
+ FeatureMap getMixed();
+
+ /**
+ * Returns the value of the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XMLNS Prefix Map</em>' map.
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getDocumentRoot_XMLNSPrefixMap()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xmlns:prefix'"
+ * @generated
+ */
+ EMap<String, String> getXMLNSPrefixMap();
+
+ /**
+ * Returns the value of the '<em><b>XSI Schema
Location</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XSI Schema Location</em>' map
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XSI Schema Location</em>' map.
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getDocumentRoot_XSISchemaLocation()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>Executor</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * SQL Executor configuration
+ * The SQL Executor can be used to perform event driven read and write operations
on a DataSource,
+ * using data in the bean context as the query/update parameters.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Executor</em>' containment
reference.
+ * @see #setExecutor(Executor)
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getDocumentRoot_Executor()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element' name='executor'
namespace='##targetNamespace'
affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resourc...
+ * @generated
+ */
+ Executor getExecutor();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getExecutor
<em>Executor</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Executor</em>' containment
reference.
+ * @see #getExecutor()
+ * @generated
+ */
+ void setExecutor(Executor value);
+
+ /**
+ * Returns the value of the '<em><b>Result Set Row
Selector</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * ResultSet Row Selector configuration
+ * The ResultSet row Selector can search though a resultset for a specific row.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Result Set Row Selector</em>'
containment reference.
+ * @see #setResultSetRowSelector(ResultSetRowSelector)
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getDocumentRoot_ResultSetRowSelector()
+ * @model containment="true" upper="-2" transient="true"
volatile="true" derived="true"
+ * extendedMetaData="kind='element'
name='resultSetRowSelector' namespace='##targetNamespace'
affiliation='http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resourc...
+ * @generated
+ */
+ ResultSetRowSelector getResultSetRowSelector();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot#getResultSetRowSelector
<em>Result Set Row Selector</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Result Set Row
Selector</em>' containment reference.
+ * @see #getResultSetRowSelector()
+ * @generated
+ */
+ void setResultSetRowSelector(ResultSetRowSelector value);
+
+} // DocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/DocumentRoot.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/Executor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/Executor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/Executor.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,239 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting;
+
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object
'<em><b>Executor</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * SQL Executor
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.Executor#getStatement
<em>Statement</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.Executor#getResultSet
<em>Result Set</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.Executor#getDatasource
<em>Datasource</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.Executor#isExecuteBefore
<em>Execute Before</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.Executor#getExecuteOnElement
<em>Execute On Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getExecuteOnElementNS <em>Execute On
Element NS</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getExecutor()
+ * @model extendedMetaData="name='executor'
kind='elementOnly'"
+ * @generated
+ */
+public interface Executor extends ElementVisitor {
+ /**
+ * Returns the value of the '<em><b>Statement</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The SQL statement to be executed. Supports templating in the form of
${variable}.
+ * The variables are resolved from the bean context.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Statement</em>' attribute.
+ * @see #setStatement(String)
+ * @see org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getExecutor_Statement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='element' name='statement'
namespace='##targetNamespace'"
+ * @generated
+ */
+ String getStatement();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getStatement
<em>Statement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Statement</em>'
attribute.
+ * @see #getStatement()
+ * @generated
+ */
+ void setStatement(String value);
+
+ /**
+ * Returns the value of the '<em><b>Result Set</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * Sets the resultSet specific configuration like the resultSet name, scope
and timeToLive.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Result Set</em>' containment
reference.
+ * @see #setResultSet(ResultSet)
+ * @see org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getExecutor_ResultSet()
+ * @model containment="true"
+ * extendedMetaData="kind='element' name='resultSet'
namespace='##targetNamespace'"
+ * @generated
+ */
+ ResultSet getResultSet();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getResultSet <em>Result
Set</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Result Set</em>'
containment reference.
+ * @see #getResultSet()
+ * @generated
+ */
+ void setResultSet(ResultSet value);
+
+ /**
+ * Returns the value of the '<em><b>Datasource</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The name of the datasource configuration to use. See the datasource
configuration
+ * of the Smooks core library.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Datasource</em>' attribute.
+ * @see #setDatasource(String)
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getExecutor_Datasource()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='datasource'"
+ * @generated
+ */
+ String getDatasource();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getDatasource
<em>Datasource</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Datasource</em>'
attribute.
+ * @see #getDatasource()
+ * @generated
+ */
+ void setDatasource(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 query is executed before the element else it will execute after the
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.dbrouting.DbroutingPackage#getExecutor_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.dbrouting.Executor#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.dbrouting.Executor#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.dbrouting.Executor#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>Execute On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The element on which the query is executed. With the
'executeBefore'
+ * attribute can be set if the query is executed before or after the element.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Execute On Element</em>'
attribute.
+ * @see #setExecuteOnElement(String)
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getExecutor_ExecuteOnElement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='executeOnElement'"
+ * @generated
+ */
+ String getExecuteOnElement();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getExecuteOnElement <em>Execute On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Execute On Element</em>'
attribute.
+ * @see #getExecuteOnElement()
+ * @generated
+ */
+ void setExecuteOnElement(String value);
+
+ /**
+ * Returns the value of the '<em><b>Execute On Element
NS</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The namespace of the executeOnElement element.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Execute On Element NS</em>'
attribute.
+ * @see #setExecuteOnElementNS(String)
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getExecutor_ExecuteOnElementNS()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute'
name='executeOnElementNS'"
+ * @generated
+ */
+ String getExecuteOnElementNS();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.Executor#getExecuteOnElementNS <em>Execute On
Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Execute On Element
NS</em>' attribute.
+ * @see #getExecuteOnElementNS()
+ * @generated
+ */
+ void setExecuteOnElementNS(String value);
+
+} // Executor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/Executor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSet.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSet.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSet.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,180 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Result
Set</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.ResultSet#getName
<em>Name</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.ResultSet#getScope
<em>Scope</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.ResultSet#getTimeToLive
<em>Time To Live</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getResultSet()
+ * @model extendedMetaData="name='resultSet' kind='empty'"
+ * @generated
+ */
+public interface ResultSet extends EObject {
+ /**
+ * Returns the value of the '<em><b>Name</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * If the statement is a query statement then the ResultSet will be bound
+ * with this id in the ExecutionContext. Must be specified if the
'statement' is a query
+ * statement, otherwise it is optional.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Name</em>' attribute.
+ * @see #setName(String)
+ * @see org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getResultSet_Name()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='attribute' name='name'"
+ * @generated
+ */
+ String getName();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSet#getName <em>Name</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Name</em>' attribute.
+ * @see #getName()
+ * @generated
+ */
+ void setName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Scope</b></em>'
attribute.
+ * The default value is <code>"EXECUTION"</code>.
+ * The literals are from the enumeration {@link
org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The scope on which the resultSet will be stored. The scope can be on a
EXECUTION or
+ * on a APPLICATION level. On a EXECUTION level the query is executed every time
on the selected element.
+ * On a APPLICATION level the query is only executed once for the
+ * whole Smooks instance until the resultSet expires. With the
'timeToLive' attribute the expire time
+ * can be configured. After the resultSet is expired the query will be executed
again.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Scope</em>' attribute.
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType
+ * @see #isSetScope()
+ * @see #unsetScope()
+ * @see #setScope(ResultSetScopeType)
+ * @see org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getResultSet_Scope()
+ * @model default="EXECUTION" unsettable="true"
+ * extendedMetaData="kind='attribute' name='scope'"
+ * @generated
+ */
+ ResultSetScopeType getScope();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSet#getScope <em>Scope</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Scope</em>' attribute.
+ * @see org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType
+ * @see #isSetScope()
+ * @see #unsetScope()
+ * @see #getScope()
+ * @generated
+ */
+ void setScope(ResultSetScopeType value);
+
+ /**
+ * Unsets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSet#getScope <em>Scope</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isSetScope()
+ * @see #getScope()
+ * @see #setScope(ResultSetScopeType)
+ * @generated
+ */
+ void unsetScope();
+
+ /**
+ * Returns whether the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSet#getScope <em>Scope</em>}'
attribute is set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return whether the value of the '<em>Scope</em>' attribute is
set.
+ * @see #unsetScope()
+ * @see #getScope()
+ * @see #setScope(ResultSetScopeType)
+ * @generated
+ */
+ boolean isSetScope();
+
+ /**
+ * Returns the value of the '<em><b>Time To
Live</b></em>' attribute.
+ * The default value is <code>"900000"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * If the 'scope' attribute is set to APPLICATION this attribute
determines the expire time
+ * in milliseconds of the resultSet. After the resultSet is expired the query
will be executed again.
+ *
+ * <!-- 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.dbrouting.DbroutingPackage#getResultSet_TimeToLive()
+ * @model default="900000" 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.dbrouting.ResultSet#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.dbrouting.ResultSet#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.dbrouting.ResultSet#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();
+
+} // ResultSet
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSet.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSetRowSelector.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSetRowSelector.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSetRowSelector.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,237 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting;
+
+import org.jboss.tools.smooks.model.smooks.ElementVisitor;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Result Set Row
Selector</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <!-- begin-model-doc -->
+ *
+ * ResultSet row selector
+ *
+ * <!-- end-model-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getWhere
<em>Where</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getFailedSelectError
<em>Failed Select Error</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getBeanId <em>Bean
Id</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#isExecuteBefore
<em>Execute Before</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getResultSetName
<em>Result Set Name</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getSelectRowOnElement
<em>Select Row On Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getResultSetRowSelector()
+ * @model extendedMetaData="name='resultSetRowSelector'
kind='elementOnly'"
+ * @generated
+ */
+public interface ResultSetRowSelector extends ElementVisitor {
+ /**
+ * Returns the value of the '<em><b>Where</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The MVEL condition to select the correct row.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Where</em>' attribute.
+ * @see #setWhere(String)
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getResultSetRowSelector_Where()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='element' name='where'
namespace='##targetNamespace'"
+ * @generated
+ */
+ String getWhere();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getWhere
<em>Where</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Where</em>' attribute.
+ * @see #getWhere()
+ * @generated
+ */
+ void setWhere(String value);
+
+ /**
+ * Returns the value of the '<em><b>Failed Select
Error</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The error message that is thrown in
org.milyn.routing.db.DataSelectionException
+ * exception when no row was found that matches the 'where' query.
+ * If the error message is not set then no exception will be thrown.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Failed Select Error</em>'
attribute.
+ * @see #setFailedSelectError(String)
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getResultSetRowSelector_FailedSelectError()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
+ * extendedMetaData="kind='element' name='failedSelectError'
namespace='##targetNamespace'"
+ * @generated
+ */
+ String getFailedSelectError();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getFailedSelectError
<em>Failed Select Error</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Failed Select Error</em>'
attribute.
+ * @see #getFailedSelectError()
+ * @generated
+ */
+ void setFailedSelectError(String value);
+
+ /**
+ * Returns the value of the '<em><b>Bean Id</b></em>'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The beanId under which the selected row will be added in the bean context.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Bean Id</em>' attribute.
+ * @see #setBeanId(String)
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getResultSetRowSelector_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.dbrouting.ResultSetRowSelector#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>Execute
Before</b></em>' attribute.
+ * The default value is <code>"false"</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * If the selection 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.dbrouting.DbroutingPackage#getResultSetRowSelector_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.dbrouting.ResultSetRowSelector#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.dbrouting.ResultSetRowSelector#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.dbrouting.ResultSetRowSelector#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>Result Set
Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The name of the resultSet to select the row from.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Result Set Name</em>' attribute.
+ * @see #setResultSetName(String)
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getResultSetRowSelector_ResultSetName()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='resultSetName'"
+ * @generated
+ */
+ String getResultSetName();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getResultSetName
<em>Result Set Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Result Set Name</em>'
attribute.
+ * @see #getResultSetName()
+ * @generated
+ */
+ void setResultSetName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Select Row On
Element</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * <!-- begin-model-doc -->
+ *
+ * The element on which the row selection is executed.
+ *
+ * <!-- end-model-doc -->
+ * @return the value of the '<em>Select Row On Element</em>'
attribute.
+ * @see #setSelectRowOnElement(String)
+ * @see
org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getResultSetRowSelector_SelectRowOnElement()
+ * @model dataType="org.eclipse.emf.ecore.xml.type.String"
required="true"
+ * extendedMetaData="kind='attribute'
name='selectRowOnElement'"
+ * @generated
+ */
+ String getSelectRowOnElement();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector#getSelectRowOnElement
<em>Select Row On Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Select Row On
Element</em>' attribute.
+ * @see #getSelectRowOnElement()
+ * @generated
+ */
+ void setSelectRowOnElement(String value);
+
+} // ResultSetRowSelector
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSetRowSelector.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSetScopeType.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSetScopeType.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSetScopeType.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,212 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting;
+
+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>Result Set
Scope Type</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.dbrouting.DbroutingPackage#getResultSetScopeType()
+ * @model extendedMetaData="name='resultSetScopeType'"
+ * @generated
+ */
+public enum ResultSetScopeType implements Enumerator {
+ /**
+ * The '<em><b>EXECUTION</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #EXECUTION_VALUE
+ * @generated
+ * @ordered
+ */
+ EXECUTION(0, "EXECUTION", "EXECUTION"),
+
+ /**
+ * The '<em><b>APPLICATION</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #APPLICATION_VALUE
+ * @generated
+ * @ordered
+ */
+ APPLICATION(1, "APPLICATION", "APPLICATION");
+
+ /**
+ * The '<em><b>EXECUTION</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>EXECUTION</b></em>' literal
object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #EXECUTION
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int EXECUTION_VALUE = 0;
+
+ /**
+ * The '<em><b>APPLICATION</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>APPLICATION</b></em>'
literal object isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @see #APPLICATION
+ * @model
+ * @generated
+ * @ordered
+ */
+ public static final int APPLICATION_VALUE = 1;
+
+ /**
+ * An array of all the '<em><b>Result Set Scope
Type</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static final ResultSetScopeType[] VALUES_ARRAY =
+ new ResultSetScopeType[] {
+ EXECUTION,
+ APPLICATION,
+ };
+
+ /**
+ * A public read-only list of all the '<em><b>Result Set Scope
Type</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final List<ResultSetScopeType> VALUES =
Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>Result Set Scope Type</b></em>'
literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static ResultSetScopeType get(String literal) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ ResultSetScopeType result = VALUES_ARRAY[i];
+ if (result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Result Set Scope Type</b></em>'
literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static ResultSetScopeType getByName(String name) {
+ for (int i = 0; i < VALUES_ARRAY.length; ++i) {
+ ResultSetScopeType result = VALUES_ARRAY[i];
+ if (result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>Result Set Scope Type</b></em>'
literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static ResultSetScopeType get(int value) {
+ switch (value) {
+ case EXECUTION_VALUE: return EXECUTION;
+ case APPLICATION_VALUE: return APPLICATION;
+ }
+ 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 ResultSetScopeType(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;
+ }
+
+} //ResultSetScopeType
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/ResultSetScopeType.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DbroutingFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DbroutingFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DbroutingFactoryImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,209 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingFactory;
+import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.DocumentRoot;
+import org.jboss.tools.smooks.model.dbrouting.Executor;
+import org.jboss.tools.smooks.model.dbrouting.ResultSet;
+import org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector;
+import org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DbroutingFactoryImpl extends EFactoryImpl implements DbroutingFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static DbroutingFactory init() {
+ try {
+ DbroutingFactory theDbroutingFactory =
(
DbroutingFactory)EPackage.Registry.INSTANCE.getEFactory("http://www....);
+ if (theDbroutingFactory != null) {
+ return theDbroutingFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new DbroutingFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DbroutingFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case DbroutingPackage.DOCUMENT_ROOT: return createDocumentRoot();
+ case DbroutingPackage.EXECUTOR: return createExecutor();
+ case DbroutingPackage.RESULT_SET: return createResultSet();
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR: return createResultSetRowSelector();
+ 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 DbroutingPackage.RESULT_SET_SCOPE_TYPE:
+ return createResultSetScopeTypeFromString(eDataType, initialValue);
+ case DbroutingPackage.RESULT_SET_SCOPE_TYPE_OBJECT:
+ return createResultSetScopeTypeObjectFromString(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 DbroutingPackage.RESULT_SET_SCOPE_TYPE:
+ return convertResultSetScopeTypeToString(eDataType, instanceValue);
+ case DbroutingPackage.RESULT_SET_SCOPE_TYPE_OBJECT:
+ return convertResultSetScopeTypeObjectToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" +
eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Executor createExecutor() {
+ ExecutorImpl executor = new ExecutorImpl();
+ return executor;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ResultSet createResultSet() {
+ ResultSetImpl resultSet = new ResultSetImpl();
+ return resultSet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ResultSetRowSelector createResultSetRowSelector() {
+ ResultSetRowSelectorImpl resultSetRowSelector = new ResultSetRowSelectorImpl();
+ return resultSetRowSelector;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ResultSetScopeType createResultSetScopeTypeFromString(EDataType eDataType, String
initialValue) {
+ ResultSetScopeType result = ResultSetScopeType.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 convertResultSetScopeTypeToString(EDataType eDataType, Object
instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ResultSetScopeType createResultSetScopeTypeObjectFromString(EDataType eDataType,
String initialValue) {
+ return
createResultSetScopeTypeFromString(DbroutingPackage.Literals.RESULT_SET_SCOPE_TYPE,
initialValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String convertResultSetScopeTypeObjectToString(EDataType eDataType, Object
instanceValue) {
+ return
convertResultSetScopeTypeToString(DbroutingPackage.Literals.RESULT_SET_SCOPE_TYPE,
instanceValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DbroutingPackage getDbroutingPackage() {
+ return (DbroutingPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static DbroutingPackage getPackage() {
+ return DbroutingPackage.eINSTANCE;
+ }
+
+} //DbroutingFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DbroutingFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DbroutingPackageImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DbroutingPackageImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DbroutingPackageImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,734 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingFactory;
+import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.DocumentRoot;
+import org.jboss.tools.smooks.model.dbrouting.Executor;
+import org.jboss.tools.smooks.model.dbrouting.ResultSet;
+import org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector;
+import org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType;
+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 DbroutingPackageImpl extends EPackageImpl implements DbroutingPackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass documentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass executorEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass resultSetEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass resultSetRowSelectorEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EEnum resultSetScopeTypeEEnum = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EDataType resultSetScopeTypeObjectEDataType = 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.dbrouting.DbroutingPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private DbroutingPackageImpl() {
+ super(eNS_URI, DbroutingFactory.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 DbroutingPackage init() {
+ if (isInited) return
(DbroutingPackage)EPackage.Registry.INSTANCE.getEPackage(DbroutingPackage.eNS_URI);
+
+ // Obtain or create and register package
+ DbroutingPackageImpl theDbroutingPackage =
(DbroutingPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof
DbroutingPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new
DbroutingPackageImpl());
+
+ 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
+ theDbroutingPackage.createPackageContents();
+ theSmooksPackage.createPackageContents();
+ theCommonPackage.createPackageContents();
+
+ // Initialize created meta-data
+ theDbroutingPackage.initializePackageContents();
+ theSmooksPackage.initializePackageContents();
+ theCommonPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theDbroutingPackage.freeze();
+
+ return theDbroutingPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDocumentRoot() {
+ return documentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDocumentRoot_Mixed() {
+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XSISchemaLocation() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_Executor() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_ResultSetRowSelector() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getExecutor() {
+ return executorEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getExecutor_Statement() {
+ return (EAttribute)executorEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getExecutor_ResultSet() {
+ return (EReference)executorEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getExecutor_Datasource() {
+ return (EAttribute)executorEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getExecutor_ExecuteBefore() {
+ return (EAttribute)executorEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getExecutor_ExecuteOnElement() {
+ return (EAttribute)executorEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getExecutor_ExecuteOnElementNS() {
+ return (EAttribute)executorEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getResultSet() {
+ return resultSetEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getResultSet_Name() {
+ return (EAttribute)resultSetEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getResultSet_Scope() {
+ return (EAttribute)resultSetEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getResultSet_TimeToLive() {
+ return (EAttribute)resultSetEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getResultSetRowSelector() {
+ return resultSetRowSelectorEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getResultSetRowSelector_Where() {
+ return (EAttribute)resultSetRowSelectorEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getResultSetRowSelector_FailedSelectError() {
+ return (EAttribute)resultSetRowSelectorEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getResultSetRowSelector_BeanId() {
+ return (EAttribute)resultSetRowSelectorEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getResultSetRowSelector_ExecuteBefore() {
+ return (EAttribute)resultSetRowSelectorEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getResultSetRowSelector_ResultSetName() {
+ return (EAttribute)resultSetRowSelectorEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getResultSetRowSelector_SelectRowOnElement() {
+ return (EAttribute)resultSetRowSelectorEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EEnum getResultSetScopeType() {
+ return resultSetScopeTypeEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EDataType getResultSetScopeTypeObject() {
+ return resultSetScopeTypeObjectEDataType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DbroutingFactory getDbroutingFactory() {
+ return (DbroutingFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ documentRootEClass = createEClass(DOCUMENT_ROOT);
+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__EXECUTOR);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR);
+
+ executorEClass = createEClass(EXECUTOR);
+ createEAttribute(executorEClass, EXECUTOR__STATEMENT);
+ createEReference(executorEClass, EXECUTOR__RESULT_SET);
+ createEAttribute(executorEClass, EXECUTOR__DATASOURCE);
+ createEAttribute(executorEClass, EXECUTOR__EXECUTE_BEFORE);
+ createEAttribute(executorEClass, EXECUTOR__EXECUTE_ON_ELEMENT);
+ createEAttribute(executorEClass, EXECUTOR__EXECUTE_ON_ELEMENT_NS);
+
+ resultSetEClass = createEClass(RESULT_SET);
+ createEAttribute(resultSetEClass, RESULT_SET__NAME);
+ createEAttribute(resultSetEClass, RESULT_SET__SCOPE);
+ createEAttribute(resultSetEClass, RESULT_SET__TIME_TO_LIVE);
+
+ resultSetRowSelectorEClass = createEClass(RESULT_SET_ROW_SELECTOR);
+ createEAttribute(resultSetRowSelectorEClass, RESULT_SET_ROW_SELECTOR__WHERE);
+ createEAttribute(resultSetRowSelectorEClass,
RESULT_SET_ROW_SELECTOR__FAILED_SELECT_ERROR);
+ createEAttribute(resultSetRowSelectorEClass, RESULT_SET_ROW_SELECTOR__BEAN_ID);
+ createEAttribute(resultSetRowSelectorEClass, RESULT_SET_ROW_SELECTOR__EXECUTE_BEFORE);
+ createEAttribute(resultSetRowSelectorEClass,
RESULT_SET_ROW_SELECTOR__RESULT_SET_NAME);
+ createEAttribute(resultSetRowSelectorEClass,
RESULT_SET_ROW_SELECTOR__SELECT_ROW_ON_ELEMENT);
+
+ // Create enums
+ resultSetScopeTypeEEnum = createEEnum(RESULT_SET_SCOPE_TYPE);
+
+ // Create data types
+ resultSetScopeTypeObjectEDataType = createEDataType(RESULT_SET_SCOPE_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
+ 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
+ executorEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor());
+ resultSetRowSelectorEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(),
"mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XMLNSPrefixMap(),
ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1,
null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XSISchemaLocation(),
ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0,
-1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_Executor(), this.getExecutor(), null,
"executor", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE, IS_CHANGEABLE,
IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_ResultSetRowSelector(), this.getResultSetRowSelector(),
null, "resultSetRowSelector", null, 0, -2, null, IS_TRANSIENT, IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED,
IS_ORDERED);
+
+ initEClass(executorEClass, Executor.class, "Executor", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getExecutor_Statement(), theXMLTypePackage.getString(),
"statement", null, 1, 1, Executor.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getExecutor_ResultSet(), this.getResultSet(), null,
"resultSet", null, 0, 1, Executor.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEAttribute(getExecutor_Datasource(), theXMLTypePackage.getString(),
"datasource", null, 1, 1, Executor.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getExecutor_ExecuteBefore(), theXMLTypePackage.getBoolean(),
"executeBefore", "false", 0, 1, Executor.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getExecutor_ExecuteOnElement(), theXMLTypePackage.getString(),
"executeOnElement", null, 1, 1, Executor.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getExecutor_ExecuteOnElementNS(), theXMLTypePackage.getString(),
"executeOnElementNS", null, 0, 1, Executor.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(resultSetEClass, ResultSet.class, "ResultSet", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getResultSet_Name(), theXMLTypePackage.getString(), "name",
null, 0, 1, ResultSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getResultSet_Scope(), this.getResultSetScopeType(), "scope",
"EXECUTION", 0, 1, ResultSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getResultSet_TimeToLive(), theXMLTypePackage.getLong(),
"timeToLive", "900000", 0, 1, ResultSet.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(resultSetRowSelectorEClass, ResultSetRowSelector.class,
"ResultSetRowSelector", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getResultSetRowSelector_Where(), theXMLTypePackage.getString(),
"where", null, 1, 1, ResultSetRowSelector.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getResultSetRowSelector_FailedSelectError(),
theXMLTypePackage.getString(), "failedSelectError", null, 0, 1,
ResultSetRowSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getResultSetRowSelector_BeanId(), theXMLTypePackage.getString(),
"beanId", null, 1, 1, ResultSetRowSelector.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getResultSetRowSelector_ExecuteBefore(), theXMLTypePackage.getBoolean(),
"executeBefore", "false", 0, 1, ResultSetRowSelector.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEAttribute(getResultSetRowSelector_ResultSetName(), theXMLTypePackage.getString(),
"resultSetName", null, 1, 1, ResultSetRowSelector.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getResultSetRowSelector_SelectRowOnElement(),
theXMLTypePackage.getString(), "selectRowOnElement", null, 1, 1,
ResultSetRowSelector.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Initialize enums and add enum literals
+ initEEnum(resultSetScopeTypeEEnum, ResultSetScopeType.class,
"ResultSetScopeType");
+ addEEnumLiteral(resultSetScopeTypeEEnum, ResultSetScopeType.EXECUTION);
+ addEEnumLiteral(resultSetScopeTypeEEnum, ResultSetScopeType.APPLICATION);
+
+ // Initialize data types
+ initEDataType(resultSetScopeTypeObjectEDataType, ResultSetScopeType.class,
"ResultSetScopeTypeObject", 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
+ (documentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getDocumentRoot_Executor(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "executor",
+ "namespace", "##targetNamespace",
+ "affiliation",
"http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"
+ });
+ addAnnotation
+ (getDocumentRoot_ResultSetRowSelector(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "resultSetRowSelector",
+ "namespace", "##targetNamespace",
+ "affiliation",
"http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"
+ });
+ addAnnotation
+ (executorEClass,
+ source,
+ new String[] {
+ "name", "executor",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getExecutor_Statement(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "statement",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getExecutor_ResultSet(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "resultSet",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getExecutor_Datasource(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "datasource"
+ });
+ addAnnotation
+ (getExecutor_ExecuteBefore(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "executeBefore"
+ });
+ addAnnotation
+ (getExecutor_ExecuteOnElement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "executeOnElement"
+ });
+ addAnnotation
+ (getExecutor_ExecuteOnElementNS(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "executeOnElementNS"
+ });
+ addAnnotation
+ (resultSetEClass,
+ source,
+ new String[] {
+ "name", "resultSet",
+ "kind", "empty"
+ });
+ addAnnotation
+ (getResultSet_Name(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "name"
+ });
+ addAnnotation
+ (getResultSet_Scope(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "scope"
+ });
+ addAnnotation
+ (getResultSet_TimeToLive(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "timeToLive"
+ });
+ addAnnotation
+ (resultSetRowSelectorEClass,
+ source,
+ new String[] {
+ "name", "resultSetRowSelector",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getResultSetRowSelector_Where(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "where",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getResultSetRowSelector_FailedSelectError(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "failedSelectError",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getResultSetRowSelector_BeanId(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "beanId"
+ });
+ addAnnotation
+ (getResultSetRowSelector_ExecuteBefore(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "executeBefore"
+ });
+ addAnnotation
+ (getResultSetRowSelector_ResultSetName(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "resultSetName"
+ });
+ addAnnotation
+ (getResultSetRowSelector_SelectRowOnElement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "selectRowOnElement"
+ });
+ addAnnotation
+ (resultSetScopeTypeEEnum,
+ source,
+ new String[] {
+ "name", "resultSetScopeType"
+ });
+ addAnnotation
+ (resultSetScopeTypeObjectEDataType,
+ source,
+ new String[] {
+ "name", "resultSetScopeType:Object",
+ "baseType", "resultSetScopeType"
+ });
+ }
+
+} //DbroutingPackageImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DbroutingPackageImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DocumentRootImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,327 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.DocumentRoot;
+import org.jboss.tools.smooks.model.dbrouting.Executor;
+import org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector;
+
+/**
+ * <!-- 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.dbrouting.impl.DocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.DocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.DocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.DocumentRootImpl#getExecutor
<em>Executor</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.DocumentRootImpl#getResultSetRowSelector
<em>Result Set Row Selector</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+ /**
+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix
Map</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xMLNSPrefixMap;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema
Location</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xSISchemaLocation;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return DbroutingPackage.Literals.DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, DbroutingPackage.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,
DbroutingPackage.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,
DbroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Executor getExecutor() {
+ return (Executor)getMixed().get(DbroutingPackage.Literals.DOCUMENT_ROOT__EXECUTOR,
true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetExecutor(Executor newExecutor, NotificationChain msgs)
{
+ return
((FeatureMap.Internal)getMixed()).basicAdd(DbroutingPackage.Literals.DOCUMENT_ROOT__EXECUTOR,
newExecutor, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setExecutor(Executor newExecutor) {
+ ((FeatureMap.Internal)getMixed()).set(DbroutingPackage.Literals.DOCUMENT_ROOT__EXECUTOR,
newExecutor);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ResultSetRowSelector getResultSetRowSelector() {
+ return
(ResultSetRowSelector)getMixed().get(DbroutingPackage.Literals.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR,
true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetResultSetRowSelector(ResultSetRowSelector
newResultSetRowSelector, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(DbroutingPackage.Literals.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR,
newResultSetRowSelector, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setResultSetRowSelector(ResultSetRowSelector newResultSetRowSelector) {
+ ((FeatureMap.Internal)getMixed()).set(DbroutingPackage.Literals.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR,
newResultSetRowSelector);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case DbroutingPackage.DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case DbroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case DbroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case DbroutingPackage.DOCUMENT_ROOT__EXECUTOR:
+ return basicSetExecutor(null, msgs);
+ case DbroutingPackage.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR:
+ return basicSetResultSetRowSelector(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 DbroutingPackage.DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case DbroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case DbroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case DbroutingPackage.DOCUMENT_ROOT__EXECUTOR:
+ return getExecutor();
+ case DbroutingPackage.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR:
+ return getResultSetRowSelector();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case DbroutingPackage.DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case DbroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case DbroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case DbroutingPackage.DOCUMENT_ROOT__EXECUTOR:
+ setExecutor((Executor)newValue);
+ return;
+ case DbroutingPackage.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR:
+ setResultSetRowSelector((ResultSetRowSelector)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case DbroutingPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case DbroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case DbroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case DbroutingPackage.DOCUMENT_ROOT__EXECUTOR:
+ setExecutor((Executor)null);
+ return;
+ case DbroutingPackage.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR:
+ setResultSetRowSelector((ResultSetRowSelector)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case DbroutingPackage.DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case DbroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case DbroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case DbroutingPackage.DOCUMENT_ROOT__EXECUTOR:
+ return getExecutor() != null;
+ case DbroutingPackage.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR:
+ return getResultSetRowSelector() != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (mixed: ");
+ result.append(mixed);
+ result.append(')');
+ return result.toString();
+ }
+
+} //DocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/DocumentRootImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ExecutorImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ExecutorImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ExecutorImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,496 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.Executor;
+import org.jboss.tools.smooks.model.dbrouting.ResultSet;
+import org.jboss.tools.smooks.model.smooks.impl.ElementVisitorImpl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object
'<em><b>Executor</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl#getStatement
<em>Statement</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl#getResultSet <em>Result
Set</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl#getDatasource
<em>Datasource</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl#isExecuteBefore <em>Execute
Before</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl#getExecuteOnElement
<em>Execute On Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ExecutorImpl#getExecuteOnElementNS
<em>Execute On Element NS</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ExecutorImpl extends ElementVisitorImpl implements Executor {
+ /**
+ * The default value of the '{@link #getStatement()
<em>Statement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatement()
+ * @generated
+ * @ordered
+ */
+ protected static final String STATEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getStatement()
<em>Statement</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getStatement()
+ * @generated
+ * @ordered
+ */
+ protected String statement = STATEMENT_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getResultSet() <em>Result
Set</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResultSet()
+ * @generated
+ * @ordered
+ */
+ protected ResultSet resultSet;
+
+ /**
+ * The default value of the '{@link #getDatasource()
<em>Datasource</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDatasource()
+ * @generated
+ * @ordered
+ */
+ protected static final String DATASOURCE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDatasource()
<em>Datasource</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDatasource()
+ * @generated
+ * @ordered
+ */
+ protected String datasource = DATASOURCE_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 #getExecuteOnElement() <em>Execute On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExecuteOnElement()
+ * @generated
+ * @ordered
+ */
+ protected static final String EXECUTE_ON_ELEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getExecuteOnElement() <em>Execute On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExecuteOnElement()
+ * @generated
+ * @ordered
+ */
+ protected String executeOnElement = EXECUTE_ON_ELEMENT_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getExecuteOnElementNS() <em>Execute On
Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExecuteOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected static final String EXECUTE_ON_ELEMENT_NS_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getExecuteOnElementNS() <em>Execute On
Element NS</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getExecuteOnElementNS()
+ * @generated
+ * @ordered
+ */
+ protected String executeOnElementNS = EXECUTE_ON_ELEMENT_NS_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExecutorImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return DbroutingPackage.Literals.EXECUTOR;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getStatement() {
+ return statement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStatement(String newStatement) {
+ String oldStatement = statement;
+ statement = newStatement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.EXECUTOR__STATEMENT, oldStatement, statement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ResultSet getResultSet() {
+ return resultSet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetResultSet(ResultSet newResultSet, NotificationChain
msgs) {
+ ResultSet oldResultSet = resultSet;
+ resultSet = newResultSet;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
DbroutingPackage.EXECUTOR__RESULT_SET, oldResultSet, newResultSet);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setResultSet(ResultSet newResultSet) {
+ if (newResultSet != resultSet) {
+ NotificationChain msgs = null;
+ if (resultSet != null)
+ msgs = ((InternalEObject)resultSet).eInverseRemove(this, EOPPOSITE_FEATURE_BASE -
DbroutingPackage.EXECUTOR__RESULT_SET, null, msgs);
+ if (newResultSet != null)
+ msgs = ((InternalEObject)newResultSet).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
DbroutingPackage.EXECUTOR__RESULT_SET, null, msgs);
+ msgs = basicSetResultSet(newResultSet, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.EXECUTOR__RESULT_SET, newResultSet, newResultSet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDatasource() {
+ return datasource;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDatasource(String newDatasource) {
+ String oldDatasource = datasource;
+ datasource = newDatasource;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.EXECUTOR__DATASOURCE, oldDatasource, datasource));
+ }
+
+ /**
+ * <!-- 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,
DbroutingPackage.EXECUTOR__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,
DbroutingPackage.EXECUTOR__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 getExecuteOnElement() {
+ return executeOnElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setExecuteOnElement(String newExecuteOnElement) {
+ String oldExecuteOnElement = executeOnElement;
+ executeOnElement = newExecuteOnElement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT, oldExecuteOnElement, executeOnElement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getExecuteOnElementNS() {
+ return executeOnElementNS;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setExecuteOnElementNS(String newExecuteOnElementNS) {
+ String oldExecuteOnElementNS = executeOnElementNS;
+ executeOnElementNS = newExecuteOnElementNS;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT_NS, oldExecuteOnElementNS,
executeOnElementNS));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID,
NotificationChain msgs) {
+ switch (featureID) {
+ case DbroutingPackage.EXECUTOR__RESULT_SET:
+ return basicSetResultSet(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 DbroutingPackage.EXECUTOR__STATEMENT:
+ return getStatement();
+ case DbroutingPackage.EXECUTOR__RESULT_SET:
+ return getResultSet();
+ case DbroutingPackage.EXECUTOR__DATASOURCE:
+ return getDatasource();
+ case DbroutingPackage.EXECUTOR__EXECUTE_BEFORE:
+ return isExecuteBefore() ? Boolean.TRUE : Boolean.FALSE;
+ case DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT:
+ return getExecuteOnElement();
+ case DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT_NS:
+ return getExecuteOnElementNS();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case DbroutingPackage.EXECUTOR__STATEMENT:
+ setStatement((String)newValue);
+ return;
+ case DbroutingPackage.EXECUTOR__RESULT_SET:
+ setResultSet((ResultSet)newValue);
+ return;
+ case DbroutingPackage.EXECUTOR__DATASOURCE:
+ setDatasource((String)newValue);
+ return;
+ case DbroutingPackage.EXECUTOR__EXECUTE_BEFORE:
+ setExecuteBefore(((Boolean)newValue).booleanValue());
+ return;
+ case DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT:
+ setExecuteOnElement((String)newValue);
+ return;
+ case DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT_NS:
+ setExecuteOnElementNS((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case DbroutingPackage.EXECUTOR__STATEMENT:
+ setStatement(STATEMENT_EDEFAULT);
+ return;
+ case DbroutingPackage.EXECUTOR__RESULT_SET:
+ setResultSet((ResultSet)null);
+ return;
+ case DbroutingPackage.EXECUTOR__DATASOURCE:
+ setDatasource(DATASOURCE_EDEFAULT);
+ return;
+ case DbroutingPackage.EXECUTOR__EXECUTE_BEFORE:
+ unsetExecuteBefore();
+ return;
+ case DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT:
+ setExecuteOnElement(EXECUTE_ON_ELEMENT_EDEFAULT);
+ return;
+ case DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT_NS:
+ setExecuteOnElementNS(EXECUTE_ON_ELEMENT_NS_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case DbroutingPackage.EXECUTOR__STATEMENT:
+ return STATEMENT_EDEFAULT == null ? statement != null :
!STATEMENT_EDEFAULT.equals(statement);
+ case DbroutingPackage.EXECUTOR__RESULT_SET:
+ return resultSet != null;
+ case DbroutingPackage.EXECUTOR__DATASOURCE:
+ return DATASOURCE_EDEFAULT == null ? datasource != null :
!DATASOURCE_EDEFAULT.equals(datasource);
+ case DbroutingPackage.EXECUTOR__EXECUTE_BEFORE:
+ return isSetExecuteBefore();
+ case DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT:
+ return EXECUTE_ON_ELEMENT_EDEFAULT == null ? executeOnElement != null :
!EXECUTE_ON_ELEMENT_EDEFAULT.equals(executeOnElement);
+ case DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT_NS:
+ return EXECUTE_ON_ELEMENT_NS_EDEFAULT == null ? executeOnElementNS != null :
!EXECUTE_ON_ELEMENT_NS_EDEFAULT.equals(executeOnElementNS);
+ }
+ 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(" (statement: ");
+ result.append(statement);
+ result.append(", datasource: ");
+ result.append(datasource);
+ result.append(", executeBefore: ");
+ if (executeBeforeESet) result.append(executeBefore); else
result.append("<unset>");
+ result.append(", executeOnElement: ");
+ result.append(executeOnElement);
+ result.append(", executeOnElementNS: ");
+ result.append(executeOnElementNS);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ExecutorImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ExecutorImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ResultSetImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ResultSetImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ResultSetImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,344 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.ResultSet;
+import org.jboss.tools.smooks.model.dbrouting.ResultSetScopeType;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Result
Set</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.impl.ResultSetImpl#getName
<em>Name</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.dbrouting.impl.ResultSetImpl#getScope
<em>Scope</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetImpl#getTimeToLive <em>Time To
Live</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ResultSetImpl extends EObjectImpl implements ResultSet {
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getScope() <em>Scope</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getScope()
+ * @generated
+ * @ordered
+ */
+ protected static final ResultSetScopeType SCOPE_EDEFAULT =
ResultSetScopeType.EXECUTION;
+
+ /**
+ * The cached value of the '{@link #getScope() <em>Scope</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getScope()
+ * @generated
+ * @ordered
+ */
+ protected ResultSetScopeType scope = SCOPE_EDEFAULT;
+
+ /**
+ * This is true if the Scope attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean scopeESet;
+
+ /**
+ * 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 = 900000L;
+
+ /**
+ * 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;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ResultSetImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return DbroutingPackage.Literals.RESULT_SET;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.RESULT_SET__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ResultSetScopeType getScope() {
+ return scope;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setScope(ResultSetScopeType newScope) {
+ ResultSetScopeType oldScope = scope;
+ scope = newScope == null ? SCOPE_EDEFAULT : newScope;
+ boolean oldScopeESet = scopeESet;
+ scopeESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.RESULT_SET__SCOPE, oldScope, scope, !oldScopeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetScope() {
+ ResultSetScopeType oldScope = scope;
+ boolean oldScopeESet = scopeESet;
+ scope = SCOPE_EDEFAULT;
+ scopeESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET,
DbroutingPackage.RESULT_SET__SCOPE, oldScope, SCOPE_EDEFAULT, oldScopeESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetScope() {
+ return scopeESet;
+ }
+
+ /**
+ * <!-- 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,
DbroutingPackage.RESULT_SET__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,
DbroutingPackage.RESULT_SET__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
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case DbroutingPackage.RESULT_SET__NAME:
+ return getName();
+ case DbroutingPackage.RESULT_SET__SCOPE:
+ return getScope();
+ case DbroutingPackage.RESULT_SET__TIME_TO_LIVE:
+ return new Long(getTimeToLive());
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case DbroutingPackage.RESULT_SET__NAME:
+ setName((String)newValue);
+ return;
+ case DbroutingPackage.RESULT_SET__SCOPE:
+ setScope((ResultSetScopeType)newValue);
+ return;
+ case DbroutingPackage.RESULT_SET__TIME_TO_LIVE:
+ setTimeToLive(((Long)newValue).longValue());
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case DbroutingPackage.RESULT_SET__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case DbroutingPackage.RESULT_SET__SCOPE:
+ unsetScope();
+ return;
+ case DbroutingPackage.RESULT_SET__TIME_TO_LIVE:
+ unsetTimeToLive();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case DbroutingPackage.RESULT_SET__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case DbroutingPackage.RESULT_SET__SCOPE:
+ return isSetScope();
+ case DbroutingPackage.RESULT_SET__TIME_TO_LIVE:
+ return isSetTimeToLive();
+ }
+ 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(" (name: ");
+ result.append(name);
+ result.append(", scope: ");
+ if (scopeESet) result.append(scope); else result.append("<unset>");
+ result.append(", timeToLive: ");
+ if (timeToLiveESet) result.append(timeToLive); else
result.append("<unset>");
+ result.append(')');
+ return result.toString();
+ }
+
+} //ResultSetImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ResultSetImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ResultSetRowSelectorImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ResultSetRowSelectorImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ResultSetRowSelectorImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,469 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector;
+import org.jboss.tools.smooks.model.smooks.impl.ElementVisitorImpl;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Result Set Row
Selector</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl#getWhere
<em>Where</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl#getFailedSelectError
<em>Failed Select Error</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl#getBeanId
<em>Bean Id</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl#isExecuteBefore
<em>Execute Before</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl#getResultSetName
<em>Result Set Name</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.dbrouting.impl.ResultSetRowSelectorImpl#getSelectRowOnElement
<em>Select Row On Element</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ResultSetRowSelectorImpl extends ElementVisitorImpl implements
ResultSetRowSelector {
+ /**
+ * The default value of the '{@link #getWhere() <em>Where</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getWhere()
+ * @generated
+ * @ordered
+ */
+ protected static final String WHERE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getWhere() <em>Where</em>}'
attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getWhere()
+ * @generated
+ * @ordered
+ */
+ protected String where = WHERE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getFailedSelectError() <em>Failed Select
Error</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFailedSelectError()
+ * @generated
+ * @ordered
+ */
+ protected static final String FAILED_SELECT_ERROR_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFailedSelectError() <em>Failed Select
Error</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFailedSelectError()
+ * @generated
+ * @ordered
+ */
+ protected String failedSelectError = FAILED_SELECT_ERROR_EDEFAULT;
+
+ /**
+ * 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 #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 #getResultSetName() <em>Result Set
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResultSetName()
+ * @generated
+ * @ordered
+ */
+ protected static final String RESULT_SET_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getResultSetName() <em>Result Set
Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResultSetName()
+ * @generated
+ * @ordered
+ */
+ protected String resultSetName = RESULT_SET_NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getSelectRowOnElement() <em>Select Row On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSelectRowOnElement()
+ * @generated
+ * @ordered
+ */
+ protected static final String SELECT_ROW_ON_ELEMENT_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getSelectRowOnElement() <em>Select Row On
Element</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getSelectRowOnElement()
+ * @generated
+ * @ordered
+ */
+ protected String selectRowOnElement = SELECT_ROW_ON_ELEMENT_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ResultSetRowSelectorImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return DbroutingPackage.Literals.RESULT_SET_ROW_SELECTOR;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getWhere() {
+ return where;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setWhere(String newWhere) {
+ String oldWhere = where;
+ where = newWhere;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.RESULT_SET_ROW_SELECTOR__WHERE, oldWhere, where));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFailedSelectError() {
+ return failedSelectError;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFailedSelectError(String newFailedSelectError) {
+ String oldFailedSelectError = failedSelectError;
+ failedSelectError = newFailedSelectError;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.RESULT_SET_ROW_SELECTOR__FAILED_SELECT_ERROR, oldFailedSelectError,
failedSelectError));
+ }
+
+ /**
+ * <!-- 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,
DbroutingPackage.RESULT_SET_ROW_SELECTOR__BEAN_ID, oldBeanId, beanId));
+ }
+
+ /**
+ * <!-- 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,
DbroutingPackage.RESULT_SET_ROW_SELECTOR__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,
DbroutingPackage.RESULT_SET_ROW_SELECTOR__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 getResultSetName() {
+ return resultSetName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setResultSetName(String newResultSetName) {
+ String oldResultSetName = resultSetName;
+ resultSetName = newResultSetName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.RESULT_SET_ROW_SELECTOR__RESULT_SET_NAME, oldResultSetName,
resultSetName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getSelectRowOnElement() {
+ return selectRowOnElement;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setSelectRowOnElement(String newSelectRowOnElement) {
+ String oldSelectRowOnElement = selectRowOnElement;
+ selectRowOnElement = newSelectRowOnElement;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
DbroutingPackage.RESULT_SET_ROW_SELECTOR__SELECT_ROW_ON_ELEMENT, oldSelectRowOnElement,
selectRowOnElement));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__WHERE:
+ return getWhere();
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__FAILED_SELECT_ERROR:
+ return getFailedSelectError();
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__BEAN_ID:
+ return getBeanId();
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__EXECUTE_BEFORE:
+ return isExecuteBefore() ? Boolean.TRUE : Boolean.FALSE;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__RESULT_SET_NAME:
+ return getResultSetName();
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__SELECT_ROW_ON_ELEMENT:
+ return getSelectRowOnElement();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__WHERE:
+ setWhere((String)newValue);
+ return;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__FAILED_SELECT_ERROR:
+ setFailedSelectError((String)newValue);
+ return;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__BEAN_ID:
+ setBeanId((String)newValue);
+ return;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__EXECUTE_BEFORE:
+ setExecuteBefore(((Boolean)newValue).booleanValue());
+ return;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__RESULT_SET_NAME:
+ setResultSetName((String)newValue);
+ return;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__SELECT_ROW_ON_ELEMENT:
+ setSelectRowOnElement((String)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__WHERE:
+ setWhere(WHERE_EDEFAULT);
+ return;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__FAILED_SELECT_ERROR:
+ setFailedSelectError(FAILED_SELECT_ERROR_EDEFAULT);
+ return;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__BEAN_ID:
+ setBeanId(BEAN_ID_EDEFAULT);
+ return;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__EXECUTE_BEFORE:
+ unsetExecuteBefore();
+ return;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__RESULT_SET_NAME:
+ setResultSetName(RESULT_SET_NAME_EDEFAULT);
+ return;
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__SELECT_ROW_ON_ELEMENT:
+ setSelectRowOnElement(SELECT_ROW_ON_ELEMENT_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__WHERE:
+ return WHERE_EDEFAULT == null ? where != null : !WHERE_EDEFAULT.equals(where);
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__FAILED_SELECT_ERROR:
+ return FAILED_SELECT_ERROR_EDEFAULT == null ? failedSelectError != null :
!FAILED_SELECT_ERROR_EDEFAULT.equals(failedSelectError);
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__BEAN_ID:
+ return BEAN_ID_EDEFAULT == null ? beanId != null : !BEAN_ID_EDEFAULT.equals(beanId);
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__EXECUTE_BEFORE:
+ return isSetExecuteBefore();
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__RESULT_SET_NAME:
+ return RESULT_SET_NAME_EDEFAULT == null ? resultSetName != null :
!RESULT_SET_NAME_EDEFAULT.equals(resultSetName);
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__SELECT_ROW_ON_ELEMENT:
+ return SELECT_ROW_ON_ELEMENT_EDEFAULT == null ? selectRowOnElement != null :
!SELECT_ROW_ON_ELEMENT_EDEFAULT.equals(selectRowOnElement);
+ }
+ 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(" (where: ");
+ result.append(where);
+ result.append(", failedSelectError: ");
+ result.append(failedSelectError);
+ result.append(", beanId: ");
+ result.append(beanId);
+ result.append(", executeBefore: ");
+ if (executeBeforeESet) result.append(executeBefore); else
result.append("<unset>");
+ result.append(", resultSetName: ");
+ result.append(resultSetName);
+ result.append(", selectRowOnElement: ");
+ result.append(selectRowOnElement);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ResultSetRowSelectorImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/impl/ResultSetRowSelectorImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/Dbrouting1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/Dbrouting1EditPlugin.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/Dbrouting1EditPlugin.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,93 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+/**
+ * This is the central singleton for the Db-routing-1 edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class Dbrouting1EditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final Dbrouting1EditPlugin INSTANCE = new Dbrouting1EditPlugin();
+
+ /**
+ * 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 Dbrouting1EditPlugin() {
+ 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/dbrouting/provider/Dbrouting1EditPlugin.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/DbroutingItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/DbroutingItemProviderAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/DbroutingItemProviderAdapterFactory.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,274 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.util.DbroutingAdapterFactory;
+
+
+/**
+ * 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 DbroutingItemProviderAdapterFactory extends DbroutingAdapterFactory
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 DbroutingItemProviderAdapterFactory() {
+ 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.dbrouting.DocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootItemProvider documentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createDocumentRootAdapter() {
+ if (documentRootItemProvider == null) {
+ documentRootItemProvider = new DocumentRootItemProvider(this);
+ }
+
+ return documentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.dbrouting.Executor} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExecutorItemProvider executorItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.dbrouting.Executor}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createExecutorAdapter() {
+ if (executorItemProvider == null) {
+ executorItemProvider = new ExecutorItemProvider(this);
+ }
+
+ return executorItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.dbrouting.ResultSet} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ResultSetItemProvider resultSetItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.dbrouting.ResultSet}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createResultSetAdapter() {
+ if (resultSetItemProvider == null) {
+ resultSetItemProvider = new ResultSetItemProvider(this);
+ }
+
+ return resultSetItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ResultSetRowSelectorItemProvider resultSetRowSelectorItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createResultSetRowSelectorAdapter() {
+ if (resultSetRowSelectorItemProvider == null) {
+ resultSetRowSelectorItemProvider = new ResultSetRowSelectorItemProvider(this);
+ }
+
+ return resultSetRowSelectorItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this :
parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (documentRootItemProvider != null) documentRootItemProvider.dispose();
+ if (executorItemProvider != null) executorItemProvider.dispose();
+ if (resultSetItemProvider != null) resultSetItemProvider.dispose();
+ if (resultSetRowSelectorItemProvider != null)
resultSetRowSelectorItemProvider.dispose();
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/DbroutingItemProviderAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/DocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,178 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingFactory;
+import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.DocumentRoot;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.dbrouting.DocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DocumentRootItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRootItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(DbroutingPackage.Literals.DOCUMENT_ROOT__EXECUTOR);
+ childrenFeatures.add(DbroutingPackage.Literals.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use
for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns DocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/DocumentRoot"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DocumentRoot_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(DocumentRoot.class)) {
+ case DbroutingPackage.DOCUMENT_ROOT__EXECUTOR:
+ case DbroutingPackage.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR:
+ 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
+ (DbroutingPackage.Literals.DOCUMENT_ROOT__EXECUTOR,
+ DbroutingFactory.eINSTANCE.createExecutor()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (DbroutingPackage.Literals.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR,
+ DbroutingFactory.eINSTANCE.createResultSetRowSelector()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Dbrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/DocumentRootItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ExecutorItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ExecutorItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ExecutorItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,295 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingFactory;
+import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.Executor;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
+
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.dbrouting.Executor} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ExecutorItemProvider
+ 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 ExecutorItemProvider(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);
+
+ addStatementPropertyDescriptor(object);
+ addDatasourcePropertyDescriptor(object);
+ addExecuteBeforePropertyDescriptor(object);
+ addExecuteOnElementPropertyDescriptor(object);
+ addExecuteOnElementNSPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Statement feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addStatementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Executor_statement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Executor_statement_feature", "_UI_Executor_type"),
+ DbroutingPackage.Literals.EXECUTOR__STATEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Datasource feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addDatasourcePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Executor_datasource_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Executor_datasource_feature", "_UI_Executor_type"),
+ DbroutingPackage.Literals.EXECUTOR__DATASOURCE,
+ 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_Executor_executeBefore_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Executor_executeBefore_feature", "_UI_Executor_type"),
+ DbroutingPackage.Literals.EXECUTOR__EXECUTE_BEFORE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Execute On Element feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addExecuteOnElementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Executor_executeOnElement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Executor_executeOnElement_feature", "_UI_Executor_type"),
+ DbroutingPackage.Literals.EXECUTOR__EXECUTE_ON_ELEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Execute On Element NS feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addExecuteOnElementNSPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Executor_executeOnElementNS_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Executor_executeOnElementNS_feature", "_UI_Executor_type"),
+ DbroutingPackage.Literals.EXECUTOR__EXECUTE_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(DbroutingPackage.Literals.EXECUTOR__RESULT_SET);
+ }
+ 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 Executor.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/Executor"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Executor)object).getTargetProfile();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Executor_type") :
+ getString("_UI_Executor_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(Executor.class)) {
+ case DbroutingPackage.EXECUTOR__STATEMENT:
+ case DbroutingPackage.EXECUTOR__DATASOURCE:
+ case DbroutingPackage.EXECUTOR__EXECUTE_BEFORE:
+ case DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT:
+ case DbroutingPackage.EXECUTOR__EXECUTE_ON_ELEMENT_NS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
+ return;
+ case DbroutingPackage.EXECUTOR__RESULT_SET:
+ 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
+ (DbroutingPackage.Literals.EXECUTOR__RESULT_SET,
+ DbroutingFactory.eINSTANCE.createResultSet()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return Dbrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ExecutorItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ResultSetItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ResultSetItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ResultSetItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,209 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.ResultSet;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.dbrouting.ResultSet} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ResultSetItemProvider
+ 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 ResultSetItemProvider(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);
+
+ addNamePropertyDescriptor(object);
+ addScopePropertyDescriptor(object);
+ addTimeToLivePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ResultSet_name_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_ResultSet_name_feature", "_UI_ResultSet_type"),
+ DbroutingPackage.Literals.RESULT_SET__NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Scope feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addScopePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ResultSet_scope_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_ResultSet_scope_feature", "_UI_ResultSet_type"),
+ DbroutingPackage.Literals.RESULT_SET__SCOPE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_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_ResultSet_timeToLive_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_ResultSet_timeToLive_feature", "_UI_ResultSet_type"),
+ DbroutingPackage.Literals.RESULT_SET__TIME_TO_LIVE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns ResultSet.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/ResultSet"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ResultSet)object).getName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_ResultSet_type") :
+ getString("_UI_ResultSet_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(ResultSet.class)) {
+ case DbroutingPackage.RESULT_SET__NAME:
+ case DbroutingPackage.RESULT_SET__SCOPE:
+ case DbroutingPackage.RESULT_SET__TIME_TO_LIVE:
+ 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 Dbrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ResultSetItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ResultSetRowSelectorItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ResultSetRowSelectorItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ResultSetRowSelectorItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,279 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
+
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ResultSetRowSelectorItemProvider
+ 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 ResultSetRowSelectorItemProvider(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);
+
+ addWherePropertyDescriptor(object);
+ addFailedSelectErrorPropertyDescriptor(object);
+ addBeanIdPropertyDescriptor(object);
+ addExecuteBeforePropertyDescriptor(object);
+ addResultSetNamePropertyDescriptor(object);
+ addSelectRowOnElementPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Where feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addWherePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ResultSetRowSelector_where_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_ResultSetRowSelector_where_feature",
"_UI_ResultSetRowSelector_type"),
+ DbroutingPackage.Literals.RESULT_SET_ROW_SELECTOR__WHERE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Failed Select Error feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addFailedSelectErrorPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ResultSetRowSelector_failedSelectError_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_ResultSetRowSelector_failedSelectError_feature",
"_UI_ResultSetRowSelector_type"),
+ DbroutingPackage.Literals.RESULT_SET_ROW_SELECTOR__FAILED_SELECT_ERROR,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * 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_ResultSetRowSelector_beanId_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_ResultSetRowSelector_beanId_feature",
"_UI_ResultSetRowSelector_type"),
+ DbroutingPackage.Literals.RESULT_SET_ROW_SELECTOR__BEAN_ID,
+ 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_ResultSetRowSelector_executeBefore_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_ResultSetRowSelector_executeBefore_feature",
"_UI_ResultSetRowSelector_type"),
+ DbroutingPackage.Literals.RESULT_SET_ROW_SELECTOR__EXECUTE_BEFORE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Result Set Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addResultSetNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ResultSetRowSelector_resultSetName_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_ResultSetRowSelector_resultSetName_feature",
"_UI_ResultSetRowSelector_type"),
+ DbroutingPackage.Literals.RESULT_SET_ROW_SELECTOR__RESULT_SET_NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Select Row On Element feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSelectRowOnElementPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ResultSetRowSelector_selectRowOnElement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_ResultSetRowSelector_selectRowOnElement_feature",
"_UI_ResultSetRowSelector_type"),
+ DbroutingPackage.Literals.RESULT_SET_ROW_SELECTOR__SELECT_ROW_ON_ELEMENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns ResultSetRowSelector.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/ResultSetRowSelector"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ResultSetRowSelector)object).getResultSetName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_ResultSetRowSelector_type") :
+ getString("_UI_ResultSetRowSelector_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(ResultSetRowSelector.class)) {
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__WHERE:
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__FAILED_SELECT_ERROR:
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__BEAN_ID:
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__EXECUTE_BEFORE:
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__RESULT_SET_NAME:
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR__SELECT_ROW_ON_ELEMENT:
+ 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 Dbrouting1EditPlugin.INSTANCE;
+ }
+
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/provider/ResultSetRowSelectorItemProvider.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingAdapterFactory.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingAdapterFactory.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,256 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.DocumentRoot;
+import org.jboss.tools.smooks.model.dbrouting.Executor;
+import org.jboss.tools.smooks.model.dbrouting.ResultSet;
+import org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector;
+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.dbrouting.DbroutingPackage
+ * @generated
+ */
+public class DbroutingAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static DbroutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DbroutingAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = DbroutingPackage.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 DbroutingSwitch<Adapter> modelSwitch =
+ new DbroutingSwitch<Adapter>() {
+ @Override
+ public Adapter caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseExecutor(Executor object) {
+ return createExecutorAdapter();
+ }
+ @Override
+ public Adapter caseResultSet(ResultSet object) {
+ return createResultSetAdapter();
+ }
+ @Override
+ public Adapter caseResultSetRowSelector(ResultSetRowSelector object) {
+ return createResultSetRowSelectorAdapter();
+ }
+ @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.dbrouting.DocumentRoot <em>Document
Root</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.dbrouting.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.dbrouting.Executor <em>Executor</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.dbrouting.Executor
+ * @generated
+ */
+ public Adapter createExecutorAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSet <em>Result Set</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.dbrouting.ResultSet
+ * @generated
+ */
+ public Adapter createResultSetAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector <em>Result Set Row
Selector</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.dbrouting.ResultSetRowSelector
+ * @generated
+ */
+ public Adapter createResultSetRowSelectorAdapter() {
+ 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;
+ }
+
+} //DbroutingAdapterFactory
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingAdapterFactory.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingResourceFactoryImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingResourceFactoryImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingResourceFactoryImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,56 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.util.DbroutingResourceImpl
+ * @generated
+ */
+public class DbroutingResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DbroutingResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ XMLResource result = new DbroutingResourceImpl(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;
+ }
+
+} //DbroutingResourceFactoryImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingResourceFactoryImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingResourceImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingResourceImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingResourceImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,32 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.util.DbroutingResourceFactoryImpl
+ * @generated
+ */
+public class DbroutingResourceImpl extends XMLResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public DbroutingResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //DbroutingResourceImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingResourceImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingSwitch.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingSwitch.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingSwitch.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,269 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.dbrouting.DocumentRoot;
+import org.jboss.tools.smooks.model.dbrouting.Executor;
+import org.jboss.tools.smooks.model.dbrouting.ResultSet;
+import org.jboss.tools.smooks.model.dbrouting.ResultSetRowSelector;
+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.dbrouting.DbroutingPackage
+ * @generated
+ */
+public class DbroutingSwitch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static DbroutingPackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DbroutingSwitch() {
+ if (modelPackage == null) {
+ modelPackage = DbroutingPackage.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 DbroutingPackage.DOCUMENT_ROOT: {
+ DocumentRoot documentRoot = (DocumentRoot)theEObject;
+ T result = caseDocumentRoot(documentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case DbroutingPackage.EXECUTOR: {
+ Executor executor = (Executor)theEObject;
+ T result = caseExecutor(executor);
+ if (result == null) result = caseElementVisitor(executor);
+ if (result == null) result = caseAbstractResourceConfig(executor);
+ if (result == null) result = caseAbstractAnyType(executor);
+ if (result == null) result = caseAnyType(executor);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case DbroutingPackage.RESULT_SET: {
+ ResultSet resultSet = (ResultSet)theEObject;
+ T result = caseResultSet(resultSet);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case DbroutingPackage.RESULT_SET_ROW_SELECTOR: {
+ ResultSetRowSelector resultSetRowSelector = (ResultSetRowSelector)theEObject;
+ T result = caseResultSetRowSelector(resultSetRowSelector);
+ if (result == null) result = caseElementVisitor(resultSetRowSelector);
+ if (result == null) result = caseAbstractResourceConfig(resultSetRowSelector);
+ if (result == null) result = caseAbstractAnyType(resultSetRowSelector);
+ if (result == null) result = caseAnyType(resultSetRowSelector);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDocumentRoot(DocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Executor</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>Executor</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseExecutor(Executor object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Result
Set</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>Result
Set</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseResultSet(ResultSet object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Result
Set Row Selector</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>Result
Set Row Selector</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseResultSetRowSelector(ResultSetRowSelector 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;
+ }
+
+} //DbroutingSwitch
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingSwitch.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingXMLProcessor.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingXMLProcessor.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingXMLProcessor.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,54 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.dbrouting.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.dbrouting.DbroutingPackage;
+
+/**
+ * This class contains helper methods to serialize and deserialize XML documents
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DbroutingXMLProcessor extends XMLProcessor {
+
+ /**
+ * Public constructor to instantiate the helper.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DbroutingXMLProcessor() {
+ super((EPackage.Registry.INSTANCE));
+ DbroutingPackage.eINSTANCE.eClass();
+ }
+
+ /**
+ * Register for "*" and "xml" file extensions the
DbroutingResourceFactoryImpl 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 DbroutingResourceFactoryImpl());
+ registrations.put(STAR_EXTENSION, new DbroutingResourceFactoryImpl());
+ }
+ return registrations;
+ }
+
+} //DbroutingXMLProcessor
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/dbrouting/util/DbroutingXMLProcessor.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider
(from rev 14691,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider)
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/ComponentItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/ComponentItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/ComponentItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/DelimitersItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/DelimitersItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/DelimitersItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.edi.Delimiters;
import org.jboss.tools.smooks.model.edi.EdiPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/DescriptionItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/DescriptionItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/DescriptionItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.edi.Description;
import org.jboss.tools.smooks.model.edi.EdiPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/DocumentRootItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/EdiItemProviderAdapterFactory.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiItemProviderAdapterFactory.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.ArrayList;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiMapItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/EdiMapItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/EdiMapItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.Collection;
@@ -21,7 +21,7 @@
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.edi.EdiFactory;
import org.jboss.tools.smooks.model.edi.EdiMap;
import org.jboss.tools.smooks.model.edi.EdiPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/Edimessagemapping1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/Edimessagemapping1EditPlugin.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/Edimessagemapping1EditPlugin.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import org.eclipse.emf.common.EMFPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/FieldItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/FieldItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/FieldItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/MappingNodeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/MappingNodeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/MappingNodeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.edi.EdiPackage;
import org.jboss.tools.smooks.model.edi.MappingNode;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/SegmentItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/SegmentItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/SegmentItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/SegmentsItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/SegmentsItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/SegmentsItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/SubComponentItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/SubComponentItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/edi/provider/SubComponentItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.edi.provider;
+package org.jboss.tools.smooks.model.edi.provider;
import java.util.Collection;
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider
(from rev 14691,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider)
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/DocumentRootItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.fileRouting.provider;
+package org.jboss.tools.smooks.model.fileRouting.provider;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/FileRoutingItemProviderAdapterFactory.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.fileRouting.provider;
+package org.jboss.tools.smooks.model.fileRouting.provider;
import java.util.ArrayList;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/Filerouting1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/Filerouting1EditPlugin.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/Filerouting1EditPlugin.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.fileRouting.provider;
+package org.jboss.tools.smooks.model.fileRouting.provider;
import org.eclipse.emf.common.EMFPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/HighWaterMarkItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/HighWaterMarkItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/HighWaterMarkItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.fileRouting.provider;
+package org.jboss.tools.smooks.model.fileRouting.provider;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/OutputStreamItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/OutputStreamItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/fileRouting/provider/OutputStreamItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.fileRouting.provider;
+package org.jboss.tools.smooks.model.fileRouting.provider;
import java.util.Collection;
@@ -23,10 +23,10 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.smooks.provider.ElementVisitorItemProvider;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
import org.jboss.tools.smooks.model.fileRouting.OutputStream;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
/**
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider
(from rev 14691,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider)
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/BindToItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider/BindToItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/BindToItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.freemarker.provider;
+package org.jboss.tools.smooks.model.freemarker.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.freemarker.BindTo;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider/DocumentRootItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.freemarker.provider;
+package org.jboss.tools.smooks.model.freemarker.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/Freemarker1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider/Freemarker1EditPlugin.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/Freemarker1EditPlugin.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.freemarker.provider;
+package org.jboss.tools.smooks.model.freemarker.provider;
import org.eclipse.emf.common.EMFPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/FreemarkerItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider/FreemarkerItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/FreemarkerItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.freemarker.provider;
+package org.jboss.tools.smooks.model.freemarker.provider;
import java.util.Collection;
@@ -23,11 +23,11 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.smooks.provider.ElementVisitorItemProvider;
import org.jboss.tools.smooks.model.freemarker.Freemarker;
import org.jboss.tools.smooks.model.freemarker.FreemarkerFactory;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
/**
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/FreemarkerItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider/FreemarkerItemProviderAdapterFactory.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/FreemarkerItemProviderAdapterFactory.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.freemarker.provider;
+package org.jboss.tools.smooks.model.freemarker.provider;
import java.util.ArrayList;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/InlineItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider/InlineItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/InlineItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.freemarker.provider;
+package org.jboss.tools.smooks.model.freemarker.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
import org.jboss.tools.smooks.model.freemarker.Inline;
import org.jboss.tools.smooks.model.freemarker.InlineDirective;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/OutputToItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider/OutputToItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/OutputToItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.freemarker.provider;
+package org.jboss.tools.smooks.model.freemarker.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
import org.jboss.tools.smooks.model.freemarker.OutputTo;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/TemplateItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider/TemplateItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/TemplateItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.freemarker.provider;
+package org.jboss.tools.smooks.model.freemarker.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
import org.jboss.tools.smooks.model.freemarker.Template;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/UseItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider/UseItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/freemarker/provider/UseItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.freemarker.provider;
+package org.jboss.tools.smooks.model.freemarker.provider;
import java.util.Collection;
@@ -21,7 +21,7 @@
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.freemarker.FreemarkerFactory;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
import org.jboss.tools.smooks.model.freemarker.Use;
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/DocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/DocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/DocumentRoot.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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>Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.DocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.DocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.DocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.DocumentRoot#getRouter
<em>Router</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface DocumentRoot extends EObject {
+ /**
+ * Returns the value of the '<em><b>Mixed</b></em>'
attribute list.
+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Mixed</em>' attribute list isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Mixed</em>' attribute list.
+ * @see org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getDocumentRoot_Mixed()
+ * @model unique="false"
dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+ * extendedMetaData="kind='elementWildcard'
name=':mixed'"
+ * @generated
+ */
+ FeatureMap getMixed();
+
+ /**
+ * Returns the value of the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XMLNS Prefix Map</em>' map.
+ * @see
org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getDocumentRoot_XMLNSPrefixMap()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xmlns:prefix'"
+ * @generated
+ */
+ EMap<String, String> getXMLNSPrefixMap();
+
+ /**
+ * Returns the value of the '<em><b>XSI Schema
Location</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XSI Schema Location</em>' map
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XSI Schema Location</em>' map.
+ * @see
org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getDocumentRoot_XSISchemaLocation()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>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(Router)
+ * @see
org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getDocumentRoot_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
+ */
+ Router getRouter();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.iorouting.DocumentRoot#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(Router value);
+
+} // DocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/DocumentRoot.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
06:07:39 UTC (rev 14717)
@@ -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>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Document Root</em>'.
+ * @generated
+ */
+ DocumentRoot createDocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>Router</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Router</em>'.
+ * @generated
+ */
+ Router createRouter();
+
+ /**
+ * 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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.iorouting.impl.DocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.iorouting.impl.IoroutingPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ int DOCUMENT_ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__MIXED = 0;
+
+ /**
+ * The feature id for the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+ /**
+ * The feature id for the '<em><b>XSI Schema
Location</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Router</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__ROUTER = 3;
+
+ /**
+ * The number of structural features of the '<em>Document Root</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.iorouting.impl.RouterImpl <em>Router</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.iorouting.impl.RouterImpl
+ * @see org.jboss.tools.smooks.model.iorouting.impl.IoroutingPackageImpl#getRouter()
+ * @generated
+ */
+ int ROUTER = 1;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int 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 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 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 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 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 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 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 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 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 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 ROUTER__ROUTE_ON_ELEMENT_NS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 5;
+
+ /**
+ * The number of structural features of the '<em>Router</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int ROUTER_FEATURE_COUNT = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 6;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.iorouting.DocumentRoot <em>Document
Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Document Root</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.DocumentRoot
+ * @generated
+ */
+ EClass getDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.iorouting.DocumentRoot#getMixed
<em>Mixed</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EAttribute getDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.iorouting.DocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.iorouting.DocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XSI Schema
Location</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.iorouting.DocumentRoot#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.DocumentRoot#getRouter()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_Router();
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.iorouting.Router <em>Router</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Router</em>'.
+ * @see org.jboss.tools.smooks.model.iorouting.Router
+ * @generated
+ */
+ EClass getRouter();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.Router#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.Router#getBeanId()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_BeanId();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.Router#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.Router#getEncoding()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_Encoding();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.Router#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.Router#isExecuteBefore()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_ExecuteBefore();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.Router#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.Router#getResourceName()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_ResourceName();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.Router#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.Router#getRouteOnElement()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_RouteOnElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.iorouting.Router#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.Router#getRouteOnElementNS()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_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.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.iorouting.impl.DocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.iorouting.impl.IoroutingPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Router</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__ROUTER = eINSTANCE.getDocumentRoot_Router();
+
+ /**
+ * The meta object literal for the '{@link
org.jboss.tools.smooks.model.iorouting.impl.RouterImpl <em>Router</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.iorouting.impl.RouterImpl
+ * @see org.jboss.tools.smooks.model.iorouting.impl.IoroutingPackageImpl#getRouter()
+ * @generated
+ */
+ EClass ROUTER = eINSTANCE.getRouter();
+
+ /**
+ * The meta object literal for the '<em><b>Bean
Id</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTER__BEAN_ID = eINSTANCE.getRouter_BeanId();
+
+ /**
+ * The meta object literal for the
'<em><b>Encoding</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTER__ENCODING = eINSTANCE.getRouter_Encoding();
+
+ /**
+ * The meta object literal for the '<em><b>Execute
Before</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTER__EXECUTE_BEFORE = eINSTANCE.getRouter_ExecuteBefore();
+
+ /**
+ * The meta object literal for the '<em><b>Resource
Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTER__RESOURCE_NAME = eINSTANCE.getRouter_ResourceName();
+
+ /**
+ * The meta object literal for the '<em><b>Route On
Element</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTER__ROUTE_ON_ELEMENT = eINSTANCE.getRouter_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 ROUTER__ROUTE_ON_ELEMENT_NS = eINSTANCE.getRouter_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/Router.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/Router.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/Router.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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>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.Router#getBeanId
<em>Bean Id</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.Router#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.Router#isExecuteBefore
<em>Execute Before</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.Router#getResourceName
<em>Resource Name</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.Router#getRouteOnElement
<em>Route On Element</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.Router#getRouteOnElementNS
<em>Route On Element NS</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.iorouting.IoroutingPackage#getRouter()
+ * @model extendedMetaData="name='router' kind='elementOnly'"
+ * @generated
+ */
+public interface Router 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#getRouter_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.Router#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#getRouter_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.Router#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.Router#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.Router#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#getRouter_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.Router#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.Router#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.Router#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#getRouter_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.Router#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#getRouter_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.Router#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#getRouter_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.Router#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);
+
+} // Router
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/Router.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/DocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/DocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/DocumentRootImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+import org.jboss.tools.smooks.model.iorouting.Router;
+
+/**
+ * <!-- 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.iorouting.impl.DocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.DocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.DocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.DocumentRootImpl#getRouter
<em>Router</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+ /**
+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix
Map</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xMLNSPrefixMap;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema
Location</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xSISchemaLocation;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return IoroutingPackage.Literals.DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, IoroutingPackage.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.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.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Router getRouter() {
+ return (Router)getMixed().get(IoroutingPackage.Literals.DOCUMENT_ROOT__ROUTER, true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetRouter(Router newRouter, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(IoroutingPackage.Literals.DOCUMENT_ROOT__ROUTER,
newRouter, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouter(Router newRouter) {
+ ((FeatureMap.Internal)getMixed()).set(IoroutingPackage.Literals.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.DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case IoroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case IoroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case IoroutingPackage.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.DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case IoroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case IoroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case IoroutingPackage.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.DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case IoroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case IoroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case IoroutingPackage.DOCUMENT_ROOT__ROUTER:
+ setRouter((Router)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case IoroutingPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case IoroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case IoroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case IoroutingPackage.DOCUMENT_ROOT__ROUTER:
+ setRouter((Router)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case IoroutingPackage.DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case IoroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case IoroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case IoroutingPackage.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();
+ }
+
+} //DocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/DocumentRootImpl.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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IoroutingFactory;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+import org.jboss.tools.smooks.model.iorouting.Router;
+
+/**
+ * <!-- 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.DOCUMENT_ROOT: return createDocumentRoot();
+ case IoroutingPackage.ROUTER: return createRouter();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Router createRouter() {
+ RouterImpl router = new RouterImpl();
+ return router;
+ }
+
+ /**
+ * <!-- 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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IoroutingFactory;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+import org.jboss.tools.smooks.model.iorouting.Router;
+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 documentRootEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass routerEClass = 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 getDocumentRoot() {
+ return documentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDocumentRoot_Mixed() {
+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XSISchemaLocation() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_Router() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getRouter() {
+ return routerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_BeanId() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_Encoding() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_ExecuteBefore() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_ResourceName() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_RouteOnElement() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_RouteOnElementNS() {
+ return (EAttribute)routerEClass.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
+ documentRootEClass = createEClass(DOCUMENT_ROOT);
+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__ROUTER);
+
+ routerEClass = createEClass(ROUTER);
+ createEAttribute(routerEClass, ROUTER__BEAN_ID);
+ createEAttribute(routerEClass, ROUTER__ENCODING);
+ createEAttribute(routerEClass, ROUTER__EXECUTE_BEFORE);
+ createEAttribute(routerEClass, ROUTER__RESOURCE_NAME);
+ createEAttribute(routerEClass, ROUTER__ROUTE_ON_ELEMENT);
+ createEAttribute(routerEClass, 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
+ routerEClass.getESuperTypes().add(theSmooksPackage.getElementVisitor());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(),
"mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XMLNSPrefixMap(),
ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1,
null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XSISchemaLocation(),
ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0,
-1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_Router(), this.getRouter(), 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(routerEClass, Router.class, "IO Router", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getRouter_BeanId(), theXMLTypePackage.getString(), "beanId",
null, 1, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_Encoding(), theXMLTypePackage.getString(),
"encoding", "UTF-8", 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_ExecuteBefore(), theXMLTypePackage.getBoolean(),
"executeBefore", "false", 0, 1, Router.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_ResourceName(), theXMLTypePackage.getString(),
"resourceName", null, 1, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_RouteOnElement(), theXMLTypePackage.getString(),
"routeOnElement", null, 1, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_RouteOnElementNS(), theXMLTypePackage.getString(),
"routeOnElementNS", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+ createExtendedMetaDataAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for
<b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createExtendedMetaDataAnnotations() {
+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
+ addAnnotation
+ (documentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getDocumentRoot_Router(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "router",
+ "namespace", "##targetNamespace",
+ "affiliation",
"http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"
+ });
+ addAnnotation
+ (routerEClass,
+ source,
+ new String[] {
+ "name", "router",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getRouter_BeanId(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "beanId"
+ });
+ addAnnotation
+ (getRouter_Encoding(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "encoding"
+ });
+ addAnnotation
+ (getRouter_ExecuteBefore(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "executeBefore"
+ });
+ addAnnotation
+ (getRouter_ResourceName(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "resourceName"
+ });
+ addAnnotation
+ (getRouter_RouteOnElement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "routeOnElement"
+ });
+ addAnnotation
+ (getRouter_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/impl/RouterImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/RouterImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/RouterImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.IoroutingPackage;
+import org.jboss.tools.smooks.model.iorouting.Router;
+import org.jboss.tools.smooks.model.smooks.impl.ElementVisitorImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object
'<em><b>Router</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.impl.RouterImpl#getBeanId
<em>Bean Id</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.iorouting.impl.RouterImpl#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.RouterImpl#isExecuteBefore <em>Execute
Before</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.RouterImpl#getResourceName <em>Resource
Name</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.RouterImpl#getRouteOnElement <em>Route
On Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.iorouting.impl.RouterImpl#getRouteOnElementNS <em>Route
On Element NS</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RouterImpl extends ElementVisitorImpl implements Router {
+ /**
+ * 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 RouterImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return IoroutingPackage.Literals.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.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.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.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.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.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.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.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.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.ROUTER__BEAN_ID:
+ return getBeanId();
+ case IoroutingPackage.ROUTER__ENCODING:
+ return getEncoding();
+ case IoroutingPackage.ROUTER__EXECUTE_BEFORE:
+ return isExecuteBefore() ? Boolean.TRUE : Boolean.FALSE;
+ case IoroutingPackage.ROUTER__RESOURCE_NAME:
+ return getResourceName();
+ case IoroutingPackage.ROUTER__ROUTE_ON_ELEMENT:
+ return getRouteOnElement();
+ case IoroutingPackage.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.ROUTER__BEAN_ID:
+ setBeanId((String)newValue);
+ return;
+ case IoroutingPackage.ROUTER__ENCODING:
+ setEncoding((String)newValue);
+ return;
+ case IoroutingPackage.ROUTER__EXECUTE_BEFORE:
+ setExecuteBefore(((Boolean)newValue).booleanValue());
+ return;
+ case IoroutingPackage.ROUTER__RESOURCE_NAME:
+ setResourceName((String)newValue);
+ return;
+ case IoroutingPackage.ROUTER__ROUTE_ON_ELEMENT:
+ setRouteOnElement((String)newValue);
+ return;
+ case IoroutingPackage.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.ROUTER__BEAN_ID:
+ setBeanId(BEAN_ID_EDEFAULT);
+ return;
+ case IoroutingPackage.ROUTER__ENCODING:
+ unsetEncoding();
+ return;
+ case IoroutingPackage.ROUTER__EXECUTE_BEFORE:
+ unsetExecuteBefore();
+ return;
+ case IoroutingPackage.ROUTER__RESOURCE_NAME:
+ setResourceName(RESOURCE_NAME_EDEFAULT);
+ return;
+ case IoroutingPackage.ROUTER__ROUTE_ON_ELEMENT:
+ setRouteOnElement(ROUTE_ON_ELEMENT_EDEFAULT);
+ return;
+ case IoroutingPackage.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.ROUTER__BEAN_ID:
+ return BEAN_ID_EDEFAULT == null ? beanId != null : !BEAN_ID_EDEFAULT.equals(beanId);
+ case IoroutingPackage.ROUTER__ENCODING:
+ return isSetEncoding();
+ case IoroutingPackage.ROUTER__EXECUTE_BEFORE:
+ return isSetExecuteBefore();
+ case IoroutingPackage.ROUTER__RESOURCE_NAME:
+ return RESOURCE_NAME_EDEFAULT == null ? resourceName != null :
!RESOURCE_NAME_EDEFAULT.equals(resourceName);
+ case IoroutingPackage.ROUTER__ROUTE_ON_ELEMENT:
+ return ROUTE_ON_ELEMENT_EDEFAULT == null ? routeOnElement != null :
!ROUTE_ON_ELEMENT_EDEFAULT.equals(routeOnElement);
+ case IoroutingPackage.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();
+ }
+
+} //RouterImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/impl/RouterImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/DocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+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.DocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DocumentRootItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRootItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(IoroutingPackage.Literals.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 DocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/DocumentRoot"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DocumentRoot_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(DocumentRoot.class)) {
+ case IoroutingPackage.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.DOCUMENT_ROOT__ROUTER,
+ IoroutingFactory.eINSTANCE.createRouter()));
+ }
+
+ /**
+ * 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/DocumentRootItemProvider.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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootItemProvider documentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.iorouting.DocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createDocumentRootAdapter() {
+ if (documentRootItemProvider == null) {
+ documentRootItemProvider = new DocumentRootItemProvider(this);
+ }
+
+ return documentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.iorouting.Router} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RouterItemProvider routerItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.iorouting.Router}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createRouterAdapter() {
+ if (routerItemProvider == null) {
+ routerItemProvider = new RouterItemProvider(this);
+ }
+
+ return routerItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this :
parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (documentRootItemProvider != null) documentRootItemProvider.dispose();
+ if (routerItemProvider != null) routerItemProvider.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/provider/RouterItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/RouterItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/iorouting/provider/RouterItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.IoroutingPackage;
+import org.jboss.tools.smooks.model.iorouting.Router;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.iorouting.Router} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class RouterItemProvider
+ 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 RouterItemProvider(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_Router_beanId_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_beanId_feature", "_UI_IO_Router_type"),
+ IoroutingPackage.Literals.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_Router_encoding_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_encoding_feature", "_UI_IO_Router_type"),
+ IoroutingPackage.Literals.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_Router_executeBefore_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_executeBefore_feature", "_UI_IO_Router_type"),
+ IoroutingPackage.Literals.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_Router_resourceName_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_resourceName_feature", "_UI_IO_Router_type"),
+ IoroutingPackage.Literals.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_Router_routeOnElement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_routeOnElement_feature", "_UI_IO_Router_type"),
+ IoroutingPackage.Literals.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_Router_routeOnElementNS_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_routeOnElementNS_feature", "_UI_IO_Router_type"),
+ IoroutingPackage.Literals.ROUTER__ROUTE_ON_ELEMENT_NS,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns Router.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/Router"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Router)object).getResourceName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_IO_Router_type") :
+ getString("_UI_IO_Router_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(Router.class)) {
+ case IoroutingPackage.ROUTER__BEAN_ID:
+ case IoroutingPackage.ROUTER__ENCODING:
+ case IoroutingPackage.ROUTER__EXECUTE_BEFORE:
+ case IoroutingPackage.ROUTER__RESOURCE_NAME:
+ case IoroutingPackage.ROUTER__ROUTE_ON_ELEMENT:
+ case IoroutingPackage.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/RouterItemProvider.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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+import org.jboss.tools.smooks.model.iorouting.Router;
+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 caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseRouter(Router object) {
+ return createRouterAdapter();
+ }
+ @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.DocumentRoot <em>Document
Root</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.iorouting.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link
org.jboss.tools.smooks.model.iorouting.Router <em>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.Router
+ * @generated
+ */
+ public Adapter createRouterAdapter() {
+ 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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
+import org.jboss.tools.smooks.model.iorouting.Router;
+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.DOCUMENT_ROOT: {
+ DocumentRoot documentRoot = (DocumentRoot)theEObject;
+ T result = caseDocumentRoot(documentRoot);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case IoroutingPackage.ROUTER: {
+ Router router = (Router)theEObject;
+ T result = caseRouter(router);
+ if (result == null) result = caseElementVisitor(router);
+ if (result == null) result = caseAbstractResourceConfig(router);
+ if (result == null) result = caseAbstractAnyType(router);
+ if (result == null) result = caseAnyType(router);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDocumentRoot(DocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>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>Router</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRouter(Router 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
06:07:39 UTC (rev 14717)
@@ -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
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider
(from rev 14691,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/javabean/provider)
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/BindingsTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/javabean/provider/BindingsTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/BindingsTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.javabean.provider;
+package org.jboss.tools.smooks.model.javabean.provider;
import java.util.Collection;
@@ -24,10 +24,10 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.smooks.provider.ElementVisitorItemProvider;
import org.jboss.tools.smooks.model.javabean.BindingsType;
import org.jboss.tools.smooks.model.javabean.JavabeanFactory;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
/**
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/DecodeParamTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/javabean/provider/DecodeParamTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/DecodeParamTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.javabean.provider;
+package org.jboss.tools.smooks.model.javabean.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.javabean.DecodeParamType;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/javabean/provider/DocumentRootItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.javabean.provider;
+package org.jboss.tools.smooks.model.javabean.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/ExpressionTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/javabean/provider/ExpressionTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/ExpressionTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.javabean.provider;
+package org.jboss.tools.smooks.model.javabean.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.javabean.ExpressionType;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/Javabean1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/javabean/provider/Javabean1EditPlugin.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/Javabean1EditPlugin.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.javabean.provider;
+package org.jboss.tools.smooks.model.javabean.provider;
import org.eclipse.emf.common.EMFPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/JavabeanItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/javabean/provider/JavabeanItemProviderAdapterFactory.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/JavabeanItemProviderAdapterFactory.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.javabean.provider;
+package org.jboss.tools.smooks.model.javabean.provider;
import java.util.ArrayList;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/ValueTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/javabean/provider/ValueTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/ValueTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.javabean.provider;
+package org.jboss.tools.smooks.model.javabean.provider;
import java.util.Collection;
@@ -23,7 +23,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.javabean.JavabeanFactory;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
import org.jboss.tools.smooks.model.javabean.ValueType;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/WiringTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/javabean/provider/WiringTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/javabean/provider/WiringTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.javabean.provider;
+package org.jboss.tools.smooks.model.javabean.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
import org.jboss.tools.smooks.model.javabean.WiringType;
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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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/DocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/DocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/DocumentRoot.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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>Document
Root</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#getRouter
<em>Router</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface DocumentRoot extends EObject {
+ /**
+ * Returns the value of the '<em><b>Mixed</b></em>'
attribute list.
+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Mixed</em>' attribute list isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Mixed</em>' attribute list.
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getDocumentRoot_Mixed()
+ * @model unique="false"
dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+ * extendedMetaData="kind='elementWildcard'
name=':mixed'"
+ * @generated
+ */
+ FeatureMap getMixed();
+
+ /**
+ * Returns the value of the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XMLNS Prefix Map</em>' map.
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getDocumentRoot_XMLNSPrefixMap()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xmlns:prefix'"
+ * @generated
+ */
+ EMap<String, String> getXMLNSPrefixMap();
+
+ /**
+ * Returns the value of the '<em><b>XSI Schema
Location</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XSI Schema Location</em>' map
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XSI Schema Location</em>' map.
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getDocumentRoot_XSISchemaLocation()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>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(Router)
+ * @see
org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getDocumentRoot_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
+ */
+ Router getRouter();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#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(Router value);
+
+} // DocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/DocumentRoot.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
06:07:39 UTC (rev 14717)
@@ -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/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
06:07:39 UTC (rev 14717)
@@ -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>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Document Root</em>'.
+ * @generated
+ */
+ DocumentRoot createDocumentRoot();
+
+ /**
+ * Returns a new object of class '<em>High Water Mark</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>High Water Mark</em>'.
+ * @generated
+ */
+ HighWaterMark createHighWaterMark();
+
+ /**
+ * Returns a new object of class '<em>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>Router</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Router</em>'.
+ * @generated
+ */
+ Router createRouter();
+
+ /**
+ * 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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.DocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ int DOCUMENT_ROOT = 1;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__MIXED = 0;
+
+ /**
+ * The feature id for the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+ /**
+ * The feature id for the '<em><b>XSI Schema
Location</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Router</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__ROUTER = 3;
+
+ /**
+ * The number of structural features of the '<em>Document Root</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link
org.jboss.tools.smooks.model.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.RouterImpl <em>Router</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getRouter()
+ * @generated
+ */
+ int ROUTER = 5;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int 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 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 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 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 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 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 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 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 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 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 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 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 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 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 ROUTER__ROUTE_ON_ELEMENT_NS = SmooksPackage.ELEMENT_VISITOR_FEATURE_COUNT + 9;
+
+ /**
+ * The number of structural features of the '<em>Router</em>'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int 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.DocumentRoot <em>Document
Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Document Root</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.DocumentRoot
+ * @generated
+ */
+ EClass getDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#getMixed
<em>Mixed</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EAttribute getDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#getXSISchemaLocation <em>XSI
Schema Location</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XSI Schema
Location</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.DocumentRoot#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.DocumentRoot#getRouter()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_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.Router <em>Router</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Router</em>'.
+ * @see org.jboss.tools.smooks.model.jmsrouting.Router
+ * @generated
+ */
+ EClass getRouter();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.Router#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.Router#getMessage()
+ * @see #getRouter()
+ * @generated
+ */
+ EReference getRouter_Message();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.Router#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.Router#getConnection()
+ * @see #getRouter()
+ * @generated
+ */
+ EReference getRouter_Connection();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.Router#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.Router#getSession()
+ * @see #getRouter()
+ * @generated
+ */
+ EReference getRouter_Session();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.Router#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.Router#getJndi()
+ * @see #getRouter()
+ * @generated
+ */
+ EReference getRouter_Jndi();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.jmsrouting.Router#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.Router#getHighWaterMark()
+ * @see #getRouter()
+ * @generated
+ */
+ EReference getRouter_HighWaterMark();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Router#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.Router#getBeanId()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_BeanId();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Router#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.Router#getDestination()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_Destination();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Router#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.Router#isExecuteBefore()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_ExecuteBefore();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Router#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.Router#getRouteOnElement()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_RouteOnElement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.jmsrouting.Router#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.Router#getRouteOnElementNS()
+ * @see #getRouter()
+ * @generated
+ */
+ EAttribute getRouter_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.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.DocumentRootImpl
+ * @see
org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Router</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__ROUTER = eINSTANCE.getDocumentRoot_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.RouterImpl <em>Router</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl
+ * @see org.jboss.tools.smooks.model.jmsrouting.impl.JmsroutingPackageImpl#getRouter()
+ * @generated
+ */
+ EClass ROUTER = eINSTANCE.getRouter();
+
+ /**
+ * The meta object literal for the
'<em><b>Message</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ROUTER__MESSAGE = eINSTANCE.getRouter_Message();
+
+ /**
+ * The meta object literal for the
'<em><b>Connection</b></em>' containment reference
feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ROUTER__CONNECTION = eINSTANCE.getRouter_Connection();
+
+ /**
+ * The meta object literal for the
'<em><b>Session</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ROUTER__SESSION = eINSTANCE.getRouter_Session();
+
+ /**
+ * The meta object literal for the
'<em><b>Jndi</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference ROUTER__JNDI = eINSTANCE.getRouter_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 ROUTER__HIGH_WATER_MARK = eINSTANCE.getRouter_HighWaterMark();
+
+ /**
+ * The meta object literal for the '<em><b>Bean
Id</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTER__BEAN_ID = eINSTANCE.getRouter_BeanId();
+
+ /**
+ * The meta object literal for the
'<em><b>Destination</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTER__DESTINATION = eINSTANCE.getRouter_Destination();
+
+ /**
+ * The meta object literal for the '<em><b>Execute
Before</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTER__EXECUTE_BEFORE = eINSTANCE.getRouter_ExecuteBefore();
+
+ /**
+ * The meta object literal for the '<em><b>Route On
Element</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute ROUTER__ROUTE_ON_ELEMENT = eINSTANCE.getRouter_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 ROUTER__ROUTE_ON_ELEMENT_NS = eINSTANCE.getRouter_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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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/Router.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Router.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Router.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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>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.Router#getMessage
<em>Message</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Router#getConnection
<em>Connection</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Router#getSession
<em>Session</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Router#getJndi
<em>Jndi</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Router#getHighWaterMark
<em>High Water Mark</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Router#getBeanId
<em>Bean Id</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Router#getDestination
<em>Destination</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Router#isExecuteBefore
<em>Execute Before</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Router#getRouteOnElement
<em>Route On Element</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.Router#getRouteOnElementNS
<em>Route On Element NS</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage#getRouter()
+ * @model extendedMetaData="name='router' kind='elementOnly'"
+ * @generated
+ */
+public interface Router 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#getRouter_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.Router#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#getRouter_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.Router#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#getRouter_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.Router#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#getRouter_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.Router#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#getRouter_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.Router#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#getRouter_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.Router#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#getRouter_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.Router#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#getRouter_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.Router#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.Router#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.Router#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#getRouter_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.Router#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#getRouter_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.Router#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);
+
+} // Router
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/Router.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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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/DocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/DocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/DocumentRootImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Router;
+
+/**
+ * <!-- 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.jmsrouting.impl.DocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.DocumentRootImpl#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.DocumentRootImpl#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.DocumentRootImpl#getRouter
<em>Router</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+ /**
+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix
Map</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xMLNSPrefixMap;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema
Location</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xSISchemaLocation;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JmsroutingPackage.Literals.DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, JmsroutingPackage.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.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.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Router getRouter() {
+ return (Router)getMixed().get(JmsroutingPackage.Literals.DOCUMENT_ROOT__ROUTER, true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetRouter(Router newRouter, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(JmsroutingPackage.Literals.DOCUMENT_ROOT__ROUTER,
newRouter, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRouter(Router newRouter) {
+ ((FeatureMap.Internal)getMixed()).set(JmsroutingPackage.Literals.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.DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case JmsroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case JmsroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case JmsroutingPackage.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.DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case JmsroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case JmsroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case JmsroutingPackage.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.DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case JmsroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case JmsroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case JmsroutingPackage.DOCUMENT_ROOT__ROUTER:
+ setRouter((Router)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case JmsroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case JmsroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case JmsroutingPackage.DOCUMENT_ROOT__ROUTER:
+ setRouter((Router)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JmsroutingPackage.DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case JmsroutingPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case JmsroutingPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case JmsroutingPackage.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();
+ }
+
+} //DocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/DocumentRootImpl.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
06:07:39 UTC (rev 14717)
@@ -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/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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark;
+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.Router;
+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.DOCUMENT_ROOT: return createDocumentRoot();
+ case JmsroutingPackage.HIGH_WATER_MARK: return createHighWaterMark();
+ case JmsroutingPackage.JNDI: return createJndi();
+ case JmsroutingPackage.MESSAGE: return createMessage();
+ case JmsroutingPackage.ROUTER: return createRouter();
+ 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 DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HighWaterMark createHighWaterMark() {
+ HighWaterMarkImpl highWaterMark = new HighWaterMarkImpl();
+ return highWaterMark;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public 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 Router createRouter() {
+ RouterImpl router = new RouterImpl();
+ return router;
+ }
+
+ /**
+ * <!-- 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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark;
+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.Router;
+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 documentRootEClass = 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 routerEClass = 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 getDocumentRoot() {
+ return documentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDocumentRoot_Mixed() {
+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XSISchemaLocation() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_Router() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getHighWaterMark() {
+ return highWaterMarkEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHighWaterMark_Mark() {
+ return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHighWaterMark_PollFrequency() {
+ return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHighWaterMark_Timeout() {
+ return (EAttribute)highWaterMarkEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass 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 getRouter() {
+ return routerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRouter_Message() {
+ return (EReference)routerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRouter_Connection() {
+ return (EReference)routerEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRouter_Session() {
+ return (EReference)routerEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRouter_Jndi() {
+ return (EReference)routerEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getRouter_HighWaterMark() {
+ return (EReference)routerEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_BeanId() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_Destination() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_ExecuteBefore() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_RouteOnElement() {
+ return (EAttribute)routerEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getRouter_RouteOnElementNS() {
+ return (EAttribute)routerEClass.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);
+
+ documentRootEClass = createEClass(DOCUMENT_ROOT);
+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__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);
+
+ routerEClass = createEClass(ROUTER);
+ createEReference(routerEClass, ROUTER__MESSAGE);
+ createEReference(routerEClass, ROUTER__CONNECTION);
+ createEReference(routerEClass, ROUTER__SESSION);
+ createEReference(routerEClass, ROUTER__JNDI);
+ createEReference(routerEClass, ROUTER__HIGH_WATER_MARK);
+ createEAttribute(routerEClass, ROUTER__BEAN_ID);
+ createEAttribute(routerEClass, ROUTER__DESTINATION);
+ createEAttribute(routerEClass, ROUTER__EXECUTE_BEFORE);
+ createEAttribute(routerEClass, ROUTER__ROUTE_ON_ELEMENT);
+ createEAttribute(routerEClass, 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
+ routerEClass.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(documentRootEClass, DocumentRoot.class, "DocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(),
"mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XMLNSPrefixMap(),
ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1,
null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XSISchemaLocation(),
ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0,
-1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_Router(), this.getRouter(), 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(routerEClass, Router.class, "JMS Router", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getRouter_Message(), this.getMessage(), null, "message", null,
0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getRouter_Connection(), this.getConnection(), null,
"connection", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEReference(getRouter_Session(), this.getSession(), null, "session", null,
0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getRouter_Jndi(), this.getJndi(), null, "jndi", null, 0, 1,
Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getRouter_HighWaterMark(), this.getHighWaterMark(), null,
"highWaterMark", null, 0, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
+ initEAttribute(getRouter_BeanId(), theXMLTypePackage.getString(), "beanId",
null, 1, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE,
!IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_Destination(), theXMLTypePackage.getString(),
"destination", null, 1, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_ExecuteBefore(), theXMLTypePackage.getBoolean(),
"executeBefore", "false", 0, 1, Router.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_RouteOnElement(), theXMLTypePackage.getString(),
"routeOnElement", null, 1, 1, Router.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getRouter_RouteOnElementNS(), theXMLTypePackage.getString(),
"routeOnElementNS", null, 0, 1, Router.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
+ (documentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getDocumentRoot_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
+ (routerEClass,
+ source,
+ new String[] {
+ "name", "router",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getRouter_Message(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "message",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getRouter_Connection(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "connection",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getRouter_Session(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "session",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getRouter_Jndi(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "jndi",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getRouter_HighWaterMark(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "highWaterMark",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getRouter_BeanId(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "beanId"
+ });
+ addAnnotation
+ (getRouter_Destination(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "destination"
+ });
+ addAnnotation
+ (getRouter_ExecuteBefore(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "executeBefore"
+ });
+ addAnnotation
+ (getRouter_RouteOnElement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "routeOnElement"
+ });
+ addAnnotation
+ (getRouter_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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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/RouterImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/RouterImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/RouterImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Jndi;
+import org.jboss.tools.smooks.model.jmsrouting.Message;
+import org.jboss.tools.smooks.model.jmsrouting.Router;
+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>Router</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl#getMessage
<em>Message</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl#getConnection
<em>Connection</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl#getSession
<em>Session</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl#getJndi
<em>Jndi</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl#getHighWaterMark <em>High
Water Mark</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl#getBeanId
<em>Bean Id</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl#getDestination
<em>Destination</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl#isExecuteBefore <em>Execute
Before</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl#getRouteOnElement <em>Route
On Element</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.jmsrouting.impl.RouterImpl#getRouteOnElementNS
<em>Route On Element NS</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class RouterImpl extends ElementVisitorImpl implements Router {
+ /**
+ * 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 RouterImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JmsroutingPackage.Literals.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.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.ROUTER__MESSAGE, null, msgs);
+ if (newMessage != null)
+ msgs = ((InternalEObject)newMessage).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.ROUTER__MESSAGE, null, msgs);
+ msgs = basicSetMessage(newMessage, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.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.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.ROUTER__CONNECTION, null, msgs);
+ if (newConnection != null)
+ msgs = ((InternalEObject)newConnection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.ROUTER__CONNECTION, null, msgs);
+ msgs = basicSetConnection(newConnection, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.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.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.ROUTER__SESSION, null, msgs);
+ if (newSession != null)
+ msgs = ((InternalEObject)newSession).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.ROUTER__SESSION, null, msgs);
+ msgs = basicSetSession(newSession, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET,
JmsroutingPackage.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.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.ROUTER__JNDI, null, msgs);
+ if (newJndi != null)
+ msgs = ((InternalEObject)newJndi).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.ROUTER__JNDI, null, msgs);
+ msgs = basicSetJndi(newJndi, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, JmsroutingPackage.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.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.ROUTER__HIGH_WATER_MARK, null, msgs);
+ if (newHighWaterMark != null)
+ msgs = ((InternalEObject)newHighWaterMark).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JmsroutingPackage.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.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.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.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.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.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.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.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.ROUTER__MESSAGE:
+ return basicSetMessage(null, msgs);
+ case JmsroutingPackage.ROUTER__CONNECTION:
+ return basicSetConnection(null, msgs);
+ case JmsroutingPackage.ROUTER__SESSION:
+ return basicSetSession(null, msgs);
+ case JmsroutingPackage.ROUTER__JNDI:
+ return basicSetJndi(null, msgs);
+ case JmsroutingPackage.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.ROUTER__MESSAGE:
+ return getMessage();
+ case JmsroutingPackage.ROUTER__CONNECTION:
+ return getConnection();
+ case JmsroutingPackage.ROUTER__SESSION:
+ return getSession();
+ case JmsroutingPackage.ROUTER__JNDI:
+ return getJndi();
+ case JmsroutingPackage.ROUTER__HIGH_WATER_MARK:
+ return getHighWaterMark();
+ case JmsroutingPackage.ROUTER__BEAN_ID:
+ return getBeanId();
+ case JmsroutingPackage.ROUTER__DESTINATION:
+ return getDestination();
+ case JmsroutingPackage.ROUTER__EXECUTE_BEFORE:
+ return isExecuteBefore() ? Boolean.TRUE : Boolean.FALSE;
+ case JmsroutingPackage.ROUTER__ROUTE_ON_ELEMENT:
+ return getRouteOnElement();
+ case JmsroutingPackage.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.ROUTER__MESSAGE:
+ setMessage((Message)newValue);
+ return;
+ case JmsroutingPackage.ROUTER__CONNECTION:
+ setConnection((Connection)newValue);
+ return;
+ case JmsroutingPackage.ROUTER__SESSION:
+ setSession((Session)newValue);
+ return;
+ case JmsroutingPackage.ROUTER__JNDI:
+ setJndi((Jndi)newValue);
+ return;
+ case JmsroutingPackage.ROUTER__HIGH_WATER_MARK:
+ setHighWaterMark((HighWaterMark)newValue);
+ return;
+ case JmsroutingPackage.ROUTER__BEAN_ID:
+ setBeanId((String)newValue);
+ return;
+ case JmsroutingPackage.ROUTER__DESTINATION:
+ setDestination((String)newValue);
+ return;
+ case JmsroutingPackage.ROUTER__EXECUTE_BEFORE:
+ setExecuteBefore(((Boolean)newValue).booleanValue());
+ return;
+ case JmsroutingPackage.ROUTER__ROUTE_ON_ELEMENT:
+ setRouteOnElement((String)newValue);
+ return;
+ case JmsroutingPackage.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.ROUTER__MESSAGE:
+ setMessage((Message)null);
+ return;
+ case JmsroutingPackage.ROUTER__CONNECTION:
+ setConnection((Connection)null);
+ return;
+ case JmsroutingPackage.ROUTER__SESSION:
+ setSession((Session)null);
+ return;
+ case JmsroutingPackage.ROUTER__JNDI:
+ setJndi((Jndi)null);
+ return;
+ case JmsroutingPackage.ROUTER__HIGH_WATER_MARK:
+ setHighWaterMark((HighWaterMark)null);
+ return;
+ case JmsroutingPackage.ROUTER__BEAN_ID:
+ setBeanId(BEAN_ID_EDEFAULT);
+ return;
+ case JmsroutingPackage.ROUTER__DESTINATION:
+ setDestination(DESTINATION_EDEFAULT);
+ return;
+ case JmsroutingPackage.ROUTER__EXECUTE_BEFORE:
+ unsetExecuteBefore();
+ return;
+ case JmsroutingPackage.ROUTER__ROUTE_ON_ELEMENT:
+ setRouteOnElement(ROUTE_ON_ELEMENT_EDEFAULT);
+ return;
+ case JmsroutingPackage.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.ROUTER__MESSAGE:
+ return message != null;
+ case JmsroutingPackage.ROUTER__CONNECTION:
+ return connection != null;
+ case JmsroutingPackage.ROUTER__SESSION:
+ return session != null;
+ case JmsroutingPackage.ROUTER__JNDI:
+ return jndi != null;
+ case JmsroutingPackage.ROUTER__HIGH_WATER_MARK:
+ return highWaterMark != null;
+ case JmsroutingPackage.ROUTER__BEAN_ID:
+ return BEAN_ID_EDEFAULT == null ? beanId != null : !BEAN_ID_EDEFAULT.equals(beanId);
+ case JmsroutingPackage.ROUTER__DESTINATION:
+ return DESTINATION_EDEFAULT == null ? destination != null :
!DESTINATION_EDEFAULT.equals(destination);
+ case JmsroutingPackage.ROUTER__EXECUTE_BEFORE:
+ return isSetExecuteBefore();
+ case JmsroutingPackage.ROUTER__ROUTE_ON_ELEMENT:
+ return ROUTE_ON_ELEMENT_EDEFAULT == null ? routeOnElement != null :
!ROUTE_ON_ELEMENT_EDEFAULT.equals(routeOnElement);
+ case JmsroutingPackage.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();
+ }
+
+} //RouterImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/impl/RouterImpl.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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/DocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+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.DocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DocumentRootItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRootItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(JmsroutingPackage.Literals.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 DocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/DocumentRoot"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DocumentRoot_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(DocumentRoot.class)) {
+ case JmsroutingPackage.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.DOCUMENT_ROOT__ROUTER,
+ JmsroutingFactory.eINSTANCE.createRouter()));
+ }
+
+ /**
+ * 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/DocumentRootItemProvider.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
06:07:39 UTC (rev 14717)
@@ -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/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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootItemProvider documentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.DocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createDocumentRootAdapter() {
+ if (documentRootItemProvider == null) {
+ documentRootItemProvider = new DocumentRootItemProvider(this);
+ }
+
+ return documentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.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.Router} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected RouterItemProvider routerItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.Router}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createRouterAdapter() {
+ if (routerItemProvider == null) {
+ routerItemProvider = new RouterItemProvider(this);
+ }
+
+ return routerItemProvider;
+ }
+
+ /**
+ * 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 (documentRootItemProvider != null) documentRootItemProvider.dispose();
+ if (highWaterMarkItemProvider != null) highWaterMarkItemProvider.dispose();
+ if (jndiItemProvider != null) jndiItemProvider.dispose();
+ if (messageItemProvider != null) messageItemProvider.dispose();
+ if (routerItemProvider != null) routerItemProvider.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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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/RouterItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/RouterItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/jmsrouting/provider/RouterItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.JmsroutingFactory;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.jmsrouting.Router;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.jmsrouting.Router} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class RouterItemProvider
+ 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 RouterItemProvider(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_Router_beanId_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_beanId_feature", "_UI_JMS_Router_type"),
+ JmsroutingPackage.Literals.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_Router_destination_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_destination_feature", "_UI_JMS_Router_type"),
+ JmsroutingPackage.Literals.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_Router_executeBefore_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_executeBefore_feature", "_UI_JMS_Router_type"),
+ JmsroutingPackage.Literals.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_Router_routeOnElement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_routeOnElement_feature", "_UI_JMS_Router_type"),
+ JmsroutingPackage.Literals.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_Router_routeOnElementNS_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Router_routeOnElementNS_feature", "_UI_JMS_Router_type"),
+ JmsroutingPackage.Literals.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.ROUTER__MESSAGE);
+ childrenFeatures.add(JmsroutingPackage.Literals.ROUTER__CONNECTION);
+ childrenFeatures.add(JmsroutingPackage.Literals.ROUTER__SESSION);
+ childrenFeatures.add(JmsroutingPackage.Literals.ROUTER__JNDI);
+ childrenFeatures.add(JmsroutingPackage.Literals.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 Router.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/Router"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Router)object).getTargetProfile();
+ return label == null || label.length() == 0 ?
+ getString("_UI_JMS_Router_type") :
+ getString("_UI_JMS_Router_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(Router.class)) {
+ case JmsroutingPackage.ROUTER__BEAN_ID:
+ case JmsroutingPackage.ROUTER__DESTINATION:
+ case JmsroutingPackage.ROUTER__EXECUTE_BEFORE:
+ case JmsroutingPackage.ROUTER__ROUTE_ON_ELEMENT:
+ case JmsroutingPackage.ROUTER__ROUTE_ON_ELEMENT_NS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
+ return;
+ case JmsroutingPackage.ROUTER__MESSAGE:
+ case JmsroutingPackage.ROUTER__CONNECTION:
+ case JmsroutingPackage.ROUTER__SESSION:
+ case JmsroutingPackage.ROUTER__JNDI:
+ case JmsroutingPackage.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.ROUTER__MESSAGE,
+ JmsroutingFactory.eINSTANCE.createMessage()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (JmsroutingPackage.Literals.ROUTER__CONNECTION,
+ JmsroutingFactory.eINSTANCE.createConnection()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (JmsroutingPackage.Literals.ROUTER__SESSION,
+ JmsroutingFactory.eINSTANCE.createSession()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (JmsroutingPackage.Literals.ROUTER__JNDI,
+ JmsroutingFactory.eINSTANCE.createJndi()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (JmsroutingPackage.Literals.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/RouterItemProvider.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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark;
+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.Router;
+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 caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+ @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 caseRouter(Router object) {
+ return createRouterAdapter();
+ }
+ @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.DocumentRoot <em>Document
Root</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.jmsrouting.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ 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.Router <em>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.Router
+ * @generated
+ */
+ public Adapter createRouterAdapter() {
+ 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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.jmsrouting.HighWaterMark;
+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.Router;
+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.DOCUMENT_ROOT: {
+ DocumentRoot documentRoot = (DocumentRoot)theEObject;
+ T result = caseDocumentRoot(documentRoot);
+ 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.ROUTER: {
+ Router router = (Router)theEObject;
+ T result = caseRouter(router);
+ if (result == null) result = caseElementVisitor(router);
+ if (result == null) result = caseAbstractResourceConfig(router);
+ if (result == null) result = caseAbstractAnyType(router);
+ if (result == null) result = caseAnyType(router);
+ 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>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDocumentRoot(DocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>High
Water Mark</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>High
Water Mark</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHighWaterMark(HighWaterMark object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>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>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>Router</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRouter(Router 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
06:07:39 UTC (rev 14717)
@@ -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/DocumentRoot.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/DocumentRoot.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/DocumentRoot.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.DocumentRoot#getXMLNSPrefixMap
<em>XMLNS Prefix Map</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.DocumentRoot#getXSISchemaLocation
<em>XSI Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.DocumentRoot#getReader
<em>Reader</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getDocumentRoot()
+ * @model extendedMetaData="name='' kind='mixed'"
+ * @generated
+ */
+public interface DocumentRoot extends EObject {
+ /**
+ * Returns the value of the '<em><b>Mixed</b></em>'
attribute list.
+ * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Mixed</em>' attribute list isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Mixed</em>' attribute list.
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getDocumentRoot_Mixed()
+ * @model unique="false"
dataType="org.eclipse.emf.ecore.EFeatureMapEntry" many="true"
+ * extendedMetaData="kind='elementWildcard'
name=':mixed'"
+ * @generated
+ */
+ FeatureMap getMixed();
+
+ /**
+ * Returns the value of the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XMLNS Prefix Map</em>' map isn't
clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XMLNS Prefix Map</em>' map.
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getDocumentRoot_XMLNSPrefixMap()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xmlns:prefix'"
+ * @generated
+ */
+ EMap<String, String> getXMLNSPrefixMap();
+
+ /**
+ * Returns the value of the '<em><b>XSI Schema
Location</b></em>' map.
+ * The key is of type {@link java.lang.String},
+ * and the value is of type {@link java.lang.String},
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>XSI Schema Location</em>' map
isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>XSI Schema Location</em>' map.
+ * @see
org.jboss.tools.smooks.model.json.JsonPackage#getDocumentRoot_XSISchemaLocation()
+ * @model
mapType="org.eclipse.emf.ecore.EStringToStringMapEntry<org.eclipse.emf.ecore.EString,
org.eclipse.emf.ecore.EString>" transient="true"
+ * extendedMetaData="kind='attribute'
name='xsi:schemaLocation'"
+ * @generated
+ */
+ EMap<String, String> getXSISchemaLocation();
+
+ /**
+ * Returns the value of the '<em><b>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(Reader)
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getDocumentRoot_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
+ */
+ Reader getReader();
+
+ /**
+ * Sets the value of the '{@link
org.jboss.tools.smooks.model.json.DocumentRoot#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(Reader value);
+
+} // DocumentRoot
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/DocumentRoot.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
06:07:39 UTC (rev 14717)
@@ -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
+ */
+ DocumentRoot createDocumentRoot();
+
+ /**
+ * 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
+ */
+ Reader createReader();
+
+ /**
+ * 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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.DocumentRootImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ int DOCUMENT_ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__MIXED = 0;
+
+ /**
+ * The feature id for the '<em><b>XMLNS Prefix
Map</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XMLNS_PREFIX_MAP = 1;
+
+ /**
+ * The feature id for the '<em><b>XSI Schema
Location</b></em>' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DOCUMENT_ROOT__XSI_SCHEMA_LOCATION = 2;
+
+ /**
+ * The feature id for the '<em><b>Reader</b></em>'
containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int 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 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.ReaderImpl <em>Reader</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.ReaderImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getReader()
+ * @generated
+ */
+ int READER = 3;
+
+ /**
+ * The feature id for the '<em><b>Mixed</b></em>'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int 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 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 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 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 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 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 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 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 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 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 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 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 READER_FEATURE_COUNT = SmooksPackage.ABSTRACT_READER_FEATURE_COUNT + 8;
+
+
+ /**
+ * Returns the meta object for class '{@link
org.jboss.tools.smooks.model.json.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Document Root</em>'.
+ * @see org.jboss.tools.smooks.model.json.DocumentRoot
+ * @generated
+ */
+ EClass getDocumentRoot();
+
+ /**
+ * Returns the meta object for the attribute list '{@link
org.jboss.tools.smooks.model.json.DocumentRoot#getMixed <em>Mixed</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute list '<em>Mixed</em>'.
+ * @see org.jboss.tools.smooks.model.json.DocumentRoot#getMixed()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EAttribute getDocumentRoot_Mixed();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.json.DocumentRoot#getXMLNSPrefixMap <em>XMLNS Prefix
Map</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XMLNS Prefix Map</em>'.
+ * @see org.jboss.tools.smooks.model.json.DocumentRoot#getXMLNSPrefixMap()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * Returns the meta object for the map '{@link
org.jboss.tools.smooks.model.json.DocumentRoot#getXSISchemaLocation <em>XSI Schema
Location</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the map '<em>XSI Schema
Location</em>'.
+ * @see org.jboss.tools.smooks.model.json.DocumentRoot#getXSISchemaLocation()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.json.DocumentRoot#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.DocumentRoot#getReader()
+ * @see #getDocumentRoot()
+ * @generated
+ */
+ EReference getDocumentRoot_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.Reader <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.Reader
+ * @generated
+ */
+ EClass getReader();
+
+ /**
+ * Returns the meta object for the containment reference '{@link
org.jboss.tools.smooks.model.json.Reader#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.Reader#getKeyMap()
+ * @see #getReader()
+ * @generated
+ */
+ EReference getReader_KeyMap();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.Reader#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.Reader#getArrayElementName()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_ArrayElementName();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.Reader#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.Reader#getEncoding()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_Encoding();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.Reader#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.Reader#getIllegalElementNameCharReplacement()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_IllegalElementNameCharReplacement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.Reader#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.Reader#getKeyPrefixOnNumeric()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_KeyPrefixOnNumeric();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.Reader#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.Reader#getKeyWhitspaceReplacement()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_KeyWhitspaceReplacement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.Reader#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.Reader#getNullValueReplacement()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_NullValueReplacement();
+
+ /**
+ * Returns the meta object for the attribute '{@link
org.jboss.tools.smooks.model.json.Reader#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.Reader#getRootName()
+ * @see #getReader()
+ * @generated
+ */
+ EAttribute getReader_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.DocumentRootImpl <em>Document
Root</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.DocumentRootImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getDocumentRoot()
+ * @generated
+ */
+ EClass DOCUMENT_ROOT = eINSTANCE.getDocumentRoot();
+
+ /**
+ * The meta object literal for the
'<em><b>Mixed</b></em>' attribute list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute DOCUMENT_ROOT__MIXED = eINSTANCE.getDocumentRoot_Mixed();
+
+ /**
+ * The meta object literal for the '<em><b>XMLNS Prefix
Map</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XMLNS_PREFIX_MAP =
eINSTANCE.getDocumentRoot_XMLNSPrefixMap();
+
+ /**
+ * The meta object literal for the '<em><b>XSI Schema
Location</b></em>' map feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__XSI_SCHEMA_LOCATION =
eINSTANCE.getDocumentRoot_XSISchemaLocation();
+
+ /**
+ * The meta object literal for the
'<em><b>Reader</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference DOCUMENT_ROOT__READER = eINSTANCE.getDocumentRoot_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.ReaderImpl <em>Reader</em>}'
class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.jboss.tools.smooks.model.json.impl.ReaderImpl
+ * @see org.jboss.tools.smooks.model.json.impl.JsonPackageImpl#getReader()
+ * @generated
+ */
+ EClass READER = eINSTANCE.getReader();
+
+ /**
+ * The meta object literal for the '<em><b>Key
Map</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference READER__KEY_MAP = eINSTANCE.getReader_KeyMap();
+
+ /**
+ * The meta object literal for the '<em><b>Array Element
Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute READER__ARRAY_ELEMENT_NAME = eINSTANCE.getReader_ArrayElementName();
+
+ /**
+ * The meta object literal for the
'<em><b>Encoding</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute READER__ENCODING = eINSTANCE.getReader_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 READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT =
eINSTANCE.getReader_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 READER__KEY_PREFIX_ON_NUMERIC = eINSTANCE.getReader_KeyPrefixOnNumeric();
+
+ /**
+ * The meta object literal for the '<em><b>Key Whitspace
Replacement</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute READER__KEY_WHITSPACE_REPLACEMENT =
eINSTANCE.getReader_KeyWhitspaceReplacement();
+
+ /**
+ * The meta object literal for the '<em><b>Null Value
Replacement</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute READER__NULL_VALUE_REPLACEMENT =
eINSTANCE.getReader_NullValueReplacement();
+
+ /**
+ * The meta object literal for the '<em><b>Root
Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute READER__ROOT_NAME = eINSTANCE.getReader_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/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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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/Reader.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/Reader.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/Reader.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.Reader#getKeyMap <em>Key
Map</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.Reader#getArrayElementName
<em>Array Element Name</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.Reader#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.Reader#getIllegalElementNameCharReplacement
<em>Illegal Element Name Char Replacement</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.Reader#getKeyPrefixOnNumeric
<em>Key Prefix On Numeric</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.Reader#getKeyWhitspaceReplacement
<em>Key Whitspace Replacement</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.Reader#getNullValueReplacement
<em>Null Value Replacement</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.Reader#getRootName <em>Root
Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.jboss.tools.smooks.model.json.JsonPackage#getReader()
+ * @model extendedMetaData="name='reader' kind='elementOnly'"
+ * @generated
+ */
+public interface Reader 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#getReader_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.Reader#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#getReader_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.Reader#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.Reader#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.Reader#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#getReader_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.Reader#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.Reader#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.Reader#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#getReader_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.Reader#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#getReader_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.Reader#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#getReader_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.Reader#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#getReader_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.Reader#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#getReader_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.Reader#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.Reader#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.Reader#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();
+
+} // Reader
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/Reader.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/DocumentRootImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/DocumentRootImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/DocumentRootImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.Reader;
+
+/**
+ * <!-- 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.DocumentRootImpl#getMixed
<em>Mixed</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.DocumentRootImpl#getXMLNSPrefixMap <em>XMLNS
Prefix Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.DocumentRootImpl#getXSISchemaLocation <em>XSI
Schema Location</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.impl.DocumentRootImpl#getReader
<em>Reader</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DocumentRootImpl extends EObjectImpl implements DocumentRoot {
+ /**
+ * The cached value of the '{@link #getMixed() <em>Mixed</em>}'
attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMixed()
+ * @generated
+ * @ordered
+ */
+ protected FeatureMap mixed;
+
+ /**
+ * The cached value of the '{@link #getXMLNSPrefixMap() <em>XMLNS Prefix
Map</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXMLNSPrefixMap()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xMLNSPrefixMap;
+
+ /**
+ * The cached value of the '{@link #getXSISchemaLocation() <em>XSI Schema
Location</em>}' map.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getXSISchemaLocation()
+ * @generated
+ * @ordered
+ */
+ protected EMap<String, String> xSISchemaLocation;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JsonPackage.Literals.DOCUMENT_ROOT;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureMap getMixed() {
+ if (mixed == null) {
+ mixed = new BasicFeatureMap(this, JsonPackage.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.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.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ }
+ return xSISchemaLocation;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Reader getReader() {
+ return (Reader)getMixed().get(JsonPackage.Literals.DOCUMENT_ROOT__READER, true);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetReader(Reader newReader, NotificationChain msgs) {
+ return
((FeatureMap.Internal)getMixed()).basicAdd(JsonPackage.Literals.DOCUMENT_ROOT__READER,
newReader, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setReader(Reader newReader) {
+ ((FeatureMap.Internal)getMixed()).set(JsonPackage.Literals.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.DOCUMENT_ROOT__MIXED:
+ return ((InternalEList<?>)getMixed()).basicRemove(otherEnd, msgs);
+ case JsonPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return ((InternalEList<?>)getXMLNSPrefixMap()).basicRemove(otherEnd, msgs);
+ case JsonPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return ((InternalEList<?>)getXSISchemaLocation()).basicRemove(otherEnd, msgs);
+ case JsonPackage.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.DOCUMENT_ROOT__MIXED:
+ if (coreType) return getMixed();
+ return ((FeatureMap.Internal)getMixed()).getWrapper();
+ case JsonPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ if (coreType) return getXMLNSPrefixMap();
+ else return getXMLNSPrefixMap().map();
+ case JsonPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ if (coreType) return getXSISchemaLocation();
+ else return getXSISchemaLocation().map();
+ case JsonPackage.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.DOCUMENT_ROOT__MIXED:
+ ((FeatureMap.Internal)getMixed()).set(newValue);
+ return;
+ case JsonPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ ((EStructuralFeature.Setting)getXMLNSPrefixMap()).set(newValue);
+ return;
+ case JsonPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ ((EStructuralFeature.Setting)getXSISchemaLocation()).set(newValue);
+ return;
+ case JsonPackage.DOCUMENT_ROOT__READER:
+ setReader((Reader)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case JsonPackage.DOCUMENT_ROOT__MIXED:
+ getMixed().clear();
+ return;
+ case JsonPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ getXMLNSPrefixMap().clear();
+ return;
+ case JsonPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ getXSISchemaLocation().clear();
+ return;
+ case JsonPackage.DOCUMENT_ROOT__READER:
+ setReader((Reader)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case JsonPackage.DOCUMENT_ROOT__MIXED:
+ return mixed != null && !mixed.isEmpty();
+ case JsonPackage.DOCUMENT_ROOT__XMLNS_PREFIX_MAP:
+ return xMLNSPrefixMap != null && !xMLNSPrefixMap.isEmpty();
+ case JsonPackage.DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:
+ return xSISchemaLocation != null && !xSISchemaLocation.isEmpty();
+ case JsonPackage.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();
+ }
+
+} //DocumentRootImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/DocumentRootImpl.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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonFactory;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.Key;
+import org.jboss.tools.smooks.model.json.KeyMap;
+import org.jboss.tools.smooks.model.json.Reader;
+
+/**
+ * <!-- 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.DOCUMENT_ROOT: return createDocumentRoot();
+ case JsonPackage.KEY: return createKey();
+ case JsonPackage.KEY_MAP: return createKeyMap();
+ case JsonPackage.READER: return createReader();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() +
"' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRoot createDocumentRoot() {
+ DocumentRootImpl documentRoot = new DocumentRootImpl();
+ return documentRoot;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public 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 Reader createReader() {
+ ReaderImpl reader = new ReaderImpl();
+ return reader;
+ }
+
+ /**
+ * <!-- 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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonFactory;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.Key;
+import org.jboss.tools.smooks.model.json.KeyMap;
+import org.jboss.tools.smooks.model.json.Reader;
+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 documentRootEClass = 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 readerEClass = 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 getDocumentRoot() {
+ return documentRootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getDocumentRoot_Mixed() {
+ return (EAttribute)documentRootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XMLNSPrefixMap() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_XSISchemaLocation() {
+ return (EReference)documentRootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getDocumentRoot_Reader() {
+ return (EReference)documentRootEClass.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 getReader() {
+ return readerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getReader_KeyMap() {
+ return (EReference)readerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_ArrayElementName() {
+ return (EAttribute)readerEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_Encoding() {
+ return (EAttribute)readerEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_IllegalElementNameCharReplacement() {
+ return (EAttribute)readerEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_KeyPrefixOnNumeric() {
+ return (EAttribute)readerEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_KeyWhitspaceReplacement() {
+ return (EAttribute)readerEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_NullValueReplacement() {
+ return (EAttribute)readerEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getReader_RootName() {
+ return (EAttribute)readerEClass.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
+ documentRootEClass = createEClass(DOCUMENT_ROOT);
+ createEAttribute(documentRootEClass, DOCUMENT_ROOT__MIXED);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XMLNS_PREFIX_MAP);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__XSI_SCHEMA_LOCATION);
+ createEReference(documentRootEClass, DOCUMENT_ROOT__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);
+
+ readerEClass = createEClass(READER);
+ createEReference(readerEClass, READER__KEY_MAP);
+ createEAttribute(readerEClass, READER__ARRAY_ELEMENT_NAME);
+ createEAttribute(readerEClass, READER__ENCODING);
+ createEAttribute(readerEClass, READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT);
+ createEAttribute(readerEClass, READER__KEY_PREFIX_ON_NUMERIC);
+ createEAttribute(readerEClass, READER__KEY_WHITSPACE_REPLACEMENT);
+ createEAttribute(readerEClass, READER__NULL_VALUE_REPLACEMENT);
+ createEAttribute(readerEClass, 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
+ readerEClass.getESuperTypes().add(theSmooksPackage.getAbstractReader());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(documentRootEClass, DocumentRoot.class, "DocumentRoot",
!IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getDocumentRoot_Mixed(), ecorePackage.getEFeatureMapEntry(),
"mixed", null, 0, -1, null, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
!IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XMLNSPrefixMap(),
ecorePackage.getEStringToStringMapEntry(), null, "xMLNSPrefixMap", null, 0, -1,
null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_XSISchemaLocation(),
ecorePackage.getEStringToStringMapEntry(), null, "xSISchemaLocation", null, 0,
-1, null, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
!IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getDocumentRoot_Reader(), this.getReader(), 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(readerEClass, Reader.class, "JsonReader", !IS_ABSTRACT,
!IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getReader_KeyMap(), this.getKeyMap(), null, "keyMap", null, 0,
1, Reader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
!IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_ArrayElementName(), theXMLTypePackage.getString(),
"arrayElementName", "element", 0, 1, Reader.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_Encoding(), theXMLTypePackage.getString(),
"encoding", "UTF-8", 0, 1, Reader.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_IllegalElementNameCharReplacement(),
theXMLTypePackage.getString(), "illegalElementNameCharReplacement", null, 0, 1,
Reader.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID,
IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_KeyPrefixOnNumeric(), theXMLTypePackage.getString(),
"keyPrefixOnNumeric", null, 0, 1, Reader.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_KeyWhitspaceReplacement(), theXMLTypePackage.getString(),
"keyWhitspaceReplacement", null, 0, 1, Reader.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_NullValueReplacement(), theXMLTypePackage.getString(),
"nullValueReplacement", null, 0, 1, Reader.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getReader_RootName(), theXMLTypePackage.getString(),
"rootName", "json", 0, 1, Reader.class, !IS_TRANSIENT, !IS_VOLATILE,
IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+
+ // Create annotations
+ // http:///org/eclipse/emf/ecore/util/ExtendedMetaData
+ createExtendedMetaDataAnnotations();
+ }
+
+ /**
+ * Initializes the annotations for
<b>http:///org/eclipse/emf/ecore/util/ExtendedMetaData</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void createExtendedMetaDataAnnotations() {
+ String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData";
+ addAnnotation
+ (documentRootEClass,
+ source,
+ new String[] {
+ "name", "",
+ "kind", "mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_Mixed(),
+ source,
+ new String[] {
+ "kind", "elementWildcard",
+ "name", ":mixed"
+ });
+ addAnnotation
+ (getDocumentRoot_XMLNSPrefixMap(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xmlns:prefix"
+ });
+ addAnnotation
+ (getDocumentRoot_XSISchemaLocation(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "xsi:schemaLocation"
+ });
+ addAnnotation
+ (getDocumentRoot_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
+ (readerEClass,
+ source,
+ new String[] {
+ "name", "reader",
+ "kind", "elementOnly"
+ });
+ addAnnotation
+ (getReader_KeyMap(),
+ source,
+ new String[] {
+ "kind", "element",
+ "name", "keyMap",
+ "namespace", "##targetNamespace"
+ });
+ addAnnotation
+ (getReader_ArrayElementName(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "arrayElementName"
+ });
+ addAnnotation
+ (getReader_Encoding(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "encoding"
+ });
+ addAnnotation
+ (getReader_IllegalElementNameCharReplacement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "illegalElementNameCharReplacement"
+ });
+ addAnnotation
+ (getReader_KeyPrefixOnNumeric(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "keyPrefixOnNumeric"
+ });
+ addAnnotation
+ (getReader_KeyWhitspaceReplacement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "keyWhitspaceReplacement"
+ });
+ addAnnotation
+ (getReader_NullValueReplacement(),
+ source,
+ new String[] {
+ "kind", "attribute",
+ "name", "nullValueReplacement"
+ });
+ addAnnotation
+ (getReader_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/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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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/impl/ReaderImpl.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/ReaderImpl.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/ReaderImpl.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.KeyMap;
+import org.jboss.tools.smooks.model.json.Reader;
+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.ReaderImpl#getKeyMap
<em>Key Map</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.ReaderImpl#getArrayElementName <em>Array
Element Name</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.impl.ReaderImpl#getEncoding
<em>Encoding</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.ReaderImpl#getIllegalElementNameCharReplacement
<em>Illegal Element Name Char Replacement</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.ReaderImpl#getKeyPrefixOnNumeric <em>Key
Prefix On Numeric</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.ReaderImpl#getKeyWhitspaceReplacement <em>Key
Whitspace Replacement</em>}</li>
+ * <li>{@link
org.jboss.tools.smooks.model.json.impl.ReaderImpl#getNullValueReplacement <em>Null
Value Replacement</em>}</li>
+ * <li>{@link org.jboss.tools.smooks.model.json.impl.ReaderImpl#getRootName
<em>Root Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ReaderImpl extends AbstractReaderImpl implements Reader {
+ /**
+ * 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 ReaderImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return JsonPackage.Literals.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.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.READER__KEY_MAP, null, msgs);
+ if (newKeyMap != null)
+ msgs = ((InternalEObject)newKeyMap).eInverseAdd(this, EOPPOSITE_FEATURE_BASE -
JsonPackage.READER__KEY_MAP, null, msgs);
+ msgs = basicSetKeyMap(newKeyMap, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, JsonPackage.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.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.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.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.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.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.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.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.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.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.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.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.READER__KEY_MAP:
+ return getKeyMap();
+ case JsonPackage.READER__ARRAY_ELEMENT_NAME:
+ return getArrayElementName();
+ case JsonPackage.READER__ENCODING:
+ return getEncoding();
+ case JsonPackage.READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT:
+ return getIllegalElementNameCharReplacement();
+ case JsonPackage.READER__KEY_PREFIX_ON_NUMERIC:
+ return getKeyPrefixOnNumeric();
+ case JsonPackage.READER__KEY_WHITSPACE_REPLACEMENT:
+ return getKeyWhitspaceReplacement();
+ case JsonPackage.READER__NULL_VALUE_REPLACEMENT:
+ return getNullValueReplacement();
+ case JsonPackage.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.READER__KEY_MAP:
+ setKeyMap((KeyMap)newValue);
+ return;
+ case JsonPackage.READER__ARRAY_ELEMENT_NAME:
+ setArrayElementName((String)newValue);
+ return;
+ case JsonPackage.READER__ENCODING:
+ setEncoding((String)newValue);
+ return;
+ case JsonPackage.READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT:
+ setIllegalElementNameCharReplacement((String)newValue);
+ return;
+ case JsonPackage.READER__KEY_PREFIX_ON_NUMERIC:
+ setKeyPrefixOnNumeric((String)newValue);
+ return;
+ case JsonPackage.READER__KEY_WHITSPACE_REPLACEMENT:
+ setKeyWhitspaceReplacement((String)newValue);
+ return;
+ case JsonPackage.READER__NULL_VALUE_REPLACEMENT:
+ setNullValueReplacement((String)newValue);
+ return;
+ case JsonPackage.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.READER__KEY_MAP:
+ setKeyMap((KeyMap)null);
+ return;
+ case JsonPackage.READER__ARRAY_ELEMENT_NAME:
+ unsetArrayElementName();
+ return;
+ case JsonPackage.READER__ENCODING:
+ unsetEncoding();
+ return;
+ case JsonPackage.READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT:
+ setIllegalElementNameCharReplacement(ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT_EDEFAULT);
+ return;
+ case JsonPackage.READER__KEY_PREFIX_ON_NUMERIC:
+ setKeyPrefixOnNumeric(KEY_PREFIX_ON_NUMERIC_EDEFAULT);
+ return;
+ case JsonPackage.READER__KEY_WHITSPACE_REPLACEMENT:
+ setKeyWhitspaceReplacement(KEY_WHITSPACE_REPLACEMENT_EDEFAULT);
+ return;
+ case JsonPackage.READER__NULL_VALUE_REPLACEMENT:
+ setNullValueReplacement(NULL_VALUE_REPLACEMENT_EDEFAULT);
+ return;
+ case JsonPackage.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.READER__KEY_MAP:
+ return keyMap != null;
+ case JsonPackage.READER__ARRAY_ELEMENT_NAME:
+ return isSetArrayElementName();
+ case JsonPackage.READER__ENCODING:
+ return isSetEncoding();
+ case JsonPackage.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.READER__KEY_PREFIX_ON_NUMERIC:
+ return KEY_PREFIX_ON_NUMERIC_EDEFAULT == null ? keyPrefixOnNumeric != null :
!KEY_PREFIX_ON_NUMERIC_EDEFAULT.equals(keyPrefixOnNumeric);
+ case JsonPackage.READER__KEY_WHITSPACE_REPLACEMENT:
+ return KEY_WHITSPACE_REPLACEMENT_EDEFAULT == null ? keyWhitspaceReplacement != null :
!KEY_WHITSPACE_REPLACEMENT_EDEFAULT.equals(keyWhitspaceReplacement);
+ case JsonPackage.READER__NULL_VALUE_REPLACEMENT:
+ return NULL_VALUE_REPLACEMENT_EDEFAULT == null ? nullValueReplacement != null :
!NULL_VALUE_REPLACEMENT_EDEFAULT.equals(nullValueReplacement);
+ case JsonPackage.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();
+ }
+
+} //ReaderImpl
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/impl/ReaderImpl.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/DocumentRootItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+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.DocumentRoot} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DocumentRootItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DocumentRootItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an
appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link
org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object)
{
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(JsonPackage.Literals.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 DocumentRoot.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/DocumentRoot"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DocumentRoot_type");
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any
cached
+ * children and by creating a viewer notification, which it passes to {@link
#fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(DocumentRoot.class)) {
+ case JsonPackage.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.DOCUMENT_ROOT__READER,
+ JsonFactory.eINSTANCE.createReader()));
+ }
+
+ /**
+ * 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/DocumentRootItemProvider.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
06:07:39 UTC (rev 14717)
@@ -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/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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DocumentRootItemProvider documentRootItemProvider;
+
+ /**
+ * This creates an adapter for a {@link
org.jboss.tools.smooks.model.json.DocumentRoot}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createDocumentRootAdapter() {
+ if (documentRootItemProvider == null) {
+ documentRootItemProvider = new DocumentRootItemProvider(this);
+ }
+
+ return documentRootItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link
org.jboss.tools.smooks.model.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.Reader} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ReaderItemProvider readerItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.jboss.tools.smooks.model.json.Reader}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createReaderAdapter() {
+ if (readerItemProvider == null) {
+ readerItemProvider = new ReaderItemProvider(this);
+ }
+
+ return readerItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this :
parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (documentRootItemProvider != null) documentRootItemProvider.dispose();
+ if (keyItemProvider != null) keyItemProvider.dispose();
+ if (keyMapItemProvider != null) keyMapItemProvider.dispose();
+ if (readerItemProvider != null) readerItemProvider.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/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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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/provider/ReaderItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/ReaderItemProvider.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/json/provider/ReaderItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -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.Reader;
+import org.jboss.tools.smooks.model.smooks.provider.AbstractReaderItemProvider;
+
+/**
+ * This is the item provider adapter for a {@link
org.jboss.tools.smooks.model.json.Reader} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ReaderItemProvider
+ 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 ReaderItemProvider(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_Reader_arrayElementName_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_arrayElementName_feature", "_UI_Json_Reader_type"),
+ JsonPackage.Literals.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_Reader_encoding_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_encoding_feature", "_UI_Json_Reader_type"),
+ JsonPackage.Literals.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_Reader_illegalElementNameCharReplacement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_illegalElementNameCharReplacement_feature",
"_UI_Json_Reader_type"),
+ JsonPackage.Literals.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_Reader_keyPrefixOnNumeric_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_keyPrefixOnNumeric_feature", "_UI_Json_Reader_type"),
+ JsonPackage.Literals.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_Reader_keyWhitspaceReplacement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_keyWhitspaceReplacement_feature",
"_UI_Json_Reader_type"),
+ JsonPackage.Literals.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_Reader_nullValueReplacement_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_nullValueReplacement_feature", "_UI_Json_Reader_type"),
+ JsonPackage.Literals.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_Reader_rootName_feature"),
+ getString("_UI_PropertyDescriptor_description",
"_UI_Reader_rootName_feature", "_UI_Json_Reader_type"),
+ JsonPackage.Literals.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.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 Reader.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object,
getResourceLocator().getImage("full/obj16/Reader"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Reader)object).getArrayElementName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Json_Reader_type") :
+ getString("_UI_Json_Reader_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(Reader.class)) {
+ case JsonPackage.READER__ARRAY_ELEMENT_NAME:
+ case JsonPackage.READER__ENCODING:
+ case JsonPackage.READER__ILLEGAL_ELEMENT_NAME_CHAR_REPLACEMENT:
+ case JsonPackage.READER__KEY_PREFIX_ON_NUMERIC:
+ case JsonPackage.READER__KEY_WHITSPACE_REPLACEMENT:
+ case JsonPackage.READER__NULL_VALUE_REPLACEMENT:
+ case JsonPackage.READER__ROOT_NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
+ return;
+ case JsonPackage.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.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/ReaderItemProvider.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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.Key;
+import org.jboss.tools.smooks.model.json.KeyMap;
+import org.jboss.tools.smooks.model.json.Reader;
+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 caseDocumentRoot(DocumentRoot object) {
+ return createDocumentRootAdapter();
+ }
+ @Override
+ public Adapter caseKey(Key object) {
+ return createKeyAdapter();
+ }
+ @Override
+ public Adapter caseKeyMap(KeyMap object) {
+ return createKeyMapAdapter();
+ }
+ @Override
+ public Adapter caseReader(Reader object) {
+ return createReaderAdapter();
+ }
+ @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.DocumentRoot <em>Document Root</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.jboss.tools.smooks.model.json.DocumentRoot
+ * @generated
+ */
+ public Adapter createDocumentRootAdapter() {
+ 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.Reader <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.Reader
+ * @generated
+ */
+ public Adapter createReaderAdapter() {
+ 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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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
06:07:39 UTC (rev 14717)
@@ -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.DocumentRoot;
+import org.jboss.tools.smooks.model.json.JsonPackage;
+import org.jboss.tools.smooks.model.json.Key;
+import org.jboss.tools.smooks.model.json.KeyMap;
+import org.jboss.tools.smooks.model.json.Reader;
+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.DOCUMENT_ROOT: {
+ DocumentRoot documentRoot = (DocumentRoot)theEObject;
+ T result = caseDocumentRoot(documentRoot);
+ 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.READER: {
+ Reader reader = (Reader)theEObject;
+ T result = caseReader(reader);
+ if (result == null) result = caseAbstractReader(reader);
+ if (result == null) result = caseAbstractResourceConfig(reader);
+ if (result == null) result = caseAbstractAnyType(reader);
+ if (result == null) result = caseAnyType(reader);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of
'<em>Document Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDocumentRoot(DocumentRoot object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of
'<em>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 caseReader(Reader 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
06:07:39 UTC (rev 14717)
@@ -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
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider
(from rev 14691,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider)
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/AbstractReaderItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractReaderItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/AbstractReaderItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/AbstractResourceConfigItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractResourceConfigItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/AbstractResourceConfigItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -19,8 +19,8 @@
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ConditionTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ConditionTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -22,10 +22,10 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.ConditionType;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ConditionsTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionsTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ConditionsTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -21,11 +21,11 @@
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.ConditionsType;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/DocumentRootItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -22,10 +22,10 @@
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.edit.xsl.provider.Xsl1EditPlugin;
import org.jboss.tools.smooks.model.smooks.DocumentRoot;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
/**
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ElementVisitorItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ElementVisitorItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ElementVisitorItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/FeaturesTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/FeaturesTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/FeaturesTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -21,11 +21,11 @@
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.FeaturesType;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/HandlerTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlerTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/HandlerTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -22,10 +22,10 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.HandlerType;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/HandlersTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlersTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/HandlersTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -21,11 +21,11 @@
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.HandlersType;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ImportTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ImportTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ImportTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ParamTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ParamTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -22,10 +22,10 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.ParamType;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ParamsTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamsTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ParamsTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -21,11 +21,11 @@
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.ParamsType;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ProfileTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfileTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ProfileTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -22,10 +22,10 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.ProfileType;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ProfilesTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfilesTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ProfilesTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -21,11 +21,11 @@
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.ProfilesType;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ReaderTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ReaderTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ReaderTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ResourceConfigTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceConfigTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ResourceConfigTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ResourceTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/ResourceTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -22,10 +22,10 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.ResourceType;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SetOffTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOffTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SetOffTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -22,10 +22,10 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.SetOffType;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SetOnTypeItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOnTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SetOnTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.Collection;
@@ -22,10 +22,10 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.smooks.SetOnType;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksItemProviderAdapterFactory.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksItemProviderAdapterFactory.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
import java.util.ArrayList;
import java.util.Collection;
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/edit/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,9 +4,8 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.smooks.provider;
+package org.jboss.tools.smooks.model.smooks.provider;
-
import java.util.Collection;
import java.util.List;
@@ -24,38 +23,43 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.csv.CsvFactory;
+import org.jboss.tools.smooks.model.csv.CsvPackage;
+import org.jboss.tools.smooks.model.dbrouting.DbroutingFactory;
+import org.jboss.tools.smooks.model.dbrouting.DbroutingPackage;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
+import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
import org.jboss.tools.smooks.model.freemarker.FreemarkerFactory;
import org.jboss.tools.smooks.model.freemarker.FreemarkerPackage;
+import org.jboss.tools.smooks.model.iorouting.IoroutingFactory;
+import org.jboss.tools.smooks.model.iorouting.IoroutingPackage;
import org.jboss.tools.smooks.model.javabean.JavabeanFactory;
import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingFactory;
+import org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage;
+import org.jboss.tools.smooks.model.json.JsonFactory;
+import org.jboss.tools.smooks.model.json.JsonPackage;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
import org.jboss.tools.smooks.model.smooks.SmooksPackage;
import org.jboss.tools.smooks.model.smooks.SmooksResourceListType;
import org.jboss.tools.smooks.model.xsl.XslFactory;
import org.jboss.tools.smooks.model.xsl.XslPackage;
+import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
-
-
/**
- * This is the item provider adapter for a {@link smooks.SmooksResourceListType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This is the item provider adapter for a {@link smooks.SmooksResourceListType}
+ * object. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
-public class SmooksResourceListTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
+public class SmooksResourceListTypeItemProvider extends AbstractAnyTypeItemProvider
implements
+ IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider,
+ IItemLabelProvider, IItemPropertySource {
/**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This constructs an instance from a factory and a notifier. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public SmooksResourceListTypeItemProvider(AdapterFactory adapterFactory) {
@@ -63,9 +67,9 @@
}
/**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This returns the property descriptors for the adapted class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -83,98 +87,80 @@
/**
* This adds a property descriptor for the Default Condition Ref feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected void addDefaultConditionRefPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultConditionRef_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultConditionRef_feature",
"_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_CONDITION_REF,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory)
+ .getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_SmooksResourceListType_defaultConditionRef_feature"),
getString(
+ "_UI_PropertyDescriptor_description",
+ "_UI_SmooksResourceListType_defaultConditionRef_feature",
+ "_UI_SmooksResourceListType_type"),
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_CONDITION_REF, true, false,
false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
- * This adds a property descriptor for the Default Selector feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This adds a property descriptor for the Default Selector feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected void addDefaultSelectorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultSelector_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultSelector_feature",
"_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory)
+ .getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_SmooksResourceListType_defaultSelector_feature"),
getString(
+ "_UI_PropertyDescriptor_description",
+ "_UI_SmooksResourceListType_defaultSelector_feature",
+ "_UI_SmooksResourceListType_type"),
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR, true, false,
false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
- * This adds a property descriptor for the Default Selector Namespace feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This adds a property descriptor for the Default Selector Namespace
+ * feature. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected void addDefaultSelectorNamespacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultSelectorNamespace_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultSelectorNamespace_feature",
"_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR_NAMESPACE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory)
+ .getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_SmooksResourceListType_defaultSelectorNamespace_feature"),
getString(
+ "_UI_PropertyDescriptor_description",
+ "_UI_SmooksResourceListType_defaultSelectorNamespace_feature",
+ "_UI_SmooksResourceListType_type"),
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR_NAMESPACE, true,
false,
+ false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
* This adds a property descriptor for the Default Target Profile feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected void addDefaultTargetProfilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SmooksResourceListType_defaultTargetProfile_feature"),
- getString("_UI_PropertyDescriptor_description",
"_UI_SmooksResourceListType_defaultTargetProfile_feature",
"_UI_SmooksResourceListType_type"),
- SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_TARGET_PROFILE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
+ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)
adapterFactory)
+ .getRootAdapterFactory(), getResourceLocator(),
+ getString("_UI_SmooksResourceListType_defaultTargetProfile_feature"),
getString(
+ "_UI_PropertyDescriptor_description",
+ "_UI_SmooksResourceListType_defaultTargetProfile_feature",
+ "_UI_SmooksResourceListType_type"),
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_TARGET_PROFILE, true,
false, false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}
/**
- * 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 -->
+ * 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
@@ -185,28 +171,30 @@
childrenFeatures.add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__CONDITIONS);
childrenFeatures.add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PROFILES);
childrenFeatures.add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP);
- childrenFeatures.add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP);
+ childrenFeatures
+ .add(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP);
}
return childrenFeatures;
}
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- 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
+ // 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 SmooksResourceListType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This returns SmooksResourceListType.gif. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
* @generated
*/
@Override
@@ -215,24 +203,24 @@
}
/**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * This returns the label text for the adapted class. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public String getText(Object object) {
- String label = ((SmooksResourceListType)object).getDefaultSelectorNamespace();
- return label == null || label.length() == 0 ?
- getString("_UI_SmooksResourceListType_type") :
- getString("_UI_SmooksResourceListType_type") + " " + label;
+ String label = ((SmooksResourceListType) object).getDefaultSelectorNamespace();
+ return label == null || label.length() == 0 ?
getString("_UI_SmooksResourceListType_type")
+ : getString("_UI_SmooksResourceListType_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 -->
+ * 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
@@ -240,96 +228,124 @@
updateChildren(notification);
switch (notification.getFeatureID(SmooksResourceListType.class)) {
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_CONDITION_REF:
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR:
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR_NAMESPACE:
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_TARGET_PROFILE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
- return;
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__PARAMS:
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__CONDITIONS:
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__PROFILES:
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP:
- case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
true, false));
- return;
+ case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_CONDITION_REF:
+ case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR:
+ case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_SELECTOR_NAMESPACE:
+ case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__DEFAULT_TARGET_PROFILE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(),
false, true));
+ return;
+ case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__PARAMS:
+ case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__CONDITIONS:
+ case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__PROFILES:
+ case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP:
+ case SmooksPackage.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP:
+ 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 -->
+ * 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
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PARAMS,
- SmooksFactory.eINSTANCE.createParamsType()));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PARAMS, SmooksFactory.eINSTANCE
+ .createParamsType()));
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__CONDITIONS,
- SmooksFactory.eINSTANCE.createConditionsType()));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__CONDITIONS,
SmooksFactory.eINSTANCE
+ .createConditionsType()));
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PROFILES,
- SmooksFactory.eINSTANCE.createProfilesType()));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PROFILES, SmooksFactory.eINSTANCE
+ .createProfilesType()));
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__READER,
- SmooksFactory.eINSTANCE.createReaderType())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
+ .createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__READER, SmooksFactory.eINSTANCE
+ .createReaderType())));
+ // for CSV
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
+ .createEntry(CsvPackage.Literals.DOCUMENT_ROOT__READER, CsvFactory.eINSTANCE
+ .createReader())));
+
+ // for JSON
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_READER_GROUP,
FeatureMapUtil
+ .createEntry(JsonPackage.Literals.DOCUMENT_ROOT__READER, JsonFactory.eINSTANCE
+ .createReader())));
+
+ // for javabean
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
+ FeatureMapUtil.createEntry(JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS,
+ JavabeanFactory.eINSTANCE.createBindingsType())));
+ // for xsl
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
+ FeatureMapUtil.createEntry(XslPackage.Literals.DOCUMENT_ROOT__XSL,
XslFactory.eINSTANCE
+ .createXsl())));
+ // for freemarker
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
+ FeatureMapUtil.createEntry(FreemarkerPackage.Literals.DOCUMENT_ROOT__FREEMARKER,
+ FreemarkerFactory.eINSTANCE.createFreemarker())));
+
+ // for DB routing
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
+ FeatureMapUtil.createEntry(DbroutingPackage.Literals.DOCUMENT_ROOT__EXECUTOR,
+ DbroutingFactory.eINSTANCE.createExecutor())));
+
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
+ FeatureMapUtil.createEntry(DbroutingPackage.Literals.DOCUMENT_ROOT__RESULT_SET_ROW_SELECTOR,
+ DbroutingFactory.eINSTANCE.createResultSetRowSelector())));
+
+ // for IO routing
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
+ FeatureMapUtil.createEntry(IoroutingPackage.Literals.DOCUMENT_ROOT__ROUTER,
+ IoroutingFactory.eINSTANCE.createRouter())));
+
+ // 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())));
+
+ // for File routing
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
+ FeatureMapUtil.createEntry(FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
+ FileRoutingFactory.eINSTANCE.createOutputStream())));
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry
- (JavabeanPackage.Literals.DOCUMENT_ROOT__BINDINGS,
- JavabeanFactory.eINSTANCE.createBindingsType())));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry
- (XslPackage.Literals.DOCUMENT_ROOT__XSL,
- XslFactory.eINSTANCE.createXsl())));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry
- (FreemarkerPackage.Literals.DOCUMENT_ROOT__FREEMARKER,
- FreemarkerFactory.eINSTANCE.createFreemarker())));
+ /***********************************************/
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT,
- SmooksFactory.eINSTANCE.createImportType())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
+ FeatureMapUtil.createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT,
+ SmooksFactory.eINSTANCE.createImportType())));
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
- FeatureMapUtil.createEntry
- (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG,
- SmooksFactory.eINSTANCE.createResourceConfigType())));
+ newChildDescriptors.add(createChildParameter(
+ SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__ABSTRACT_RESOURCE_CONFIG_GROUP,
+ FeatureMapUtil.createEntry(SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG,
+ SmooksFactory.eINSTANCE.createResourceConfigType())));
}
/**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * Return the resource locator for this item provider's resources. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/validate/SmooksModelValidator.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/validate/SmooksModelValidator.java
(rev 0)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/validate/SmooksModelValidator.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -0,0 +1,84 @@
+/*******************************************************************************
+ * 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.model.validate;
+
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.Map;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.util.Diagnostic;
+import org.eclipse.emf.common.util.DiagnosticChain;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.util.Diagnostician;
+import org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain;
+import org.eclipse.emf.edit.domain.EditingDomain;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+
+//import org.eclipse.emf.edit.ui.EMFEditUIPlugin;
+
+/**
+ * @author Dart (dpeng(a)redhat.com)
+ * <p>
+ * Apr 14, 2009
+ */
+public class SmooksModelValidator {
+
+ Collection<?> selectedObjects;
+ EditingDomain domain;
+
+ public SmooksModelValidator(Collection<?> selectedObjects,EditingDomain domain){
+ this.selectedObjects = selectedObjects;
+ this.domain = domain;
+ }
+
+ public Diagnostic validate(final IProgressMonitor progressMonitor) {
+ EObject eObject = (EObject) selectedObjects.iterator().next();
+ int count = 0;
+ for (Iterator<?> i = eObject.eAllContents(); i.hasNext(); i.next()) {
+ ++count;
+ }
+
+ progressMonitor.beginTask("", count);
+
+ final AdapterFactory adapterFactory = domain instanceof AdapterFactoryEditingDomain ?
((AdapterFactoryEditingDomain) domain)
+ .getAdapterFactory()
+ : null;
+
+ Diagnostician diagnostician = new Diagnostician() {
+ @Override
+ public String getObjectLabel(EObject eObject) {
+ if (adapterFactory != null && !eObject.eIsProxy()) {
+ IItemLabelProvider itemLabelProvider = (IItemLabelProvider)
adapterFactory.adapt(eObject,
+ IItemLabelProvider.class);
+ if (itemLabelProvider != null) {
+ return itemLabelProvider.getText(eObject);
+ }
+ }
+
+ return super.getObjectLabel(eObject);
+ }
+
+ @Override
+ public boolean validate(EClass eClass, EObject eObject, DiagnosticChain diagnostics,
+ Map<Object, Object> context) {
+ progressMonitor.worked(1);
+ return super.validate(eClass, eObject, diagnostics, context);
+ }
+ };
+
+ progressMonitor.setTaskName("Validating...");
+
+ return diagnostician.validate(eObject);
+ }
+}
Property changes on:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/validate/SmooksModelValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider
(from rev 14691,
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/xsl/provider)
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/BindToItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/xsl/provider/BindToItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/BindToItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.xsl.provider;
+package org.jboss.tools.smooks.model.xsl.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.xsl.BindTo;
import org.jboss.tools.smooks.model.xsl.XslPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/DocumentRootItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/xsl/provider/DocumentRootItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/DocumentRootItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.xsl.provider;
+package org.jboss.tools.smooks.model.xsl.provider;
import java.util.Collection;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/InlineItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/xsl/provider/InlineItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/InlineItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.xsl.provider;
+package org.jboss.tools.smooks.model.xsl.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.xsl.Inline;
import org.jboss.tools.smooks.model.xsl.InlineDirective;
import org.jboss.tools.smooks.model.xsl.XslPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/OutputToItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/xsl/provider/OutputToItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/OutputToItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.xsl.provider;
+package org.jboss.tools.smooks.model.xsl.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.xsl.OutputTo;
import org.jboss.tools.smooks.model.xsl.XslPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/TemplateItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/xsl/provider/TemplateItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/TemplateItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.xsl.provider;
+package org.jboss.tools.smooks.model.xsl.provider;
import java.util.Collection;
@@ -22,7 +22,7 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.xsl.Template;
import org.jboss.tools.smooks.model.xsl.XslPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/UseItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/xsl/provider/UseItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/UseItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.xsl.provider;
+package org.jboss.tools.smooks.model.xsl.provider;
import java.util.Collection;
@@ -21,7 +21,7 @@
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.common.provider.AbstractAnyTypeItemProvider;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.xsl.Use;
import org.jboss.tools.smooks.model.xsl.XslFactory;
import org.jboss.tools.smooks.model.xsl.XslPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/Xsl1EditPlugin.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/xsl/provider/Xsl1EditPlugin.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/Xsl1EditPlugin.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.xsl.provider;
+package org.jboss.tools.smooks.model.xsl.provider;
import org.eclipse.emf.common.EMFPlugin;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/XslItemProvider.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/xsl/provider/XslItemProvider.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/XslItemProvider.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.xsl.provider;
+package org.jboss.tools.smooks.model.xsl.provider;
import java.util.Collection;
@@ -23,8 +23,8 @@
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.smooks.provider.ElementVisitorItemProvider;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
import org.jboss.tools.smooks.model.xsl.Xsl;
import org.jboss.tools.smooks.model.xsl.XslFactory;
import org.jboss.tools.smooks.model.xsl.XslPackage;
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/XslItemProviderAdapterFactory.java
===================================================================
---
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/xsl/provider/XslItemProviderAdapterFactory.java 2009-04-10
16:56:24 UTC (rev 14691)
+++
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/xsl/provider/XslItemProviderAdapterFactory.java 2009-04-14
06:07:39 UTC (rev 14717)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.xsl.provider;
+package org.jboss.tools.smooks.model.xsl.provider;
import java.util.ArrayList;
import java.util.Collection;