JBoss Tools SVN: r14723 - in trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit: smooks/provider and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-04-14 02:40:37 -0400 (Tue, 14 Apr 2009)
New Revision: 14723
Removed:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyEditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/ScriptTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractReaderItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractResourceConfigItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionsTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ElementVisitorItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/FeaturesTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlerTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlersTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ImportTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamsTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfileTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfilesTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ReaderTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceConfigTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOffTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOnTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksResourceListTypeItemProvider.java
Log:
JBIDE-4171
Delete useless codes
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/DocumentRootItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/DocumentRootItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/DocumentRootItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,174 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.groovy.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.groovy.DocumentRoot;
-import org.jboss.tools.smooks.model.groovy.GroovyFactory;
-import org.jboss.tools.smooks.model.groovy.GroovyPackage;
-
-/**
- * This is the item provider adapter for a {@link groovy.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(GroovyPackage.Literals.DOCUMENT_ROOT__GROOVY);
- childrenFeatures.add(GroovyPackage.Literals.DOCUMENT_ROOT__SCRIPT);
- }
- 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 GroovyPackage.DOCUMENT_ROOT__GROOVY:
- case GroovyPackage.DOCUMENT_ROOT__SCRIPT:
- 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
- (GroovyPackage.Literals.DOCUMENT_ROOT__GROOVY,
- GroovyFactory.eINSTANCE.createGroovy()));
-
- newChildDescriptors.add
- (createChildParameter
- (GroovyPackage.Literals.DOCUMENT_ROOT__SCRIPT,
- GroovyFactory.eINSTANCE.createScriptType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return GroovyEditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyEditPlugin.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyEditPlugin.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyEditPlugin.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,93 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.groovy.provider;
-
-import org.eclipse.emf.common.EMFPlugin;
-
-import org.eclipse.emf.common.util.ResourceLocator;
-
-/**
- * This is the central singleton for the Groovy-1 edit plugin.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public final class GroovyEditPlugin extends EMFPlugin {
- /**
- * Keep track of the singleton.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static final GroovyEditPlugin INSTANCE = new GroovyEditPlugin();
-
- /**
- * 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 GroovyEditPlugin() {
- 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;
- }
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,278 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.groovy.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.groovy.Groovy;
-import org.jboss.tools.smooks.model.groovy.GroovyFactory;
-import org.jboss.tools.smooks.model.groovy.GroovyPackage;
-import org.jboss.tools.smooks.model.smooks.SmooksFactory;
-import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
-
-/**
- * This is the item provider adapter for a {@link groovy.Groovy} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class GroovyItemProvider
- 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 GroovyItemProvider(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);
-
- addImportsPropertyDescriptor(object);
- addExecuteBeforePropertyDescriptor(object);
- addExecuteOnElementPropertyDescriptor(object);
- addExecuteOnElementNSPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Imports feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addImportsPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Groovy_imports_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Groovy_imports_feature", "_UI_Groovy_type"),
- GroovyPackage.Literals.GROOVY__IMPORTS,
- 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_Groovy_executeBefore_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Groovy_executeBefore_feature", "_UI_Groovy_type"),
- GroovyPackage.Literals.GROOVY__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_Groovy_executeOnElement_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Groovy_executeOnElement_feature", "_UI_Groovy_type"),
- GroovyPackage.Literals.GROOVY__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_Groovy_executeOnElementNS_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Groovy_executeOnElementNS_feature", "_UI_Groovy_type"),
- GroovyPackage.Literals.GROOVY__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(GroovyPackage.Literals.GROOVY__PARAM);
- childrenFeatures.add(GroovyPackage.Literals.GROOVY__SCRIPT);
- }
- 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 Groovy.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/Groovy"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Groovy)object).getTargetProfile();
- return label == null || label.length() == 0 ?
- getString("_UI_Groovy_type") :
- getString("_UI_Groovy_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(Groovy.class)) {
- case GroovyPackage.GROOVY__IMPORTS:
- case GroovyPackage.GROOVY__EXECUTE_BEFORE:
- case GroovyPackage.GROOVY__EXECUTE_ON_ELEMENT:
- case GroovyPackage.GROOVY__EXECUTE_ON_ELEMENT_NS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case GroovyPackage.GROOVY__PARAM:
- case GroovyPackage.GROOVY__SCRIPT:
- 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
- (GroovyPackage.Literals.GROOVY__PARAM,
- SmooksFactory.eINSTANCE.createParamType()));
-
- newChildDescriptors.add
- (createChildParameter
- (GroovyPackage.Literals.GROOVY__SCRIPT,
- GroovyFactory.eINSTANCE.createScriptType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return GroovyEditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProviderAdapterFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProviderAdapterFactory.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProviderAdapterFactory.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,249 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.groovy.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.groovy.util.GroovyAdapterFactory;
-
-/**
- * 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 GroovyItemProviderAdapterFactory extends GroovyAdapterFactory 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 GroovyItemProviderAdapterFactory() {
- 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 groovy.DocumentRoot} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DocumentRootItemProvider documentRootItemProvider;
-
- /**
- * This creates an adapter for a {@link groovy.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 groovy.Groovy} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected GroovyItemProvider groovyItemProvider;
-
- /**
- * This creates an adapter for a {@link groovy.Groovy}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createGroovyAdapter() {
- if (groovyItemProvider == null) {
- groovyItemProvider = new GroovyItemProvider(this);
- }
-
- return groovyItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link groovy.ScriptType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ScriptTypeItemProvider scriptTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link groovy.ScriptType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createScriptTypeAdapter() {
- if (scriptTypeItemProvider == null) {
- scriptTypeItemProvider = new ScriptTypeItemProvider(this);
- }
-
- return scriptTypeItemProvider;
- }
-
- /**
- * 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 (groovyItemProvider != null) groovyItemProvider.dispose();
- if (scriptTypeItemProvider != null) scriptTypeItemProvider.dispose();
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/ScriptTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/ScriptTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/ScriptTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,318 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.groovy.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.ecore.xml.type.XMLTypePackage;
-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.groovy.GroovyPackage;
-import org.jboss.tools.smooks.model.groovy.ScriptType;
-
-/**
- * This is the item provider adapter for a {@link groovy.ScriptType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ScriptTypeItemProvider
- 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 ScriptTypeItemProvider(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(XMLTypePackage.Literals.ANY_TYPE__MIXED);
- childrenFeatures.add(XMLTypePackage.Literals.ANY_TYPE__ANY_ATTRIBUTE);
- }
- 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 ScriptType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ScriptType"));
- }
-
- /**
- * 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_ScriptType_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(ScriptType.class)) {
- case GroovyPackage.SCRIPT_TYPE__MIXED:
- case GroovyPackage.SCRIPT_TYPE__ANY_ATTRIBUTE:
- 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
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__COMMENT,
-// "")));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__TEXT,
-// "")));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION,
-// XMLTypeFactory.eINSTANCE.createProcessingInstruction())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (XMLTypePackage.Literals.XML_TYPE_DOCUMENT_ROOT__CDATA,
-// "")));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (GroovyPackage.Literals.DOCUMENT_ROOT__GROOVY,
-// GroovyFactory.eINSTANCE.createGroovy())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (GroovyPackage.Literals.DOCUMENT_ROOT__SCRIPT,
-// GroovyFactory.eINSTANCE.createScriptType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__CONDITION,
-// SmooksFactory.eINSTANCE.createConditionType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__CONDITIONS,
-// SmooksFactory.eINSTANCE.createConditionsType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__FEATURES,
-// SmooksFactory.eINSTANCE.createFeaturesType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__HANDLER,
-// SmooksFactory.eINSTANCE.createHandlerType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__HANDLERS,
-// SmooksFactory.eINSTANCE.createHandlersType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT,
-// SmooksFactory.eINSTANCE.createImportType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__PARAM,
-// SmooksFactory.eINSTANCE.createParamType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__PARAMS,
-// SmooksFactory.eINSTANCE.createParamsType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__PROFILE,
-// SmooksFactory.eINSTANCE.createProfileType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__PROFILES,
-// SmooksFactory.eINSTANCE.createProfilesType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__READER,
-// SmooksFactory.eINSTANCE.createReaderType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE,
-// SmooksFactory.eINSTANCE.createResourceType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG,
-// SmooksFactory.eINSTANCE.createResourceConfigType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__SET_OFF,
-// SmooksFactory.eINSTANCE.createSetOffType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__SET_ON,
-// SmooksFactory.eINSTANCE.createSetOnType())));
-//
-// newChildDescriptors.add
-// (createChildParameter
-// (XMLTypePackage.Literals.ANY_TYPE__MIXED,
-// FeatureMapUtil.createEntry
-// (SmooksPackage.Literals.DOCUMENT_ROOT__SMOOKS_RESOURCE_LIST,
-// SmooksFactory.eINSTANCE.createSmooksResourceListType())));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return GroovyEditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractReaderItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractReaderItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractReaderItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,134 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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.smooks.AbstractReader;
-import org.jboss.tools.smooks.model.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link smooks.AbstractReader} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class AbstractReaderItemProvider
- extends AbstractResourceConfigItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AbstractReaderItemProvider(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);
-
- addTargetProfilePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Target Profile feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addTargetProfilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_AbstractReader_targetProfile_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_AbstractReader_targetProfile_feature", "_UI_AbstractReader_type"),
- SmooksPackage.Literals.ABSTRACT_READER__TARGET_PROFILE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((AbstractReader)object).getTargetProfile();
- return label == null || label.length() == 0 ?
- getString("_UI_AbstractReader_type") :
- getString("_UI_AbstractReader_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(AbstractReader.class)) {
- case SmooksPackage.ABSTRACT_READER__TARGET_PROFILE:
- 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);
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractResourceConfigItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractResourceConfigItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractResourceConfigItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,113 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
-import org.jboss.tools.smooks.model.xsl.provider.Xsl1EditPlugin;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.AbstractResourceConfig} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class AbstractResourceConfigItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public AbstractResourceConfigItemProvider(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 returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- return getString("_UI_AbstractResourceConfig_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);
- 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 Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,233 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.ConditionType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ConditionTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ConditionTypeItemProvider(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);
- addEvaluatorPropertyDescriptor(object);
- addIdPropertyDescriptor(object);
- addIdRefPropertyDescriptor(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_ConditionType_value_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ConditionType_value_feature", "_UI_ConditionType_type"),
- SmooksPackage.Literals.CONDITION_TYPE__VALUE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Evaluator feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addEvaluatorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ConditionType_evaluator_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ConditionType_evaluator_feature", "_UI_ConditionType_type"),
- SmooksPackage.Literals.CONDITION_TYPE__EVALUATOR,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Id feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ConditionType_id_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ConditionType_id_feature", "_UI_ConditionType_type"),
- SmooksPackage.Literals.CONDITION_TYPE__ID,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Id Ref feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addIdRefPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ConditionType_idRef_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ConditionType_idRef_feature", "_UI_ConditionType_type"),
- SmooksPackage.Literals.CONDITION_TYPE__ID_REF,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns ConditionType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ConditionType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ConditionType)object).getId();
- return label == null || label.length() == 0 ?
- getString("_UI_ConditionType_type") :
- getString("_UI_ConditionType_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(ConditionType.class)) {
- case SmooksPackage.CONDITION_TYPE__VALUE:
- case SmooksPackage.CONDITION_TYPE__EVALUATOR:
- case SmooksPackage.CONDITION_TYPE__ID:
- case SmooksPackage.CONDITION_TYPE__ID_REF:
- 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 Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionsTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionsTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionsTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,170 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.ViewerNotification;
-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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.ConditionsType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ConditionsTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ConditionsTypeItemProvider(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(SmooksPackage.Literals.CONDITIONS_TYPE__CONDITION);
- }
- 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 ConditionsType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ConditionsType"));
- }
-
- /**
- * 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_ConditionsType_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(ConditionsType.class)) {
- case SmooksPackage.CONDITIONS_TYPE__CONDITION:
- 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
- (SmooksPackage.Literals.CONDITIONS_TYPE__CONDITION,
- SmooksFactory.eINSTANCE.createConditionType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/DocumentRootItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/DocumentRootItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/DocumentRootItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,280 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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;
-
-
-/**
- * This is the item provider adapter for a {@link smooks.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(SmooksPackage.Literals.DOCUMENT_ROOT__ABSTRACT_READER);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__ABSTRACT_RESOURCE_CONFIG);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__CONDITION);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__CONDITIONS);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__ELEMENT_VISITOR);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__FEATURES);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__HANDLER);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__HANDLERS);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__PARAM);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__PARAMS);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__PROFILE);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__PROFILES);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__READER);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__SET_OFF);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__SET_ON);
- childrenFeatures.add(SmooksPackage.Literals.DOCUMENT_ROOT__SMOOKS_RESOURCE_LIST);
- }
- 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 SmooksPackage.DOCUMENT_ROOT__ABSTRACT_READER:
- case SmooksPackage.DOCUMENT_ROOT__ABSTRACT_RESOURCE_CONFIG:
- case SmooksPackage.DOCUMENT_ROOT__CONDITION:
- case SmooksPackage.DOCUMENT_ROOT__CONDITIONS:
- case SmooksPackage.DOCUMENT_ROOT__ELEMENT_VISITOR:
- case SmooksPackage.DOCUMENT_ROOT__FEATURES:
- case SmooksPackage.DOCUMENT_ROOT__HANDLER:
- case SmooksPackage.DOCUMENT_ROOT__HANDLERS:
- case SmooksPackage.DOCUMENT_ROOT__IMPORT:
- case SmooksPackage.DOCUMENT_ROOT__PARAM:
- case SmooksPackage.DOCUMENT_ROOT__PARAMS:
- case SmooksPackage.DOCUMENT_ROOT__PROFILE:
- case SmooksPackage.DOCUMENT_ROOT__PROFILES:
- case SmooksPackage.DOCUMENT_ROOT__READER:
- case SmooksPackage.DOCUMENT_ROOT__RESOURCE:
- case SmooksPackage.DOCUMENT_ROOT__RESOURCE_CONFIG:
- case SmooksPackage.DOCUMENT_ROOT__SET_OFF:
- case SmooksPackage.DOCUMENT_ROOT__SET_ON:
- case SmooksPackage.DOCUMENT_ROOT__SMOOKS_RESOURCE_LIST:
- 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
- (SmooksPackage.Literals.DOCUMENT_ROOT__CONDITION,
- SmooksFactory.eINSTANCE.createConditionType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__CONDITIONS,
- SmooksFactory.eINSTANCE.createConditionsType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__FEATURES,
- SmooksFactory.eINSTANCE.createFeaturesType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__HANDLER,
- SmooksFactory.eINSTANCE.createHandlerType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__HANDLERS,
- SmooksFactory.eINSTANCE.createHandlersType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__IMPORT,
- SmooksFactory.eINSTANCE.createImportType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__PARAM,
- SmooksFactory.eINSTANCE.createParamType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__PARAMS,
- SmooksFactory.eINSTANCE.createParamsType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__PROFILE,
- SmooksFactory.eINSTANCE.createProfileType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__PROFILES,
- SmooksFactory.eINSTANCE.createProfilesType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__READER,
- SmooksFactory.eINSTANCE.createReaderType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE,
- SmooksFactory.eINSTANCE.createResourceType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__RESOURCE_CONFIG,
- SmooksFactory.eINSTANCE.createResourceConfigType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__SET_OFF,
- SmooksFactory.eINSTANCE.createSetOffType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__SET_ON,
- SmooksFactory.eINSTANCE.createSetOnType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.DOCUMENT_ROOT__SMOOKS_RESOURCE_LIST,
- SmooksFactory.eINSTANCE.createSmooksResourceListType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ElementVisitorItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ElementVisitorItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ElementVisitorItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,174 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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.smooks.ElementVisitor;
-import org.jboss.tools.smooks.model.smooks.SmooksFactory;
-import org.jboss.tools.smooks.model.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link smooks.ElementVisitor} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ElementVisitorItemProvider
- extends AbstractResourceConfigItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ElementVisitorItemProvider(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);
-
- addTargetProfilePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Target Profile feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addTargetProfilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ElementVisitor_targetProfile_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ElementVisitor_targetProfile_feature", "_UI_ElementVisitor_type"),
- SmooksPackage.Literals.ELEMENT_VISITOR__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 -->
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(SmooksPackage.Literals.ELEMENT_VISITOR__CONDITION);
- }
- 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 the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ElementVisitor)object).getTargetProfile();
- return label == null || label.length() == 0 ?
- getString("_UI_ElementVisitor_type") :
- getString("_UI_ElementVisitor_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(ElementVisitor.class)) {
- case SmooksPackage.ELEMENT_VISITOR__TARGET_PROFILE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case SmooksPackage.ELEMENT_VISITOR__CONDITION:
- 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
- (SmooksPackage.Literals.ELEMENT_VISITOR__CONDITION,
- SmooksFactory.eINSTANCE.createConditionType()));
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/FeaturesTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/FeaturesTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/FeaturesTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,177 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.ViewerNotification;
-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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.FeaturesType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class FeaturesTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public FeaturesTypeItemProvider(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(SmooksPackage.Literals.FEATURES_TYPE__SET_ON);
- childrenFeatures.add(SmooksPackage.Literals.FEATURES_TYPE__SET_OFF);
- }
- 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 FeaturesType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/FeaturesType"));
- }
-
- /**
- * 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_FeaturesType_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(FeaturesType.class)) {
- case SmooksPackage.FEATURES_TYPE__SET_ON:
- case SmooksPackage.FEATURES_TYPE__SET_OFF:
- 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
- (SmooksPackage.Literals.FEATURES_TYPE__SET_ON,
- SmooksFactory.eINSTANCE.createSetOnType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.FEATURES_TYPE__SET_OFF,
- SmooksFactory.eINSTANCE.createSetOffType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlerTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlerTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlerTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,161 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.HandlerType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class HandlerTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HandlerTypeItemProvider(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);
-
- addClassPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Class feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addClassPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_HandlerType_class_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_HandlerType_class_feature", "_UI_HandlerType_type"),
- SmooksPackage.Literals.HANDLER_TYPE__CLASS,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns HandlerType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/HandlerType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((HandlerType)object).getClass_();
- return label == null || label.length() == 0 ?
- getString("_UI_HandlerType_type") :
- getString("_UI_HandlerType_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(HandlerType.class)) {
- case SmooksPackage.HANDLER_TYPE__CLASS:
- 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 Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlersTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlersTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlersTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,170 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.ViewerNotification;
-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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.HandlersType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class HandlersTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public HandlersTypeItemProvider(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(SmooksPackage.Literals.HANDLERS_TYPE__HANDLER);
- }
- 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 HandlersType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/HandlersType"));
- }
-
- /**
- * 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_HandlersType_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(HandlersType.class)) {
- case SmooksPackage.HANDLERS_TYPE__HANDLER:
- 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
- (SmooksPackage.Literals.HANDLERS_TYPE__HANDLER,
- SmooksFactory.eINSTANCE.createHandlerType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ImportTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ImportTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ImportTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,185 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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.smooks.ImportType;
-import org.jboss.tools.smooks.model.smooks.SmooksFactory;
-import org.jboss.tools.smooks.model.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link smooks.ImportType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ImportTypeItemProvider
- extends AbstractResourceConfigItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ImportTypeItemProvider(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);
-
- addFilePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the File feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addFilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ImportType_file_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ImportType_file_feature", "_UI_ImportType_type"),
- SmooksPackage.Literals.IMPORT_TYPE__FILE,
- 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(SmooksPackage.Literals.IMPORT_TYPE__PARAM);
- }
- 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 ImportType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ImportType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ImportType)object).getFile();
- return label == null || label.length() == 0 ?
- getString("_UI_ImportType_type") :
- getString("_UI_ImportType_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(ImportType.class)) {
- case SmooksPackage.IMPORT_TYPE__FILE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case SmooksPackage.IMPORT_TYPE__PARAM:
- 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
- (SmooksPackage.Literals.IMPORT_TYPE__PARAM,
- SmooksFactory.eINSTANCE.createParamType()));
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,185 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.ParamType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ParamTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ParamTypeItemProvider(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);
- addTypePropertyDescriptor(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_ParamType_name_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ParamType_name_feature", "_UI_ParamType_type"),
- SmooksPackage.Literals.PARAM_TYPE__NAME,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_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_ParamType_type_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ParamType_type_feature", "_UI_ParamType_type"),
- SmooksPackage.Literals.PARAM_TYPE__TYPE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns ParamType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ParamType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ParamType)object).getName();
- return label == null || label.length() == 0 ?
- getString("_UI_ParamType_type") :
- getString("_UI_ParamType_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(ParamType.class)) {
- case SmooksPackage.PARAM_TYPE__NAME:
- case SmooksPackage.PARAM_TYPE__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 Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamsTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamsTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamsTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,170 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.ViewerNotification;
-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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.ParamsType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ParamsTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ParamsTypeItemProvider(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(SmooksPackage.Literals.PARAMS_TYPE__PARAM);
- }
- 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 ParamsType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ParamsType"));
- }
-
- /**
- * 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_ParamsType_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(ParamsType.class)) {
- case SmooksPackage.PARAMS_TYPE__PARAM:
- 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
- (SmooksPackage.Literals.PARAMS_TYPE__PARAM,
- SmooksFactory.eINSTANCE.createParamType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfileTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfileTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfileTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,209 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.ProfileType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ProfileTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ProfileTypeItemProvider(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);
- addBaseProfilePropertyDescriptor(object);
- addSubProfilesPropertyDescriptor(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_ProfileType_value_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ProfileType_value_feature", "_UI_ProfileType_type"),
- SmooksPackage.Literals.PROFILE_TYPE__VALUE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Base Profile feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addBaseProfilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ProfileType_baseProfile_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ProfileType_baseProfile_feature", "_UI_ProfileType_type"),
- SmooksPackage.Literals.PROFILE_TYPE__BASE_PROFILE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Sub Profiles feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addSubProfilesPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ProfileType_subProfiles_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ProfileType_subProfiles_feature", "_UI_ProfileType_type"),
- SmooksPackage.Literals.PROFILE_TYPE__SUB_PROFILES,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns ProfileType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ProfileType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ProfileType)object).getValue();
- return label == null || label.length() == 0 ?
- getString("_UI_ProfileType_type") :
- getString("_UI_ProfileType_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(ProfileType.class)) {
- case SmooksPackage.PROFILE_TYPE__VALUE:
- case SmooksPackage.PROFILE_TYPE__BASE_PROFILE:
- case SmooksPackage.PROFILE_TYPE__SUB_PROFILES:
- 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 Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfilesTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfilesTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfilesTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,170 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.ViewerNotification;
-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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.ProfilesType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ProfilesTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ProfilesTypeItemProvider(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(SmooksPackage.Literals.PROFILES_TYPE__PROFILE);
- }
- 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 ProfilesType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ProfilesType"));
- }
-
- /**
- * 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_ProfilesType_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(ProfilesType.class)) {
- case SmooksPackage.PROFILES_TYPE__PROFILE:
- 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
- (SmooksPackage.Literals.PROFILES_TYPE__PROFILE,
- SmooksFactory.eINSTANCE.createProfileType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ReaderTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ReaderTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ReaderTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,199 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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.smooks.ReaderType;
-import org.jboss.tools.smooks.model.smooks.SmooksFactory;
-import org.jboss.tools.smooks.model.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link smooks.ReaderType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ReaderTypeItemProvider
- 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 ReaderTypeItemProvider(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);
-
- addClassPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Class feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addClassPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ReaderType_class_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ReaderType_class_feature", "_UI_ReaderType_type"),
- SmooksPackage.Literals.READER_TYPE__CLASS,
- 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(SmooksPackage.Literals.READER_TYPE__HANDLERS);
- childrenFeatures.add(SmooksPackage.Literals.READER_TYPE__FEATURES);
- childrenFeatures.add(SmooksPackage.Literals.READER_TYPE__PARAMS);
- }
- 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 ReaderType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ReaderType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ReaderType)object).getTargetProfile();
- return label == null || label.length() == 0 ?
- getString("_UI_ReaderType_type") :
- getString("_UI_ReaderType_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(ReaderType.class)) {
- case SmooksPackage.READER_TYPE__CLASS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case SmooksPackage.READER_TYPE__HANDLERS:
- case SmooksPackage.READER_TYPE__FEATURES:
- case SmooksPackage.READER_TYPE__PARAMS:
- 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
- (SmooksPackage.Literals.READER_TYPE__HANDLERS,
- SmooksFactory.eINSTANCE.createHandlersType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.READER_TYPE__FEATURES,
- SmooksFactory.eINSTANCE.createFeaturesType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.READER_TYPE__PARAMS,
- SmooksFactory.eINSTANCE.createParamsType()));
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceConfigTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceConfigTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceConfigTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,247 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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.smooks.ResourceConfigType;
-import org.jboss.tools.smooks.model.smooks.SmooksFactory;
-import org.jboss.tools.smooks.model.smooks.SmooksPackage;
-
-/**
- * This is the item provider adapter for a {@link smooks.ResourceConfigType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ResourceConfigTypeItemProvider
- extends AbstractResourceConfigItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResourceConfigTypeItemProvider(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);
-
- addSelectorPropertyDescriptor(object);
- addSelectorNamespacePropertyDescriptor(object);
- addTargetProfilePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Selector feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addSelectorPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ResourceConfigType_selector_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ResourceConfigType_selector_feature", "_UI_ResourceConfigType_type"),
- SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__SELECTOR,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Selector Namespace feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addSelectorNamespacePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ResourceConfigType_selectorNamespace_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ResourceConfigType_selectorNamespace_feature", "_UI_ResourceConfigType_type"),
- SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__SELECTOR_NAMESPACE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This adds a property descriptor for the Target Profile feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addTargetProfilePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_ResourceConfigType_targetProfile_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ResourceConfigType_targetProfile_feature", "_UI_ResourceConfigType_type"),
- SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__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 -->
- * @generated
- */
- @Override
- public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
- if (childrenFeatures == null) {
- super.getChildrenFeatures(object);
- childrenFeatures.add(SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__RESOURCE);
- childrenFeatures.add(SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__CONDITION);
- childrenFeatures.add(SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__PARAM);
- }
- 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 ResourceConfigType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ResourceConfigType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ResourceConfigType)object).getSelectorNamespace();
- return label == null || label.length() == 0 ?
- getString("_UI_ResourceConfigType_type") :
- getString("_UI_ResourceConfigType_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(ResourceConfigType.class)) {
- case SmooksPackage.RESOURCE_CONFIG_TYPE__SELECTOR:
- case SmooksPackage.RESOURCE_CONFIG_TYPE__SELECTOR_NAMESPACE:
- case SmooksPackage.RESOURCE_CONFIG_TYPE__TARGET_PROFILE:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case SmooksPackage.RESOURCE_CONFIG_TYPE__RESOURCE:
- case SmooksPackage.RESOURCE_CONFIG_TYPE__CONDITION:
- case SmooksPackage.RESOURCE_CONFIG_TYPE__PARAM:
- 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
- (SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__RESOURCE,
- SmooksFactory.eINSTANCE.createResourceType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__CONDITION,
- SmooksFactory.eINSTANCE.createConditionType()));
-
- newChildDescriptors.add
- (createChildParameter
- (SmooksPackage.Literals.RESOURCE_CONFIG_TYPE__PARAM,
- SmooksFactory.eINSTANCE.createParamType()));
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,185 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.ResourceType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class ResourceTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ResourceTypeItemProvider(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);
- addTypePropertyDescriptor(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_ResourceType_value_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ResourceType_value_feature", "_UI_ResourceType_type"),
- SmooksPackage.Literals.RESOURCE_TYPE__VALUE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_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_ResourceType_type_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_ResourceType_type_feature", "_UI_ResourceType_type"),
- SmooksPackage.Literals.RESOURCE_TYPE__TYPE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns ResourceType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/ResourceType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((ResourceType)object).getValue();
- return label == null || label.length() == 0 ?
- getString("_UI_ResourceType_type") :
- getString("_UI_ResourceType_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(ResourceType.class)) {
- case SmooksPackage.RESOURCE_TYPE__VALUE:
- case SmooksPackage.RESOURCE_TYPE__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 Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOffTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOffTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOffTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,161 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.SetOffType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class SetOffTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SetOffTypeItemProvider(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);
-
- addFeaturePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Feature feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addFeaturePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SetOffType_feature_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_SetOffType_feature_feature", "_UI_SetOffType_type"),
- SmooksPackage.Literals.SET_OFF_TYPE__FEATURE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns SetOffType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/SetOffType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((SetOffType)object).getFeature();
- return label == null || label.length() == 0 ?
- getString("_UI_SetOffType_type") :
- getString("_UI_SetOffType_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(SetOffType.class)) {
- case SmooksPackage.SET_OFF_TYPE__FEATURE:
- 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 Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOnTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOnTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOnTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,161 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.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;
-
-
-
-/**
- * This is the item provider adapter for a {@link smooks.SetOnType} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class SetOnTypeItemProvider
- extends AbstractAnyTypeItemProvider
- implements
- IEditingDomainItemProvider,
- IStructuredItemContentProvider,
- ITreeItemContentProvider,
- IItemLabelProvider,
- IItemPropertySource {
- /**
- * This constructs an instance from a factory and a notifier.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public SetOnTypeItemProvider(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);
-
- addFeaturePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Feature feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addFeaturePropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SetOnType_feature_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_SetOnType_feature_feature", "_UI_SetOnType_type"),
- SmooksPackage.Literals.SET_ON_TYPE__FEATURE,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
-
- /**
- * This returns SetOnType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/SetOnType"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((SetOnType)object).getFeature();
- return label == null || label.length() == 0 ?
- getString("_UI_SetOnType_type") :
- getString("_UI_SetOnType_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(SetOnType.class)) {
- case SmooksPackage.SET_ON_TYPE__FEATURE:
- 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 Xsl1EditPlugin.INSTANCE;
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksItemProviderAdapterFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksItemProviderAdapterFactory.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksItemProviderAdapterFactory.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,585 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.smooks.util.SmooksAdapterFactory;
-
-/**
- * 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 SmooksItemProviderAdapterFactory extends SmooksAdapterFactory 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 SmooksItemProviderAdapterFactory() {
- 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 smooks.ConditionsType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ConditionsTypeItemProvider conditionsTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.ConditionsType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createConditionsTypeAdapter() {
- if (conditionsTypeItemProvider == null) {
- conditionsTypeItemProvider = new ConditionsTypeItemProvider(this);
- }
-
- return conditionsTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.ConditionType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ConditionTypeItemProvider conditionTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.ConditionType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createConditionTypeAdapter() {
- if (conditionTypeItemProvider == null) {
- conditionTypeItemProvider = new ConditionTypeItemProvider(this);
- }
-
- return conditionTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.DocumentRoot} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DocumentRootItemProvider documentRootItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.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 smooks.FeaturesType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected FeaturesTypeItemProvider featuresTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.FeaturesType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createFeaturesTypeAdapter() {
- if (featuresTypeItemProvider == null) {
- featuresTypeItemProvider = new FeaturesTypeItemProvider(this);
- }
-
- return featuresTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.HandlersType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected HandlersTypeItemProvider handlersTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.HandlersType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createHandlersTypeAdapter() {
- if (handlersTypeItemProvider == null) {
- handlersTypeItemProvider = new HandlersTypeItemProvider(this);
- }
-
- return handlersTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.HandlerType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected HandlerTypeItemProvider handlerTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.HandlerType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createHandlerTypeAdapter() {
- if (handlerTypeItemProvider == null) {
- handlerTypeItemProvider = new HandlerTypeItemProvider(this);
- }
-
- return handlerTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.ImportType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ImportTypeItemProvider importTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.ImportType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createImportTypeAdapter() {
- if (importTypeItemProvider == null) {
- importTypeItemProvider = new ImportTypeItemProvider(this);
- }
-
- return importTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.ParamsType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ParamsTypeItemProvider paramsTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.ParamsType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createParamsTypeAdapter() {
- if (paramsTypeItemProvider == null) {
- paramsTypeItemProvider = new ParamsTypeItemProvider(this);
- }
-
- return paramsTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.ParamType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ParamTypeItemProvider paramTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.ParamType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createParamTypeAdapter() {
- if (paramTypeItemProvider == null) {
- paramTypeItemProvider = new ParamTypeItemProvider(this);
- }
-
- return paramTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.ProfilesType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ProfilesTypeItemProvider profilesTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.ProfilesType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createProfilesTypeAdapter() {
- if (profilesTypeItemProvider == null) {
- profilesTypeItemProvider = new ProfilesTypeItemProvider(this);
- }
-
- return profilesTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.ProfileType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ProfileTypeItemProvider profileTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.ProfileType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createProfileTypeAdapter() {
- if (profileTypeItemProvider == null) {
- profileTypeItemProvider = new ProfileTypeItemProvider(this);
- }
-
- return profileTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.ReaderType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ReaderTypeItemProvider readerTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.ReaderType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createReaderTypeAdapter() {
- if (readerTypeItemProvider == null) {
- readerTypeItemProvider = new ReaderTypeItemProvider(this);
- }
-
- return readerTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.ResourceConfigType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ResourceConfigTypeItemProvider resourceConfigTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.ResourceConfigType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createResourceConfigTypeAdapter() {
- if (resourceConfigTypeItemProvider == null) {
- resourceConfigTypeItemProvider = new ResourceConfigTypeItemProvider(this);
- }
-
- return resourceConfigTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.ResourceType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ResourceTypeItemProvider resourceTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.ResourceType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createResourceTypeAdapter() {
- if (resourceTypeItemProvider == null) {
- resourceTypeItemProvider = new ResourceTypeItemProvider(this);
- }
-
- return resourceTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.SetOffType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SetOffTypeItemProvider setOffTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.SetOffType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createSetOffTypeAdapter() {
- if (setOffTypeItemProvider == null) {
- setOffTypeItemProvider = new SetOffTypeItemProvider(this);
- }
-
- return setOffTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.SetOnType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SetOnTypeItemProvider setOnTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.SetOnType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createSetOnTypeAdapter() {
- if (setOnTypeItemProvider == null) {
- setOnTypeItemProvider = new SetOnTypeItemProvider(this);
- }
-
- return setOnTypeItemProvider;
- }
-
- /**
- * This keeps track of the one adapter used for all {@link smooks.SmooksResourceListType} instances.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected SmooksResourceListTypeItemProvider smooksResourceListTypeItemProvider;
-
- /**
- * This creates an adapter for a {@link smooks.SmooksResourceListType}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Adapter createSmooksResourceListTypeAdapter() {
- if (smooksResourceListTypeItemProvider == null) {
- smooksResourceListTypeItemProvider = new SmooksResourceListTypeItemProvider(this);
- }
-
- return smooksResourceListTypeItemProvider;
- }
-
- /**
- * 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 (conditionsTypeItemProvider != null) conditionsTypeItemProvider.dispose();
- if (conditionTypeItemProvider != null) conditionTypeItemProvider.dispose();
- if (documentRootItemProvider != null) documentRootItemProvider.dispose();
- if (featuresTypeItemProvider != null) featuresTypeItemProvider.dispose();
- if (handlersTypeItemProvider != null) handlersTypeItemProvider.dispose();
- if (handlerTypeItemProvider != null) handlerTypeItemProvider.dispose();
- if (importTypeItemProvider != null) importTypeItemProvider.dispose();
- if (paramsTypeItemProvider != null) paramsTypeItemProvider.dispose();
- if (paramTypeItemProvider != null) paramTypeItemProvider.dispose();
- if (profilesTypeItemProvider != null) profilesTypeItemProvider.dispose();
- if (profileTypeItemProvider != null) profileTypeItemProvider.dispose();
- if (readerTypeItemProvider != null) readerTypeItemProvider.dispose();
- if (resourceConfigTypeItemProvider != null) resourceConfigTypeItemProvider.dispose();
- if (resourceTypeItemProvider != null) resourceTypeItemProvider.dispose();
- if (setOffTypeItemProvider != null) setOffTypeItemProvider.dispose();
- if (setOnTypeItemProvider != null) setOnTypeItemProvider.dispose();
- if (smooksResourceListTypeItemProvider != null) smooksResourceListTypeItemProvider.dispose();
- }
-
-}
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksResourceListTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-04-14 06:32:09 UTC (rev 14722)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-04-14 06:40:37 UTC (rev 14723)
@@ -1,349 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.smooks.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.ecore.util.FeatureMapUtil;
-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.common.provider.AbstractAnyTypeItemProvider;
-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.javabean.JavabeanFactory;
-import org.jboss.tools.smooks.model.javabean.JavabeanPackage;
-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 -->
- * @generated
- */
-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 -->
- * @generated
- */
- public SmooksResourceListTypeItemProvider(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);
-
- addDefaultConditionRefPropertyDescriptor(object);
- addDefaultSelectorPropertyDescriptor(object);
- addDefaultSelectorNamespacePropertyDescriptor(object);
- addDefaultTargetProfilePropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Default Condition Ref feature.
- * <!-- 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));
- }
-
- /**
- * 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));
- }
-
- /**
- * 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));
- }
-
- /**
- * This adds a property descriptor for the Default Target Profile feature.
- * <!-- 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));
- }
-
- /**
- * 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(SmooksPackage.Literals.SMOOKS_RESOURCE_LIST_TYPE__PARAMS);
- 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);
- }
- 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 SmooksResourceListType.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/SmooksResourceListType"));
- }
-
- /**
- * 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;
- }
-
- /**
- * 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(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;
- }
- 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
- (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__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_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
- (FileRoutingPackage.Literals.DOCUMENT_ROOT__OUTPUT_STREAM,
- FileRoutingFactory.eINSTANCE.createOutputStream())));
-
- 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__RESOURCE_CONFIG,
- SmooksFactory.eINSTANCE.createResourceConfigType())));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return Xsl1EditPlugin.INSTANCE;
- }
-
-}
15 years, 8 months
JBoss Tools SVN: r14722 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui: src/org/jboss/tools/smooks/configuration/editors and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-04-14 02:32:09 -0400 (Tue, 14 Apr 2009)
New Revision: 14722
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.properties
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffPropertyDetailPage.java
Log:
JBIDE-4171
Modify UI codes
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.properties 2009-04-14 06:27:09 UTC (rev 14721)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/plugin.properties 2009-04-14 06:32:09 UTC (rev 14722)
@@ -66,6 +66,7 @@
_UI_FileConflict_label = File Conflict
_WARN_FileConflict = There are unsaved changes that conflict with changes made outside the editor. Do you wish to discard this editor's changes?
+# For FreeMarker
_UI_FreemarkerEditor_menu = &Freemarker Editor
_UI_SmooksEditor_menu = &Smooks Editor
_UI_FreemarkerModelWizard_label = Freemarker Model
@@ -73,11 +74,14 @@
_UI_FreemarkerEditor_label = Freemarker Model Editor
_UI_FreemarkerEditorFilenameDefaultBase = My
_UI_FreemarkerEditorFilenameExtensions = freemarker
+
_UI_SmooksModelWizard_label = Smooks Model
_UI_SmooksModelWizard_description = Create a new Smooks model
_UI_SmooksEditor_label = Smooks Model Editor
_UI_SmooksEditorFilenameDefaultBase = My
_UI_SmooksEditorFilenameExtensions = smooks
+
+# For Javabean
_UI_JavabeanEditor_menu = &Javabean Editor
_UI_JavabeanModelWizard_label = Javabean Model
_UI_JavabeanModelWizard_description = Create a new Javabean model
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java 2009-04-14 06:27:09 UTC (rev 14721)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksMultiFormEditor.java 2009-04-14 06:32:09 UTC (rev 14722)
@@ -61,15 +61,20 @@
import org.jboss.tools.smooks.configuration.SmooksConstants;
import org.jboss.tools.smooks.configuration.editors.uitls.SmooksUIUtils;
import org.jboss.tools.smooks.configuration.wizards.SmooksConfigurationFileNewWizard;
-import org.jboss.tools.smooks.edit.common.provider.CommonItemProviderAdapterFactory;
-import org.jboss.tools.smooks.edit.edi.provider.EdiItemProviderAdapterFactory;
-import org.jboss.tools.smooks.edit.fileRouting.provider.FileRoutingItemProviderAdapterFactory;
-import org.jboss.tools.smooks.edit.freemarker.provider.FreemarkerItemProviderAdapterFactory;
-import org.jboss.tools.smooks.edit.groovy.provider.GroovyItemProviderAdapterFactory;
-import org.jboss.tools.smooks.edit.javabean.provider.JavabeanItemProviderAdapterFactory;
-import org.jboss.tools.smooks.edit.smooks.provider.SmooksItemProviderAdapterFactory;
-import org.jboss.tools.smooks.edit.xsl.provider.XslItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.common.provider.CommonItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.csv.provider.CsvItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.dbrouting.provider.DbroutingItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.edi.provider.EdiItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.fileRouting.provider.FileRoutingItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.freemarker.provider.FreemarkerItemProviderAdapterFactory;
import org.jboss.tools.smooks.model.graphics.ext.SmooksGraphicsExtType;
+import org.jboss.tools.smooks.model.groovy.provider.GroovyItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.iorouting.provider.IoroutingItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.javabean.provider.JavabeanItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.jmsrouting.provider.JmsroutingItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.json.provider.JsonItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.smooks.provider.SmooksItemProviderAdapterFactory;
+import org.jboss.tools.smooks.model.xsl.provider.XslItemProviderAdapterFactory;
import org.jboss.tools.smooks10.model.smooks.util.SmooksResourceFactoryImpl;
/**
@@ -175,6 +180,11 @@
adapterFactory.addAdapterFactory(new CommonItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new SmooksItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new EdiItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new IoroutingItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new JsonItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new JmsroutingItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new DbroutingItemProviderAdapterFactory());
+ adapterFactory.addAdapterFactory(new CsvItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new GroovyItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new FileRoutingItemProviderAdapterFactory());
adapterFactory.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffPropertyDetailPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffPropertyDetailPage.java 2009-04-14 06:27:09 UTC (rev 14721)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/configuration/editors/SmooksStuffPropertyDetailPage.java 2009-04-14 06:32:09 UTC (rev 14722)
@@ -112,7 +112,7 @@
EAttribute feature = (EAttribute) itemPropertyDescriptor.getFeature(getModel());
boolean createDefault = true;
if (creator != null) {
- if(creator.ignoreProperty(feature)){
+ if (creator.ignoreProperty(feature)) {
continue;
}
Composite composite = creator.createPropertyUI(formToolkit, detailsComposite,
@@ -123,21 +123,32 @@
}
if (createDefault) {
EClassifier typeClazz = feature.getEType();
+ boolean hasCreated = false;
if (typeClazz instanceof EEnum) {
- createEnumFieldEditor(detailsComposite, (EEnum) typeClazz, formToolkit,
+ createEnumFieldEditor(detailsComposite, feature, (EEnum) typeClazz, formToolkit,
itemPropertyDescriptor);
+ hasCreated = true;
}
if (typeClazz.getInstanceClass() == String.class) {
- createStringFieldEditor(detailsComposite, formToolkit, itemPropertyDescriptor);
+ createStringFieldEditor(detailsComposite, feature, formToolkit,
+ itemPropertyDescriptor);
}
if (typeClazz.getInstanceClass() == Boolean.class
|| typeClazz.getInstanceClass() == boolean.class) {
- createBooleanFieldEditor(detailsComposite, formToolkit, itemPropertyDescriptor);
+ createBooleanFieldEditor(detailsComposite, feature, formToolkit,
+ itemPropertyDescriptor);
+ hasCreated = true;
}
if (typeClazz.getInstanceClass() == Integer.class
|| typeClazz.getInstanceClass() == int.class) {
- createIntegerFieldEditor(detailsComposite, formToolkit, itemPropertyDescriptor);
+ createIntegerFieldEditor(detailsComposite, feature, formToolkit,
+ itemPropertyDescriptor);
+ hasCreated = true;
}
+// if (!hasCreated) {
+// createStringFieldEditor(detailsComposite, feature, formToolkit,
+// itemPropertyDescriptor);
+// }
}
}
if (creator != null) {
@@ -152,9 +163,13 @@
}
}
- protected void createEnumFieldEditor(Composite propertyComposite, final EEnum typeClass,
- FormToolkit formToolKit, final IItemPropertyDescriptor itemPropertyDescriptor) {
+ protected void createEnumFieldEditor(Composite propertyComposite, EAttribute feature,
+ final EEnum typeClass, FormToolkit formToolKit,
+ final IItemPropertyDescriptor itemPropertyDescriptor) {
String displayName = itemPropertyDescriptor.getDisplayName(getModel());
+ if (feature.isRequired()) {
+ displayName = "*" + displayName;
+ }
formToolKit.createLabel(propertyComposite, displayName + " :");
final CCombo combo = new CCombo(propertyComposite, SWT.NONE);
List<EEnumLiteral> literalList = typeClass.getELiterals();
@@ -206,9 +221,12 @@
combo.setLayoutData(gd);
}
- protected void createBooleanFieldEditor(final Composite propertyComposite, FormToolkit formToolkit,
- final IItemPropertyDescriptor itemPropertyDescriptor) {
+ protected void createBooleanFieldEditor(final Composite propertyComposite, EAttribute feature,
+ FormToolkit formToolkit, final IItemPropertyDescriptor itemPropertyDescriptor) {
String displayName = itemPropertyDescriptor.getDisplayName(getModel());
+ if (feature.isRequired()) {
+ displayName = "*" + displayName;
+ }
Object value = itemPropertyDescriptor.getPropertyValue(getModel());
final Button checkButton = formToolkit.createButton(propertyComposite, displayName, SWT.CHECK);
GridData gd = new GridData(GridData.FILL_HORIZONTAL);
@@ -227,9 +245,12 @@
});
}
- protected void createStringFieldEditor(final Composite propertyComposite, FormToolkit formToolKit,
- final IItemPropertyDescriptor itemPropertyDescriptor) {
+ protected void createStringFieldEditor(final Composite propertyComposite, EAttribute feature,
+ FormToolkit formToolKit, final IItemPropertyDescriptor itemPropertyDescriptor) {
String displayName = itemPropertyDescriptor.getDisplayName(getModel());
+ if (feature.isRequired()) {
+ displayName = "*" + displayName;
+ }
formToolKit.createLabel(propertyComposite, displayName + " :");
final Text text = formToolKit.createText(propertyComposite, "", SWT.NONE);
Object value = itemPropertyDescriptor.getPropertyValue(getModel());
@@ -259,9 +280,12 @@
text.setLayoutData(gd);
}
- protected void createIntegerFieldEditor(final Composite propertyComposite, FormToolkit formToolKit,
- final IItemPropertyDescriptor itemPropertyDescriptor) {
+ protected void createIntegerFieldEditor(final Composite propertyComposite, EAttribute feature,
+ FormToolkit formToolKit, final IItemPropertyDescriptor itemPropertyDescriptor) {
String displayName = itemPropertyDescriptor.getDisplayName(getModel());
+ if (feature.isRequired()) {
+ displayName = "*" + displayName;
+ }
formToolKit.createLabel(propertyComposite, displayName + " :");
final Spinner spinner = new Spinner(propertyComposite, SWT.BORDER);
Object value = itemPropertyDescriptor.getPropertyValue(getModel());
15 years, 8 months
JBoss Tools SVN: r14721 - in trunk/smooks/plugins/org.jboss.tools.smooks.core: model and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-04-14 02:27:09 -0400 (Tue, 14 Apr 2009)
New Revision: 14721
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.genmodel
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/db-routing-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/db-routing-1.1.genmodel
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.genmodel
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.genmodel
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.ecore
trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.genmodel
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
Log:
JBIDE-4171
Add new model file and properties values for smooks extension xsd
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.ecore (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.ecore 2009-04-14 06:27:09 UTC (rev 14721)
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="csv"
+ nsURI="http://www.milyn.org/xsd/smooks/csv-1.1.xsd" nsPrefix="cvs">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks CSV Reader Configuration"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EDataType" name="Char" instanceClassName="java.lang.String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="char"/>
+ <details key="baseType" value="http://www.eclipse.org/emf/2003/XMLType#string"/>
+ <details key="length" value="1"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=""/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="elementWildcard"/>
+ <details key="name" value=":mixed"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xmlns:prefix"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xsi:schemaLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="reader" upperBound="-2"
+ eType="#//Reader" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 			CSV Reader Configuration
 		 	The CSV reader reads and validates a CSV stream and converts it to SAX events that Smooks
 		 	can process.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="reader"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation" value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Reader" eSuperTypes="smooks-1.1.ecore#//AbstractReader">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="CSV Reader"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="reader"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="encoding" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="UTF-8" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 						The encoding of the input stream. Default of 'UTF-8'
 					"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="encoding"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="fields" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 						Comma separated list of CSV record field names
 					"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="fields"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="quote" eType="#//Char"
+ defaultValueLiteral=""" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 						Quote character. Default of '"'.
 					"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="quote"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="separator" eType="#//Char"
+ defaultValueLiteral="," unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 						 Field separator character. Default of ','.
 					"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="separator"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="skipLines" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Integer"
+ defaultValueLiteral="0" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 						Number of lines to skip before processing starts. Default of 0.
 					"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="skipLines"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.genmodel
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.genmodel (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.genmodel 2009-04-14 06:27:09 UTC (rev 14721)
@@ -0,0 +1,145 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/csv_model/src"
+ modelPluginID="csv_model" modelName="Csv-1" importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>csv-1.1.ecore</foreignModel>
+ <genPackages prefix="Csv" resource="XML" disposableProviderFactory="true" ecorePackage="csv-1.1.ecore#/">
+ <genDataTypes ecoreDataType="csv-1.1.ecore#//Char"/>
+ <genClasses ecoreClass="csv-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute csv-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference csv-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference csv-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference csv-1.1.ecore#//DocumentRoot/reader"/>
+ </genClasses>
+ <genClasses ecoreClass="csv-1.1.ecore#//Reader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute csv-1.1.ecore#//Reader/encoding"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute csv-1.1.ecore#//Reader/fields"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute csv-1.1.ecore#//Reader/quote"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute csv-1.1.ecore#//Reader/separator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute csv-1.1.ecore#//Reader/skipLines"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Smooks" resource="XML" disposableProviderFactory="true" ecorePackage="smooks-1.1.ecore#/">
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//AbstractReader/targetProfile"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractResourceConfig"/>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ConditionsType/condition"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/evaluator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/idRef"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractResourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/conditions"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/elementVisitor"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handler"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/import"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/param"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profile"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/reader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOff"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/smooksResourceList"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//ElementVisitor">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ElementVisitor/condition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ElementVisitor/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//FeaturesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOff"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlersType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//HandlersType/handler"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlerType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//HandlerType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ImportType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ImportType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ImportType/file"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ParamsType/param"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfilesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ProfilesType/profile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfileType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/baseProfile"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/subProfiles"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ReaderType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/params"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ReaderType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceConfigType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOffType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOffType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOnType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOnType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SmooksResourceListType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/conditions"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractReaderGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfigGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfig"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultConditionRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultTargetProfile"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Common" resource="XML" disposableProviderFactory="true" ecorePackage="common.ecore#/">
+ <genClasses image="false" ecoreClass="common.ecore#//AbstractAnyType">
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getCDATA"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setCDATA">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setCDATA/cdata"/>
+ </genOperations>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getStringValue"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setStringValue">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setStringValue/stringValue"/>
+ </genOperations>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/csv-1.1.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/db-routing-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/db-routing-1.1.ecore (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/db-routing-1.1.ecore 2009-04-14 06:27:09 UTC (rev 14721)
@@ -0,0 +1,251 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="dbrouting"
+ nsURI="http://www.milyn.org/xsd/smooks/db-routing-1.1.xsd" nsPrefix="db">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks SQL Routing Configuration"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=""/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="elementWildcard"/>
+ <details key="name" value=":mixed"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xmlns:prefix"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xsi:schemaLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="executor" upperBound="-2"
+ eType="#//Executor" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 			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.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="executor"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation" value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="resultSetRowSelector" upperBound="-2"
+ eType="#//ResultSetRowSelector" volatile="true" transient="true" derived="true"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 			ResultSet Row Selector configuration
 			The ResultSet row Selector can search though a resultset for a specific row.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="resultSetRowSelector"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation" value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Executor" eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 			SQL Executor
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="executor"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="statement" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				 			The SQL statement to be executed. Supports templating in the form of ${variable}.
				 			The variables are resolved from the bean context.
				 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="statement"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="resultSet" eType="#//ResultSet"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				 			Sets the resultSet specific configuration like the resultSet name, scope and timeToLive.
				 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="resultSet"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="datasource" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The name of the datasource configuration to use. See the datasource configuration
			 			of the Smooks core library.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="datasource"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="executeBefore" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean"
+ defaultValueLiteral="false" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			If the query is executed before the element else it will execute after the element.
			 			Default is 'false'.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="executeBefore"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="executeOnElement" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The element on which the query is executed. With the 'executeBefore'
			 			attribute can be set if the query is executed before or after the element.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="executeOnElement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="executeOnElementNS" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The namespace of the executeOnElement element.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="executeOnElementNS"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ResultSet">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="resultSet"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 				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.
 			"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="name"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="scope" eType="#//ResultSetScopeType"
+ defaultValueLiteral="EXECUTION" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 				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.
 			"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="scope"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="timeToLive" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long"
+ defaultValueLiteral="900000" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 				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.
 			"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="timeToLive"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ResultSetRowSelector" eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 			ResultSet row selector
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="resultSetRowSelector"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="where" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				 			The MVEL condition to select the correct row.
				 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="where"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="failedSelectError" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				 			The 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.
				 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="failedSelectError"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="beanId" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 						The beanId under which the selected row will be added in the bean context.
 					"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="beanId"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="executeBefore" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean"
+ defaultValueLiteral="false" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 						If the selection is done before or after the selected element. Default is 'false'.
						"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="executeBefore"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="resultSetName" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The name of the resultSet to select the row from.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="resultSetName"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="selectRowOnElement" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The element on which the row selection is executed.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="selectRowOnElement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="ResultSetScopeType">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="resultSetScopeType"/>
+ </eAnnotations>
+ <eLiterals name="EXECUTION"/>
+ <eLiterals name="APPLICATION" value="1"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="ResultSetScopeTypeObject" instanceClassName="org.eclipse.emf.common.util.Enumerator">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="resultSetScopeType:Object"/>
+ <details key="baseType" value="resultSetScopeType"/>
+ </eAnnotations>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/db-routing-1.1.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/db-routing-1.1.genmodel
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/db-routing-1.1.genmodel (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/db-routing-1.1.genmodel 2009-04-14 06:27:09 UTC (rev 14721)
@@ -0,0 +1,165 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/db-routing-model/src"
+ modelPluginID="db_routing_model" modelName="Db-routing-1" importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>db-routing-1.1.ecore</foreignModel>
+ <genPackages prefix="Dbrouting" resource="XML" disposableProviderFactory="true"
+ ecorePackage="db-routing-1.1.ecore#/">
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="db-routing-1.1.ecore#//ResultSetScopeType">
+ <genEnumLiterals ecoreEnumLiteral="db-routing-1.1.ecore#//ResultSetScopeType/EXECUTION"/>
+ <genEnumLiterals ecoreEnumLiteral="db-routing-1.1.ecore#//ResultSetScopeType/APPLICATION"/>
+ </genEnums>
+ <genDataTypes ecoreDataType="db-routing-1.1.ecore#//ResultSetScopeTypeObject"/>
+ <genClasses ecoreClass="db-routing-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference db-routing-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference db-routing-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference db-routing-1.1.ecore#//DocumentRoot/executor"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference db-routing-1.1.ecore#//DocumentRoot/resultSetRowSelector"/>
+ </genClasses>
+ <genClasses ecoreClass="db-routing-1.1.ecore#//Executor">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//Executor/statement"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference db-routing-1.1.ecore#//Executor/resultSet"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//Executor/datasource"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//Executor/executeBefore"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//Executor/executeOnElement"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//Executor/executeOnElementNS"/>
+ </genClasses>
+ <genClasses ecoreClass="db-routing-1.1.ecore#//ResultSet">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//ResultSet/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//ResultSet/scope"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//ResultSet/timeToLive"/>
+ </genClasses>
+ <genClasses ecoreClass="db-routing-1.1.ecore#//ResultSetRowSelector">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//ResultSetRowSelector/where"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//ResultSetRowSelector/failedSelectError"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//ResultSetRowSelector/beanId"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//ResultSetRowSelector/executeBefore"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//ResultSetRowSelector/resultSetName"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute db-routing-1.1.ecore#//ResultSetRowSelector/selectRowOnElement"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Smooks" resource="XML" disposableProviderFactory="true" ecorePackage="smooks-1.1.ecore#/">
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//AbstractReader/targetProfile"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractResourceConfig"/>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ConditionsType/condition"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/evaluator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/idRef"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractResourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/conditions"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/elementVisitor"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handler"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/import"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/param"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profile"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/reader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOff"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/smooksResourceList"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//ElementVisitor">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ElementVisitor/condition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ElementVisitor/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//FeaturesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOff"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlersType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//HandlersType/handler"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlerType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//HandlerType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ImportType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ImportType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ImportType/file"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ParamsType/param"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfilesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ProfilesType/profile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfileType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/baseProfile"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/subProfiles"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ReaderType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/params"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ReaderType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceConfigType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOffType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOffType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOnType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOnType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SmooksResourceListType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/conditions"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractReaderGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfigGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfig"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultConditionRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultTargetProfile"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Common" resource="XML" disposableProviderFactory="true" ecorePackage="common.ecore#/">
+ <genClasses image="false" ecoreClass="common.ecore#//AbstractAnyType">
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getCDATA"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setCDATA">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setCDATA/cdata"/>
+ </genOperations>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getStringValue"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setStringValue">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setStringValue/stringValue"/>
+ </genOperations>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/db-routing-1.1.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.ecore (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.ecore 2009-04-14 06:27:09 UTC (rev 14721)
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="iorouting"
+ nsURI="http://www.milyn.org/xsd/smooks/io-routing-1.1.xsd" nsPrefix="io">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks IO Routing Configuration"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=""/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="elementWildcard"/>
+ <details key="name" value=":mixed"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xmlns:prefix"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xsi:schemaLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="router" upperBound="-2"
+ eType="#//Router" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="router"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation" value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Router" eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 			Output stream router
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="router"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="beanId" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The beanId of the bean from the bean context to be written to the OutputStream.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="beanId"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="encoding" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="UTF-8" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			 The encoding used when writing characters to the stream. Default is 'UTF-8'
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="encoding"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="executeBefore" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean"
+ defaultValueLiteral="false" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			If the routing is done before or after the selected element. Default is 'false'.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="executeBefore"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="resourceName" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The resource name of the AbstractOutputStreamResource the bean should be routed to.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="resourceName"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="routeOnElement" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The element to route on.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="routeOnElement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="routeOnElementNS" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The namespace of the routeOnElement element.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="routeOnElementNS"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.genmodel
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.genmodel (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.genmodel 2009-04-14 06:27:09 UTC (rev 14721)
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/io-routing-1.1-model/src"
+ modelPluginID="io_routing_1.1_model" modelName="Io-routing-1" importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>io-routing-1.1.ecore</foreignModel>
+ <genPackages prefix="Iorouting" resource="XML" disposableProviderFactory="true"
+ ecorePackage="io-routing-1.1.ecore#/">
+ <genClasses ecoreClass="io-routing-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute io-routing-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference io-routing-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference io-routing-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference io-routing-1.1.ecore#//DocumentRoot/router"/>
+ </genClasses>
+ <genClasses ecoreClass="io-routing-1.1.ecore#//Router">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute io-routing-1.1.ecore#//Router/beanId"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute io-routing-1.1.ecore#//Router/encoding"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute io-routing-1.1.ecore#//Router/executeBefore"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute io-routing-1.1.ecore#//Router/resourceName"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute io-routing-1.1.ecore#//Router/routeOnElement"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute io-routing-1.1.ecore#//Router/routeOnElementNS"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Smooks" resource="XML" disposableProviderFactory="true" ecorePackage="smooks-1.1.ecore#/">
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//AbstractReader/targetProfile"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractResourceConfig"/>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ConditionsType/condition"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/evaluator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/idRef"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractResourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/conditions"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/elementVisitor"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handler"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/import"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/param"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profile"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/reader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOff"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/smooksResourceList"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//ElementVisitor">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ElementVisitor/condition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ElementVisitor/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//FeaturesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOff"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlersType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//HandlersType/handler"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlerType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//HandlerType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ImportType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ImportType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ImportType/file"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ParamsType/param"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfilesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ProfilesType/profile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfileType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/baseProfile"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/subProfiles"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ReaderType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/params"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ReaderType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceConfigType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOffType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOffType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOnType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOnType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SmooksResourceListType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/conditions"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractReaderGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfigGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfig"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultConditionRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultTargetProfile"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Common" resource="XML" disposableProviderFactory="true" ecorePackage="common.ecore#/">
+ <genClasses image="false" ecoreClass="common.ecore#//AbstractAnyType">
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getCDATA"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setCDATA">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setCDATA/cdata"/>
+ </genOperations>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getStringValue"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setStringValue">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setStringValue/stringValue"/>
+ </genOperations>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/io-routing-1.1.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.ecore (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.ecore 2009-04-14 06:27:09 UTC (rev 14721)
@@ -0,0 +1,449 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="jmsrouting"
+ nsURI="http://www.milyn.org/xsd/smooks/jms-routing-1.1.xsd" nsPrefix="jms">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks JMS Routing Configuration"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EEnum" name="AcknowledgeMode">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				The possible JMS acknowledge modes
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="acknowledgeMode"/>
+ </eAnnotations>
+ <eLiterals name="AUTOACKNOWLEDGE" literal="AUTO_ACKNOWLEDGE">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
						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.
 				"/>
+ </eAnnotations>
+ </eLiterals>
+ <eLiterals name="CLIENTACKNOWLEDGE" value="1" literal="CLIENT_ACKNOWLEDGE">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
						With this acknowledgement mode, the client acknowledges a message by calling a message's acknowledge method.
 				"/>
+ </eAnnotations>
+ </eLiterals>
+ <eLiterals name="DUPSOKACKNOWLEDGE" value="2" literal="DUPS_OK_ACKNOWLEDGE">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
						This acknowledgement mode instructs the session to lazily acknowledge the delivery of messages.
 				"/>
+ </eAnnotations>
+ </eLiterals>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="AcknowledgeModeObject" instanceClassName="org.eclipse.emf.common.util.Enumerator">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="acknowledgeMode:Object"/>
+ <details key="baseType" value="acknowledgeMode"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Connection">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				The JMS connection configuration.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="connection"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="factory" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="ConnectionFactory" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The ConnectionFactory to look up
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="factory"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="securityCredential" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The security credentials to use when creating the JMS connection.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="securityCredential"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="securityPrincipal" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The security principal use when creating the JMS connection.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="securityPrincipal"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="DeliveryMode">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				The possible JMS delivery modes.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="deliveryMode"/>
+ </eAnnotations>
+ <eLiterals name="persistent">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
						This mode instructs the JMS provider to log the message to stable storage as part of the client's send operation.
 				"/>
+ </eAnnotations>
+ </eLiterals>
+ <eLiterals name="nonPersistent" value="1" literal="non-persistent">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
						This is the lowest overhead delivery mode because it does not require that the message be logged to stable storage.
 				"/>
+ </eAnnotations>
+ </eLiterals>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="DeliveryModeObject" instanceClassName="org.eclipse.emf.common.util.Enumerator">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="deliveryMode:Object"/>
+ <details key="baseType" value="deliveryMode"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=""/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="elementWildcard"/>
+ <details key="name" value=":mixed"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xmlns:prefix"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xsi:schemaLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="router" upperBound="-2"
+ eType="#//Router" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
	 			JMS router configuration
 			The JMS router routes messages to a JMS destination (Queue or Topic).
 			The message payload is created from a bean out of the bean context. It is possible
 			to send Text or Object messages. The correlation id can be generated out of a FreeMarker
 			template.
	 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="router"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation" value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-resource-config"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="HighWaterMark">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				The configuration for the max number of messages that can be sitting in the
				JMS Destination at any any time.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="highWaterMark"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mark" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int"
+ defaultValueLiteral="200" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The max number of messages that can be sitting in the JMS Destination at any any time. Default is 200.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="mark"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="pollFrequency" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int"
+ defaultValueLiteral="1000" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The number of milliseconds to wait between checks on the High Water Mark, while waiting for it to drop.
					Default is 1000 ms.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="pollFrequency"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="timeout" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int"
+ defaultValueLiteral="60000" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The number of milliseconds to wait for the system to process JMS Messages from the JMS destination so that the
					number of JMS Messages drops below the highWaterMark. Default is 60000 ms.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="timeout"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Jndi">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				The JNDI configuration.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="jndi"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="contextFactory" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="org.jnp.interfaces.NamingContextFactory" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The JNDI ContextFactory to use
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="contextFactory"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="namingFactory" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="org.jboss.naming:java.naming.factory.url.pkgs" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The JNDI NamingFactory to use
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="namingFactory"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="providerUrl" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="jnp://localhost:1099" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The JNDI Provider URL to use.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="providerUrl"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Message">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				The message configuration.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="message"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="correlationIdPattern" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
						JMS Correlation pattern that will be used for the outgoing message.
						Templating support is available via the FreeMarker template engine.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="correlationIdPattern"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="deliveryMode" eType="#//DeliveryMode"
+ defaultValueLiteral="persistent" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The JMS DeliveryMode. 'persistent'(default) or 'non-persistent'.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="deliveryMode"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="priority" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Int"
+ defaultValueLiteral="4" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The JMS Priority to be used
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="priority"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="timeToLive" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Long"
+ defaultValueLiteral="0" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The JMS Time-To-Live to be used.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="timeToLive"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//MessageType"
+ defaultValueLiteral="TextMessage" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The type of JMS Message that should be sent. 'TextMessage'(default) or 'ObjectMessage'.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="type"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EEnum" name="MessageType">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				The possible JMS message types.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="messageType"/>
+ </eAnnotations>
+ <eLiterals name="TextMessage">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
						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.
 				"/>
+ </eAnnotations>
+ </eLiterals>
+ <eLiterals name="ObjectMessage" value="1">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
						An ObjectMessage is used to send a message that contains a serializable Java object.
						Only Serializable Java objects can be used.
 				"/>
+ </eAnnotations>
+ </eLiterals>
+ <eLiterals name="MapMessage" value="2">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
						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.
 				"/>
+ </eAnnotations>
+ </eLiterals>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EDataType" name="MessageTypeObject" instanceClassName="org.eclipse.emf.common.util.Enumerator">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="messageType:Object"/>
+ <details key="baseType" value="messageType"/>
+ </eAnnotations>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Router" eSuperTypes="smooks-1.1.ecore#//ElementVisitor">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 			JMS Router
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="router"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="message" eType="#//Message"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
								The message configuration.
				 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="message"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="connection" eType="#//Connection"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
								The JMS connection configuration.
				 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="connection"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="session" eType="#//Session"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
								The JMS session configuration.
				 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="session"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="jndi" eType="#//Jndi" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
								The JNDI configuration.
				 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="jndi"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="highWaterMark" eType="#//HighWaterMark"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
								The configuration for the max number of messages that can be sitting in the
								JMS Destination at any any time.
				 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="highWaterMark"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="beanId" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
							The beanId of the bean from the bean context to be used as message payload.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="beanId"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="destination" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
							The JMS destination string
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="destination"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="executeBefore" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean"
+ defaultValueLiteral="false" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
							If the routing is done before or after the selected element. Default is 'false'.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="executeBefore"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="routeOnElement" lowerBound="1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
							The element to route on.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="routeOnElement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="routeOnElementNS" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 			The namespace of the routeOnElement element.
			 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="routeOnElementNS"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Session">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				The JMS session configuration.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="session"/>
+ <details key="kind" value="empty"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="acknowledgeMode" eType="#//AcknowledgeMode"
+ defaultValueLiteral="AUTO_ACKNOWLEDGE" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					The acknowledge mode to use. One of 'AUTO_ACKNOWLEDGE'(default), 'CLIENT_ACKNOWLEDGE', 'DUPS_OK_ACKNOWLEDGE'.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="acknowledgeMode"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="transacted" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//Boolean"
+ defaultValueLiteral="false" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
					Determines if the session should be transacted. Defaults to 'false'.
		 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="transacted"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.genmodel
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.genmodel (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.genmodel 2009-04-14 06:27:09 UTC (rev 14721)
@@ -0,0 +1,193 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/jms-routing-1.1-model/src"
+ modelPluginID="jms_routing_1.1_model" modelName="Jms-routing-1" importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>jms-routing-1.1.ecore</foreignModel>
+ <genPackages prefix="Jmsrouting" resource="XML" disposableProviderFactory="true"
+ ecorePackage="jms-routing-1.1.ecore#/">
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="jms-routing-1.1.ecore#//AcknowledgeMode">
+ <genEnumLiterals ecoreEnumLiteral="jms-routing-1.1.ecore#//AcknowledgeMode/AUTOACKNOWLEDGE"/>
+ <genEnumLiterals ecoreEnumLiteral="jms-routing-1.1.ecore#//AcknowledgeMode/CLIENTACKNOWLEDGE"/>
+ <genEnumLiterals ecoreEnumLiteral="jms-routing-1.1.ecore#//AcknowledgeMode/DUPSOKACKNOWLEDGE"/>
+ </genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="jms-routing-1.1.ecore#//DeliveryMode">
+ <genEnumLiterals ecoreEnumLiteral="jms-routing-1.1.ecore#//DeliveryMode/persistent"/>
+ <genEnumLiterals ecoreEnumLiteral="jms-routing-1.1.ecore#//DeliveryMode/nonPersistent"/>
+ </genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="jms-routing-1.1.ecore#//MessageType">
+ <genEnumLiterals ecoreEnumLiteral="jms-routing-1.1.ecore#//MessageType/TextMessage"/>
+ <genEnumLiterals ecoreEnumLiteral="jms-routing-1.1.ecore#//MessageType/ObjectMessage"/>
+ <genEnumLiterals ecoreEnumLiteral="jms-routing-1.1.ecore#//MessageType/MapMessage"/>
+ </genEnums>
+ <genDataTypes ecoreDataType="jms-routing-1.1.ecore#//AcknowledgeModeObject"/>
+ <genDataTypes ecoreDataType="jms-routing-1.1.ecore#//DeliveryModeObject"/>
+ <genDataTypes ecoreDataType="jms-routing-1.1.ecore#//MessageTypeObject"/>
+ <genClasses ecoreClass="jms-routing-1.1.ecore#//Connection">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Connection/factory"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Connection/securityCredential"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Connection/securityPrincipal"/>
+ </genClasses>
+ <genClasses ecoreClass="jms-routing-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference jms-routing-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference jms-routing-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jms-routing-1.1.ecore#//DocumentRoot/router"/>
+ </genClasses>
+ <genClasses ecoreClass="jms-routing-1.1.ecore#//HighWaterMark">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//HighWaterMark/mark"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//HighWaterMark/pollFrequency"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//HighWaterMark/timeout"/>
+ </genClasses>
+ <genClasses ecoreClass="jms-routing-1.1.ecore#//Jndi">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Jndi/contextFactory"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Jndi/namingFactory"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Jndi/providerUrl"/>
+ </genClasses>
+ <genClasses ecoreClass="jms-routing-1.1.ecore#//Message">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Message/correlationIdPattern"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Message/deliveryMode"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Message/priority"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Message/timeToLive"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Message/type"/>
+ </genClasses>
+ <genClasses ecoreClass="jms-routing-1.1.ecore#//Router">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jms-routing-1.1.ecore#//Router/message"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jms-routing-1.1.ecore#//Router/connection"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jms-routing-1.1.ecore#//Router/session"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jms-routing-1.1.ecore#//Router/jndi"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference jms-routing-1.1.ecore#//Router/highWaterMark"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Router/beanId"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Router/destination"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Router/executeBefore"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Router/routeOnElement"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Router/routeOnElementNS"/>
+ </genClasses>
+ <genClasses ecoreClass="jms-routing-1.1.ecore#//Session">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Session/acknowledgeMode"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute jms-routing-1.1.ecore#//Session/transacted"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Smooks" resource="XML" disposableProviderFactory="true" ecorePackage="smooks-1.1.ecore#/">
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//AbstractReader/targetProfile"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractResourceConfig"/>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ConditionsType/condition"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/evaluator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/idRef"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractResourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/conditions"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/elementVisitor"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handler"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/import"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/param"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profile"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/reader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOff"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/smooksResourceList"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//ElementVisitor">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ElementVisitor/condition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ElementVisitor/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//FeaturesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOff"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlersType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//HandlersType/handler"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlerType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//HandlerType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ImportType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ImportType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ImportType/file"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ParamsType/param"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfilesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ProfilesType/profile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfileType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/baseProfile"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/subProfiles"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ReaderType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/params"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ReaderType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceConfigType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOffType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOffType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOnType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOnType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SmooksResourceListType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/conditions"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractReaderGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfigGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfig"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultConditionRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultTargetProfile"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Common" resource="XML" disposableProviderFactory="true" ecorePackage="common.ecore#/">
+ <genClasses image="false" ecoreClass="common.ecore#//AbstractAnyType">
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getCDATA"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setCDATA">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setCDATA/cdata"/>
+ </genOperations>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getStringValue"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setStringValue">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setStringValue/stringValue"/>
+ </genOperations>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/jms-routing-1.1.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.ecore
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.ecore (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.ecore 2009-04-14 06:27:09 UTC (rev 14721)
@@ -0,0 +1,186 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="json"
+ nsURI="http://www.milyn.org/xsd/smooks/json-1.1.xsd" nsPrefix="json">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="Smooks JSON Reader Configuration"/>
+ </eAnnotations>
+ <eClassifiers xsi:type="ecore:EClass" name="DocumentRoot">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=""/>
+ <details key="kind" value="mixed"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="mixed" unique="false" upperBound="-1"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EFeatureMapEntry">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="elementWildcard"/>
+ <details key="name" value=":mixed"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xMLNSPrefixMap" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xmlns:prefix"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="xSISchemaLocation" upperBound="-1"
+ eType="ecore:EClass http://www.eclipse.org/emf/2002/Ecore#//EStringToStringMapEntry"
+ transient="true" containment="true" resolveProxies="false">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="xsi:schemaLocation"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="reader" upperBound="-2"
+ eType="#//Reader" volatile="true" transient="true" derived="true" containment="true"
+ resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
 			JSON Reader Configuration
 		 	The JSON reader reads a JSON stream and converts it to SAX events that Smooks
 		 	can process.
 		"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="reader"/>
+ <details key="namespace" value="##targetNamespace"/>
+ <details key="affiliation" value="http://www.milyn.org/xsd/smooks-1.1.xsd#abstract-reader"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Key">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="key"/>
+ <details key="kind" value="simple"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="value" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value=":0"/>
+ <details key="kind" value="simple"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="from" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 		 	The name of the key that will be replaced.
			 		 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="from"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="to" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 		 	The name the "from" key name is changed into.
			 		 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="to"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="KeyMap">
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="keyMap"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="key" lowerBound="1" upperBound="-1"
+ eType="#//Key" containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 		 	Defines a JSON element name mapping
			 		 	The "from" key will be replaced with the "to" key or the contents of this element.
		 		 	"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="key"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="Reader" eSuperTypes="smooks-1.1.ecore#//AbstractReader">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="JSON Reader"/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="name" value="reader"/>
+ <details key="kind" value="elementOnly"/>
+ </eAnnotations>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="keyMap" eType="#//KeyMap"
+ containment="true" resolveProxies="false">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
				 		 	Defines a JSON element name mapping
				 		 	The "from" key will be replaced with the "to" key or the contents of the element.
				 		 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="element"/>
+ <details key="name" value="keyMap"/>
+ <details key="namespace" value="##targetNamespace"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="arrayElementName" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="element" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 		 	The element name of a array element. Default of 'element'.
			 		 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="arrayElementName"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="encoding" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="UTF-8" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 		 	The encoding of the input stream. Default of 'UTF-8'
			 		 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="encoding"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="illegalElementNameCharReplacement"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 		 	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.
			 		 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="illegalElementNameCharReplacement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="keyPrefixOnNumeric" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 		 	The 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.
			 		 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="keyPrefixOnNumeric"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="keyWhitspaceReplacement"
+ eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 		 	The replacement character for whitespaces in a JSON map key.
			 		 	By default this not defined, so that the reader doesn't search for whitespaces.
			 		 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="keyWhitspaceReplacement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="nullValueReplacement" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 		 	The replacement string for JSON NULL values. Default is an empty string.
			 		 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="nullValueReplacement"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="rootName" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String"
+ defaultValueLiteral="json" unsettable="true">
+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
+ <details key="documentation" value="
			 		 	The element name of the document root. Default of 'json'.
			 		 "/>
+ </eAnnotations>
+ <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
+ <details key="kind" value="attribute"/>
+ <details key="name" value="rootName"/>
+ </eAnnotations>
+ </eStructuralFeatures>
+ </eClassifiers>
+</ecore:EPackage>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.ecore
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.genmodel
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.genmodel (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.genmodel 2009-04-14 06:27:09 UTC (rev 14721)
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/json-1.1-model/src"
+ modelPluginID="json_1.1_model" modelName="Json-1" importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="5.0" copyrightFields="false">
+ <foreignModel>json-1.1.ecore</foreignModel>
+ <genPackages prefix="Json" resource="XML" disposableProviderFactory="true" ecorePackage="json-1.1.ecore#/">
+ <genClasses ecoreClass="json-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference json-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference json-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference json-1.1.ecore#//DocumentRoot/reader"/>
+ </genClasses>
+ <genClasses ecoreClass="json-1.1.ecore#//Key">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//Key/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//Key/from"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//Key/to"/>
+ </genClasses>
+ <genClasses ecoreClass="json-1.1.ecore#//KeyMap">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference json-1.1.ecore#//KeyMap/key"/>
+ </genClasses>
+ <genClasses ecoreClass="json-1.1.ecore#//Reader">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference json-1.1.ecore#//Reader/keyMap"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//Reader/arrayElementName"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//Reader/encoding"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//Reader/illegalElementNameCharReplacement"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//Reader/keyPrefixOnNumeric"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//Reader/keyWhitspaceReplacement"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//Reader/nullValueReplacement"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute json-1.1.ecore#//Reader/rootName"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Smooks" resource="XML" disposableProviderFactory="true" ecorePackage="smooks-1.1.ecore#/">
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractReader">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//AbstractReader/targetProfile"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//AbstractResourceConfig"/>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ConditionsType/condition"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ConditionType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/evaluator"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/id"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ConditionType/idRef"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//DocumentRoot">
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//DocumentRoot/mixed"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xMLNSPrefixMap"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/xSISchemaLocation"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/abstractResourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/conditions"/>
+ <genFeatures property="None" children="true" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/elementVisitor"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handler"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/import"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/param"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profile"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/reader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/resourceConfig"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOff"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//DocumentRoot/smooksResourceList"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="smooks-1.1.ecore#//ElementVisitor">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ElementVisitor/condition"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ElementVisitor/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//FeaturesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOn"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//FeaturesType/setOff"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlersType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//HandlersType/handler"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//HandlerType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//HandlerType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ImportType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ImportType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ImportType/file"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamsType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ParamsType/param"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ParamType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/name"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ParamType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfilesType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ProfilesType/profile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ProfileType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/baseProfile"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ProfileType/subProfiles"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ReaderType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/handlers"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/features"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ReaderType/params"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ReaderType/class"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceConfigType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/resource"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/condition"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//ResourceConfigType/param"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/selectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceConfigType/targetProfile"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//ResourceType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/value"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//ResourceType/type"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOffType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOffType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SetOnType">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SetOnType/feature"/>
+ </genClasses>
+ <genClasses ecoreClass="smooks-1.1.ecore#//SmooksResourceListType">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/params"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/conditions"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/profiles"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractReaderGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractReader"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfigGroup"/>
+ <genFeatures property="None" notify="false" createChild="false" ecoreFeature="ecore:EReference smooks-1.1.ecore#//SmooksResourceListType/abstractResourceConfig"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultConditionRef"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelector"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultSelectorNamespace"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute smooks-1.1.ecore#//SmooksResourceListType/defaultTargetProfile"/>
+ </genClasses>
+ </genPackages>
+ <genPackages prefix="Common" resource="XML" disposableProviderFactory="true" ecorePackage="common.ecore#/">
+ <genClasses image="false" ecoreClass="common.ecore#//AbstractAnyType">
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getCDATA"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setCDATA">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setCDATA/cdata"/>
+ </genOperations>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/getStringValue"/>
+ <genOperations ecoreOperation="common.ecore#//AbstractAnyType/setStringValue">
+ <genParameters ecoreParameter="common.ecore#//AbstractAnyType/setStringValue/stringValue"/>
+ </genOperations>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/model/json-1.1.genmodel
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-04-14 06:25:34 UTC (rev 14720)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.properties 2009-04-14 06:27:09 UTC (rev 14721)
@@ -243,3 +243,116 @@
_UI_HighWaterMark_type = High Water Mark
_UI_OutputStream_type = Output Stream
+
+# CSV
+_UI_CSV_Reader_type = CSV Reader
+
+_UI_DocumentRoot_reader_feature = Reader
+_UI_Reader_encoding_feature = Encoding
+_UI_Reader_fields_feature = Fields
+_UI_Reader_quote_feature = Quote
+_UI_Reader_separator_feature = Separator
+_UI_Reader_skipLines_feature = Skip Lines
+
+# DB routing
+
+_UI_Executor_type = Executor
+_UI_ResultSet_type = Result Set
+_UI_ResultSetRowSelector_type = Result Set Row Selector
+
+_UI_DocumentRoot_executor_feature = Executor
+_UI_DocumentRoot_resultSetRowSelector_feature = Result Set Row Selector
+_UI_Executor_statement_feature = Statement
+_UI_Executor_resultSet_feature = Result Set
+_UI_Executor_datasource_feature = Datasource
+_UI_Executor_executeBefore_feature = Execute Before
+_UI_Executor_executeOnElement_feature = Execute On Element
+_UI_Executor_executeOnElementNS_feature = Execute On Element NS
+_UI_ResultSet_name_feature = Name
+_UI_ResultSet_scope_feature = Scope
+_UI_ResultSet_timeToLive_feature = Time To Live
+_UI_ResultSetRowSelector_where_feature = Where
+_UI_ResultSetRowSelector_failedSelectError_feature = Failed Select Error
+_UI_ResultSetRowSelector_beanId_feature = Bean Id
+_UI_ResultSetRowSelector_executeBefore_feature = Execute Before
+_UI_ResultSetRowSelector_resultSetName_feature = Result Set Name
+_UI_ResultSetRowSelector_selectRowOnElement_feature = Select Row On Element
+
+_UI_ResultSetScopeType_EXECUTION_literal = EXECUTION
+_UI_ResultSetScopeType_APPLICATION_literal = APPLICATION
+
+# IO routing
+_UI_IO_Router_type = IO Router
+
+_UI_DocumentRoot_router_feature = Router
+_UI_Router_beanId_feature = Bean Id
+_UI_Router_encoding_feature = Encoding
+_UI_Router_executeBefore_feature = Execute Before
+_UI_Router_resourceName_feature = Resource Name
+_UI_Router_routeOnElement_feature = Route On Element
+_UI_Router_routeOnElementNS_feature = Route On Element NS
+
+# JMS routing
+
+_UI_Connection_type = Connection
+_UI_HighWaterMark_type = High Water Mark
+_UI_Jndi_type = Jndi
+_UI_Message_type = Message
+_UI_JMS_Router_type = JMS Router
+_UI_Session_type = Session
+
+_UI_Connection_factory_feature = Factory
+_UI_Connection_securityCredential_feature = Security Credential
+_UI_Connection_securityPrincipal_feature = Security Principal
+_UI_DocumentRoot_router_feature = Router
+_UI_HighWaterMark_mark_feature = Mark
+_UI_HighWaterMark_pollFrequency_feature = Poll Frequency
+_UI_HighWaterMark_timeout_feature = Timeout
+_UI_Jndi_contextFactory_feature = Context Factory
+_UI_Jndi_namingFactory_feature = Naming Factory
+_UI_Jndi_providerUrl_feature = Provider Url
+_UI_Message_correlationIdPattern_feature = Correlation Id Pattern
+_UI_Message_deliveryMode_feature = Delivery Mode
+_UI_Message_priority_feature = Priority
+_UI_Message_timeToLive_feature = Time To Live
+_UI_Message_type_feature = Type
+_UI_Router_message_feature = Message
+_UI_Router_connection_feature = Connection
+_UI_Router_session_feature = Session
+_UI_Router_jndi_feature = Jndi
+_UI_Router_highWaterMark_feature = High Water Mark
+_UI_Router_beanId_feature = Bean Id
+_UI_Router_destination_feature = Destination
+_UI_Router_executeBefore_feature = Execute Before
+_UI_Router_routeOnElement_feature = Route On Element
+_UI_Router_routeOnElementNS_feature = Route On Element NS
+_UI_Session_acknowledgeMode_feature = Acknowledge Mode
+_UI_Session_transacted_feature = Transacted
+
+_UI_AcknowledgeMode_AUTOACKNOWLEDGE_literal = AUTO_ACKNOWLEDGE
+_UI_AcknowledgeMode_CLIENTACKNOWLEDGE_literal = CLIENT_ACKNOWLEDGE
+_UI_AcknowledgeMode_DUPSOKACKNOWLEDGE_literal = DUPS_OK_ACKNOWLEDGE
+_UI_DeliveryMode_persistent_literal = persistent
+_UI_DeliveryMode_nonPersistent_literal = non-persistent
+_UI_MessageType_TextMessage_literal = TextMessage
+_UI_MessageType_ObjectMessage_literal = ObjectMessage
+_UI_MessageType_MapMessage_literal = MapMessage
+
+# JSON
+
+_UI_Key_type = Key
+_UI_KeyMap_type = Key Map
+_UI_Json_Reader_type = Json Reader
+_UI_DocumentRoot_reader_feature = Reader
+_UI_Key_value_feature = Value
+_UI_Key_from_feature = From
+_UI_Key_to_feature = To
+_UI_KeyMap_key_feature = Key
+_UI_JsonReader_keyMap_feature = Key Map
+_UI_Reader_arrayElementName_feature = Array Element Name
+_UI_Reader_encoding_feature = Encoding
+_UI_Reader_illegalElementNameCharReplacement_feature = Illegal Element Name Char Replacement
+_UI_Reader_keyPrefixOnNumeric_feature = Key Prefix On Numeric
+_UI_Reader_keyWhitspaceReplacement_feature = Key Whitspace Replacement
+_UI_Reader_nullValueReplacement_feature = Null Value Replacement
+_UI_Reader_rootName_feature = Root Name
15 years, 8 months
JBoss Tools SVN: r14720 - in trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy: provider and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-04-14 02:25:34 -0400 (Tue, 14 Apr 2009)
New Revision: 14720
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyItemProvider.java
Removed:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyItemProvider.java
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyEditPlugin.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyItemProviderAdapterFactory.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/ScriptTypeItemProvider.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/groovy/provider (from rev 14717, trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider)
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/DocumentRootItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/DocumentRootItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/DocumentRootItemProvider.java 2009-04-14 06:25:34 UTC (rev 14720)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.groovy.provider;
+package org.jboss.tools.smooks.model.groovy.provider;
import java.util.Collection;
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyEditPlugin.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyEditPlugin.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyEditPlugin.java 2009-04-14 06:25:34 UTC (rev 14720)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.groovy.provider;
+package org.jboss.tools.smooks.model.groovy.provider;
import org.eclipse.emf.common.EMFPlugin;
Deleted: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyItemProvider.java 2009-04-14 06:25:34 UTC (rev 14720)
@@ -1,278 +0,0 @@
-/**
- * <copyright>
- * </copyright>
- *
- * $Id$
- */
-package org.jboss.tools.smooks.edit.groovy.provider;
-
-
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.util.ResourceLocator;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
-import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
-import org.eclipse.emf.edit.provider.IItemLabelProvider;
-import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.IItemPropertySource;
-import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
-import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
-import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
-import org.eclipse.emf.edit.provider.ViewerNotification;
-import org.jboss.tools.smooks.edit.smooks.provider.ElementVisitorItemProvider;
-import org.jboss.tools.smooks.model.groovy.Groovy;
-import org.jboss.tools.smooks.model.groovy.GroovyFactory;
-import org.jboss.tools.smooks.model.groovy.GroovyPackage;
-import org.jboss.tools.smooks.model.smooks.SmooksFactory;
-
-/**
- * This is the item provider adapter for a {@link groovy.Groovy} object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
-public class GroovyItemProvider
- 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 GroovyItemProvider(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);
-
- addImportsPropertyDescriptor(object);
- addExecuteBeforePropertyDescriptor(object);
- addExecuteOnElementPropertyDescriptor(object);
- addExecuteOnElementNSPropertyDescriptor(object);
- }
- return itemPropertyDescriptors;
- }
-
- /**
- * This adds a property descriptor for the Imports feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected void addImportsPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_Groovy_imports_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Groovy_imports_feature", "_UI_Groovy_type"),
- GroovyPackage.Literals.GROOVY__IMPORTS,
- 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_Groovy_executeBefore_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Groovy_executeBefore_feature", "_UI_Groovy_type"),
- GroovyPackage.Literals.GROOVY__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_Groovy_executeOnElement_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Groovy_executeOnElement_feature", "_UI_Groovy_type"),
- GroovyPackage.Literals.GROOVY__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_Groovy_executeOnElementNS_feature"),
- getString("_UI_PropertyDescriptor_description", "_UI_Groovy_executeOnElementNS_feature", "_UI_Groovy_type"),
- GroovyPackage.Literals.GROOVY__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(GroovyPackage.Literals.GROOVY__PARAM);
- childrenFeatures.add(GroovyPackage.Literals.GROOVY__SCRIPT);
- }
- 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 Groovy.gif.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/Groovy"));
- }
-
- /**
- * This returns the label text for the adapted class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public String getText(Object object) {
- String label = ((Groovy)object).getTargetProfile();
- return label == null || label.length() == 0 ?
- getString("_UI_Groovy_type") :
- getString("_UI_Groovy_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(Groovy.class)) {
- case GroovyPackage.GROOVY__IMPORTS:
- case GroovyPackage.GROOVY__EXECUTE_BEFORE:
- case GroovyPackage.GROOVY__EXECUTE_ON_ELEMENT:
- case GroovyPackage.GROOVY__EXECUTE_ON_ELEMENT_NS:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- case GroovyPackage.GROOVY__PARAM:
- case GroovyPackage.GROOVY__SCRIPT:
- 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
- (GroovyPackage.Literals.GROOVY__PARAM,
- SmooksFactory.eINSTANCE.createParamType()));
-
- newChildDescriptors.add
- (createChildParameter
- (GroovyPackage.Literals.GROOVY__SCRIPT,
- GroovyFactory.eINSTANCE.createScriptType()));
- }
-
- /**
- * Return the resource locator for this item provider's resources.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public ResourceLocator getResourceLocator() {
- return GroovyEditPlugin.INSTANCE;
- }
-
-}
Copied: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyItemProvider.java (from rev 14718, trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProvider.java)
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyItemProvider.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyItemProvider.java 2009-04-14 06:25:34 UTC (rev 14720)
@@ -0,0 +1,278 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.jboss.tools.smooks.model.groovy.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.groovy.Groovy;
+import org.jboss.tools.smooks.model.groovy.GroovyFactory;
+import org.jboss.tools.smooks.model.groovy.GroovyPackage;
+import org.jboss.tools.smooks.model.smooks.SmooksFactory;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
+
+/**
+ * This is the item provider adapter for a {@link groovy.Groovy} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class GroovyItemProvider
+ 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 GroovyItemProvider(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);
+
+ addImportsPropertyDescriptor(object);
+ addExecuteBeforePropertyDescriptor(object);
+ addExecuteOnElementPropertyDescriptor(object);
+ addExecuteOnElementNSPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Imports feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addImportsPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_Groovy_imports_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Groovy_imports_feature", "_UI_Groovy_type"),
+ GroovyPackage.Literals.GROOVY__IMPORTS,
+ 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_Groovy_executeBefore_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Groovy_executeBefore_feature", "_UI_Groovy_type"),
+ GroovyPackage.Literals.GROOVY__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_Groovy_executeOnElement_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Groovy_executeOnElement_feature", "_UI_Groovy_type"),
+ GroovyPackage.Literals.GROOVY__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_Groovy_executeOnElementNS_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_Groovy_executeOnElementNS_feature", "_UI_Groovy_type"),
+ GroovyPackage.Literals.GROOVY__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(GroovyPackage.Literals.GROOVY__PARAM);
+ childrenFeatures.add(GroovyPackage.Literals.GROOVY__SCRIPT);
+ }
+ 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 Groovy.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/Groovy"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((Groovy)object).getTargetProfile();
+ return label == null || label.length() == 0 ?
+ getString("_UI_Groovy_type") :
+ getString("_UI_Groovy_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(Groovy.class)) {
+ case GroovyPackage.GROOVY__IMPORTS:
+ case GroovyPackage.GROOVY__EXECUTE_BEFORE:
+ case GroovyPackage.GROOVY__EXECUTE_ON_ELEMENT:
+ case GroovyPackage.GROOVY__EXECUTE_ON_ELEMENT_NS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case GroovyPackage.GROOVY__PARAM:
+ case GroovyPackage.GROOVY__SCRIPT:
+ 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
+ (GroovyPackage.Literals.GROOVY__PARAM,
+ SmooksFactory.eINSTANCE.createParamType()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (GroovyPackage.Literals.GROOVY__SCRIPT,
+ GroovyFactory.eINSTANCE.createScriptType()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return GroovyEditPlugin.INSTANCE;
+ }
+
+}
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyItemProviderAdapterFactory.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProviderAdapterFactory.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/GroovyItemProviderAdapterFactory.java 2009-04-14 06:25:34 UTC (rev 14720)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.groovy.provider;
+package org.jboss.tools.smooks.model.groovy.provider;
import java.util.ArrayList;
import java.util.Collection;
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/ScriptTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/ScriptTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model/groovy/provider/ScriptTypeItemProvider.java 2009-04-14 06:25:34 UTC (rev 14720)
@@ -4,7 +4,7 @@
*
* $Id$
*/
-package org.jboss.tools.smooks.edit.groovy.provider;
+package org.jboss.tools.smooks.model.groovy.provider;
import java.util.Collection;
15 years, 8 months
JBoss Tools SVN: r14719 - in trunk/smooks/plugins/org.jboss.tools.smooks.core: META-INF and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-04-14 02:22:21 -0400 (Tue, 14 Apr 2009)
New Revision: 14719
Added:
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_executor_Executor.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_reader_Reader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_resultSetRowSelector_ResultSetRowSelector.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_router_Router.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateExecutor_resultSet_ResultSet.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateKeyMap_key_Key.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateReader_keyMap_KeyMap.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_connection_Connection.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_highWaterMark_HighWaterMark.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_jndi_Jndi.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_message_Message.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_session_Session.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_Reader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_Executor.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_Reader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_ResultSetRowSelector.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_Router.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Connection.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Executor.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Jndi.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Key.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/KeyMap.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Message.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Reader.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/ResultSet.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/ResultSetRowSelector.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Router.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Session.gif
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/csv-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/csv-1.1.xsd-smooks.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/db-routing-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/db-routing-1.1.xsd-smooks.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/edi-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/edi-1.1.xsd-smooks.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/file-routing-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/file-routing-1.1.xsd-smooks.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/freemarker-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/freemarker-1.1.xsd-smooks.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/groovy-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/groovy-1.1.xsd-smooks.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/io-routing-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/io-routing-1.1.xsd-smooks.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/javabean-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/javabean-1.1.xsd-smooks.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/jms-routing-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/jms-routing-1.1.xsd-smooks.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/json-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/json-1.1.xsd-smooks.xml
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/smooks-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/xsl-1.1.xsd
trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/xsl-1.1.xsd-smooks.xml
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF
trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
Log:
JBIDE-4171
Add some new icons
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF 2009-04-14 06:19:09 UTC (rev 14718)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/META-INF/MANIFEST.MF 2009-04-14 06:22:21 UTC (rev 14719)
@@ -13,40 +13,61 @@
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Export-Package: org.jboss.tools.smooks.core,
- org.jboss.tools.smooks.edit.common.provider,
- org.jboss.tools.smooks.edit.edi.provider,
- org.jboss.tools.smooks.edit.fileRouting.provider,
- org.jboss.tools.smooks.edit.freemarker.provider,
- org.jboss.tools.smooks.edit.groovy.provider,
- org.jboss.tools.smooks.edit.javabean.provider,
- org.jboss.tools.smooks.edit.smooks.provider,
- org.jboss.tools.smooks.edit.xsl.provider,
org.jboss.tools.smooks.model.common,
org.jboss.tools.smooks.model.common.impl,
+ org.jboss.tools.smooks.model.common.provider,
org.jboss.tools.smooks.model.common.util,
+ org.jboss.tools.smooks.model.csv,
+ org.jboss.tools.smooks.model.csv.impl,
+ org.jboss.tools.smooks.model.csv.provider,
+ org.jboss.tools.smooks.model.csv.util,
+ org.jboss.tools.smooks.model.dbrouting,
+ org.jboss.tools.smooks.model.dbrouting.impl,
+ org.jboss.tools.smooks.model.dbrouting.provider,
+ org.jboss.tools.smooks.model.dbrouting.util,
org.jboss.tools.smooks.model.edi,
org.jboss.tools.smooks.model.edi.impl,
+ org.jboss.tools.smooks.model.edi.provider,
org.jboss.tools.smooks.model.edi.util,
org.jboss.tools.smooks.model.fileRouting,
org.jboss.tools.smooks.model.fileRouting.impl,
+ org.jboss.tools.smooks.model.fileRouting.provider,
org.jboss.tools.smooks.model.fileRouting.util,
org.jboss.tools.smooks.model.freemarker,
org.jboss.tools.smooks.model.freemarker.impl,
+ org.jboss.tools.smooks.model.freemarker.provider,
org.jboss.tools.smooks.model.freemarker.util,
org.jboss.tools.smooks.model.graphics.ext,
org.jboss.tools.smooks.model.graphics.ext.impl,
org.jboss.tools.smooks.model.graphics.ext.util,
org.jboss.tools.smooks.model.groovy,
org.jboss.tools.smooks.model.groovy.impl,
+ org.jboss.tools.smooks.model.groovy.provider,
org.jboss.tools.smooks.model.groovy.util,
+ org.jboss.tools.smooks.model.iorouting,
+ org.jboss.tools.smooks.model.iorouting.impl,
+ org.jboss.tools.smooks.model.iorouting.provider,
+ org.jboss.tools.smooks.model.iorouting.util,
org.jboss.tools.smooks.model.javabean,
org.jboss.tools.smooks.model.javabean.impl,
+ org.jboss.tools.smooks.model.javabean.provider,
org.jboss.tools.smooks.model.javabean.util,
+ org.jboss.tools.smooks.model.jmsrouting,
+ org.jboss.tools.smooks.model.jmsrouting.impl,
+ org.jboss.tools.smooks.model.jmsrouting.provider,
+ org.jboss.tools.smooks.model.jmsrouting.util,
+ org.jboss.tools.smooks.model.json,
+ org.jboss.tools.smooks.model.json.impl,
+ org.jboss.tools.smooks.model.json.provider,
+ org.jboss.tools.smooks.model.json.util,
org.jboss.tools.smooks.model.smooks,
org.jboss.tools.smooks.model.smooks.impl,
+ org.jboss.tools.smooks.model.smooks.provider,
org.jboss.tools.smooks.model.smooks.util,
+ org.jboss.tools.smooks.model.validate,
org.jboss.tools.smooks.model.xsl,
org.jboss.tools.smooks.model.xsl.impl,
+ org.jboss.tools.smooks.model.xsl.provider,
org.jboss.tools.smooks.model.xsl.util,
org.jboss.tools.smooks10.model.smooks,
org.jboss.tools.smooks10.model.smooks.impl,
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_executor_Executor.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_executor_Executor.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_reader_Reader.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_reader_Reader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_resultSetRowSelector_ResultSetRowSelector.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_resultSetRowSelector_ResultSetRowSelector.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_router_Router.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateDocumentRoot_router_Router.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateExecutor_resultSet_ResultSet.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateExecutor_resultSet_ResultSet.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateKeyMap_key_Key.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateKeyMap_key_Key.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateReader_keyMap_KeyMap.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateReader_keyMap_KeyMap.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_connection_Connection.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_connection_Connection.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_highWaterMark_HighWaterMark.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_highWaterMark_HighWaterMark.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_jndi_Jndi.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_jndi_Jndi.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_message_Message.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_message_Message.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_session_Session.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateRouter_session_Session.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_Reader.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractReader_Reader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_Executor.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_Executor.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_Reader.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_Reader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_ResultSetRowSelector.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_ResultSetRowSelector.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_Router.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/ctool16/CreateSmooksResourceListType_abstractResourceConfig_Router.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Connection.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Connection.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Executor.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Executor.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Jndi.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Jndi.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Key.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Key.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/KeyMap.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/KeyMap.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Message.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Message.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Reader.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Reader.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/ResultSet.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/ResultSet.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/ResultSetRowSelector.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/ResultSetRowSelector.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Router.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Router.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Session.gif
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/icons/full/obj16/Session.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-04-14 06:19:09 UTC (rev 14718)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/plugin.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -146,5 +146,46 @@
class="org.jboss.tools.smooks.model.graphics.ext.util.SmooksGraphicsExtResourceFactoryImpl"/>
</extension>
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <package
+ uri="http://www.milyn.org/xsd/smooks/csv-1.1.xsd"
+ class="org.jboss.tools.smooks.model.csv.CsvPackage"
+ genModel="model/csv-1.1.genmodel"/>
+ </extension>
+ <extension
+ point="org.eclipse.emf.ecore.generated_package">
+ <package
+ class="org.jboss.tools.smooks.model.iorouting.IoroutingPackage"
+ genModel="model/io-routing-1.1.genmodel"
+ uri="http://www.milyn.org/xsd/smooks/csv-1.1.xsd">
+ </package>
+ </extension>
+ <extension
+ point="org.eclipse.emf.ecore.generated_package">
+ <package
+ class="org.jboss.tools.smooks.model.dbrouting.DbroutingPackage"
+ genModel="model/db-routing-1.1.genmodel"
+ uri="http://www.milyn.org/xsd/smooks/db-routing-1.1.xsd">
+ </package>
+ </extension>
+ <extension
+ point="org.eclipse.emf.ecore.generated_package">
+ <package
+ class="org.jboss.tools.smooks.model.jmsrouting.JmsroutingPackage"
+ genModel="model/jms-routing-1.1.genmodel"
+ uri="http://www.milyn.org/xsd/smooks/jms-routing-1.1.xsd">
+ </package>
+ </extension>
+ <extension
+ point="org.eclipse.emf.ecore.generated_package">
+ <package
+ class="org.jboss.tools.smooks.model.json.JsonPackage"
+ genModel="model/json-1.1.genmodel"
+ uri="http://www.milyn.org/xsd/smooks/json-1.1.xsd">
+ </package>
+ </extension>
+
+
+
</plugin>
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/csv-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/csv-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/csv-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://www.milyn.org/xsd/smooks/csv-1.1.xsd"
+ elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-csv="http://www.milyn.org/xsd/smooks/csv-1.1.xsd">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks CSV Reader Configuration</xs:documentation>
+ </xs:annotation>
+
+
+ <xs:element name="reader" type="smooks-csv:reader" substitutionGroup="smooks:abstract-reader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ CSV Reader Configuration
+ The CSV reader reads and validates a CSV stream and converts it to SAX events that Smooks
+ can process.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="reader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">CSV Reader</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:abstract-reader">
+ <xs:attribute name="fields" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Comma separated list of CSV record field names
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="separator" type="smooks-csv:char" use="optional" default=",">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Field separator character. Default of ','.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="quote" type="smooks-csv:char" use="optional" default=""">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Quote character. Default of '"'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="skipLines" type="xs:integer" use="optional" default="0">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Number of lines to skip before processing starts. Default of 0.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="encoding" type="xs:string" use="optional" default="UTF-8">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The encoding of the input stream. Default of 'UTF-8'
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:simpleType name="char">
+ <xs:restriction base="xs:string">
+ <xs:length value="1"></xs:length>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/csv-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/csv-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/csv-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/csv-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/csv-1.1.xsd">
+
+ <!--
+ Bean Instance Creator Resource...
+ -->
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ <param name="resource">org.milyn.csv.CSVReader</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
+ <param name="setOn">selector</param>
+ <param name="value">org.xml.sax.driver</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">fields</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">separator</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">quote</param>
+ <param name="mapTo">quote-char</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">skipLines</param>
+ <param name="mapTo">skip-line-count</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">encoding</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/csv-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/db-routing-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/db-routing-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/db-routing-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,191 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://www.milyn.org/xsd/smooks/db-routing-1.1.xsd"
+ elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-db-routing="http://www.milyn.org/xsd/smooks/db-routing-1.1.xsd">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks SQL Routing Configuration</xs:documentation>
+ </xs:annotation>
+
+
+ <xs:element name="executor" type="smooks-db-routing:executor" substitutionGroup="smooks:abstract-resource-config" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+
+ <xs:complexType name="executor">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ SQL Executor
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:sequence>
+ <xs:element name="statement" type="xs:string" minOccurs="1" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The SQL statement to be executed. Supports templating in the form of ${variable}.
+ The variables are resolved from the bean context.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="resultSet" type="smooks-db-routing:resultSet" minOccurs="0" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Sets the resultSet specific configuration like the resultSet name, scope and timeToLive.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="executeOnElement" type="xs:string" use="required" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="executeOnElementNS" type="xs:string" use="optional" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The namespace of the executeOnElement element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="datasource" type="xs:string" use="required" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the datasource configuration to use. See the datasource configuration
+ of the Smooks core library.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="executeBefore" type="xs:boolean" use="optional" default="false">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ If the query is executed before the element else it will execute after the element.
+ Default is 'false'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:element name="resultSetRowSelector" type="smooks-db-routing:resultSetRowSelector" substitutionGroup="smooks:abstract-resource-config" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ ResultSet Row Selector configuration
+ The ResultSet row Selector can search though a resultset for a specific row.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="resultSetRowSelector">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ ResultSet row selector
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:sequence>
+ <xs:element name="where" type="xs:string" minOccurs="1" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The MVEL condition to select the correct row.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="failedSelectError" type="xs:string" minOccurs="0" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="selectRowOnElement" type="xs:string" use="required" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The element on which the row selection is executed.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="resultSetName" type="xs:string" use="required" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the resultSet to select the row from.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="beanId" type="xs:string" use="required" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The beanId under which the selected row will be added in the bean context.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="executeBefore" type="xs:boolean" use="optional" default="false">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ If the selection is done before or after the selected element. Default is 'false'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:simpleType name="resultSetScopeType">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="EXECUTION"></xs:enumeration>
+ <xs:enumeration value="APPLICATION"></xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:complexType name="resultSet">
+ <xs:attribute name="name" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="scope" type="smooks-db-routing:resultSetScopeType" default="EXECUTION">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="timeToLive" type="xs:long" default="900000">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/db-routing-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/db-routing-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/db-routing-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/db-routing-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/db-routing-1.1.xsd">
+
+ <!--
+ SQLExecutor Resource
+ -->
+
+ <resource-config selector="executor">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ <param name="resource">org.milyn.routing.db.SQLExecutor</param>
+ </resource-config>
+
+ <resource-config selector="executor">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">executeOnElement</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="executor">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">executeOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="executor">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">datasource</param>
+ </resource-config>
+
+ <resource-config selector="executor">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">executeBefore</param>
+ </resource-config>
+
+ <resource-config selector="executor/statement">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">statement</param>
+ </resource-config>
+
+ <resource-config selector="executor/resultSet">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">name</param>
+ <param name="mapTo">resultSetName</param>
+ </resource-config>
+
+ <resource-config selector="executor/resultSet">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">scope</param>
+ <param name="mapTo">resultSetScope</param>
+ </resource-config>
+
+ <resource-config selector="executor/resultSet">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">timeToLive</param>
+ <param name="mapTo">resultSetTTL</param>
+ </resource-config>
+
+ <!--
+ ResultsetRowSelector Resource
+ -->
+ <resource-config selector="resultSetRowSelector">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ <param name="resource">org.milyn.routing.db.ResultsetRowSelector</param>
+ </resource-config>
+
+ <resource-config selector="resultSetRowSelector">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">selectRowOnElement</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="resultSetRowSelector">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">resultSetName</param>
+ </resource-config>
+
+ <resource-config selector="resultSetRowSelector">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">beanId</param>
+ </resource-config>
+
+ <resource-config selector="resultSetRowSelector">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">executeBefore</param>
+ </resource-config>
+
+ <resource-config selector="resultSetRowSelector/where">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">where</param>
+ </resource-config>
+
+ <resource-config selector="resultSetRowSelector/failedSelectError">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">failedSelectError</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/db-routing-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/edi-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/edi-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/edi-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://www.milyn.org/xsd/smooks/edi-1.1.xsd"
+ elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-edi="http://www.milyn.org/xsd/smooks/edi-1.1.xsd">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks EDI Reader Configuration</xs:documentation>
+ </xs:annotation>
+
+
+ <xs:element name="reader" type="smooks-edi:reader" substitutionGroup="smooks:abstract-reader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ EDI Reader Configuration
+ The EDI reader reads and validates a EDI stream and converts it to SAX events that Smooks
+ can process.
+ A mapping is used to map the EDI segments and fields to a SAX event stream.
+ For more information about the mapping model take a look at the
+ "http://www.milyn.org/schema/edi-message-mapping-1.0.xsd" schema.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="reader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">EDI Reader</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:abstract-reader">
+ <xs:attribute name="mappingModel" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The URI of the EDI mapping model file of the EDI model.
+ For more information about the mapping model take a
+ look at the "http://www.milyn.org/schema/edi-message-mapping-1.0.xsd"
+ schema.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="encoding" type="xs:string" use="optional" default="UTF-8">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The character encoding. Default "UTF-8"</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/edi-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/edi-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/edi-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/edi-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/edi-1.1.xsd">
+
+ <!--
+ Bean Instance Creator Resource...
+ -->
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ <param name="resource">org.milyn.smooks.edi.SmooksEDIReader</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
+ <param name="setOn">selector</param>
+ <param name="value">org.xml.sax.driver</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">mappingModel</param>
+ <param name="mapTo">mapping-model</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">encoding</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/edi-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/file-routing-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/file-routing-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/file-routing-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd"
+ elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-file-routing="http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks file Routing Configuration</xs:documentation>
+ </xs:annotation>
+
+
+ <xs:element name="outputStream" type="smooks-file-routing:outputStream" substitutionGroup="smooks:abstract-resource-config" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ File output stream configuration
+ The file output stream creates and manages file output streams.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+
+ <xs:complexType name="outputStream">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ File output stream
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:sequence>
+ <xs:element name="fileNamePattern" type="xs:string" minOccurs="1" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The pattern that will be used to generate file names.
+ The file is created in the directory defined by the 'destinationDirectoryPattern' element.
+ Templating support is available via the FreeMarker template engine.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="destinationDirectoryPattern" type="xs:string" minOccurs="1" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The destination directory for files created by this router.
+ Templating support is available via the FreeMarker template engine.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="listFileNamePattern" type="xs:string" minOccurs="1" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the file that will contain the file names generated by this configuration.
+ The file is created in the directory defined by the 'destinationDirectoryPattern' element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="highWaterMark" type="smooks-file-routing:highWaterMark" minOccurs="0" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Sets the configuration for the max number of output files in the destination directory at any time.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="closeOnCondition" type="xs:string" minOccurs="0" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ An MVEL expression. If it returns true then the output stream is closed on the visitAfter event
+ else it is kept open. If the expression is not set then output stream is closed by default.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ </xs:sequence>
+ <xs:attribute name="openOnElement" type="xs:string" use="required" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The element on which the output stream resource should be opened. If opened, the stream will be
+ closed at the end of the same element (on the visitAfter). This behaviour can be overridden
+ through the <closeOnCondition> element. In that case, the resource is only closed
+ when the MVEL condition is met.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="openOnElementNS" type="xs:string" use="optional" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The namespace of the openOnElement element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="resourceName" type="xs:string" use="required" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name on which the output stream resource is referenced.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="encoding" type="xs:string" use="optional" default="UTF-8">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The encoding to be used by any writers on this resource. Default is 'UTF-8'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="highWaterMark">
+ <xs:attribute name="mark" type="xs:int" use="optional" default="200" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The max number of output files in the destination directory at any time.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="timeout" type="xs:int" use="optional" default="60000" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The number of milliseconds to wait for the system to process files in the destination
+ directory so that the number of files drops below the highWaterMark.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="pollFrequency" type="xs:int" use="optional" default="1000" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The number of milliseconds to wait between checks on the High Water Mark, while
+ waiting for it to drop.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/file-routing-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/file-routing-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/file-routing-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/file-routing-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,75 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd">
+
+ <!--
+ FileOutputStreamResource Resource
+ -->
+
+ <resource-config selector="outputStream">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ <param name="resource">org.milyn.routing.file.FileOutputStreamResource</param>
+ </resource-config>
+
+ <resource-config selector="outputStream">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">openOnElement</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="outputStream">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">openOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="outputStream">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">resourceName</param>
+ </resource-config>
+
+ <resource-config selector="outputStream">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">encoding</param>
+ <param name="mapTo">writerEncoding</param>
+ </resource-config>
+
+ <resource-config selector="outputStream/fileNamePattern">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">fileNamePattern</param>
+ </resource-config>
+
+ <resource-config selector="outputStream/destinationDirectoryPattern">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">destinationDirectoryPattern</param>
+ </resource-config>
+
+ <resource-config selector="outputStream/listFileNamePattern">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">listFileNamePattern</param>
+ </resource-config>
+
+ <resource-config selector="outputStream/highWaterMark">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">mark</param>
+ <param name="mapTo">highWaterMark</param>
+ </resource-config>
+
+ <resource-config selector="outputStream/highWaterMark">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">timeout</param>
+ <param name="mapTo">highWaterMarkTimeout</param>
+ </resource-config>
+
+ <resource-config selector="outputStream/highWaterMark">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">pollFrequency</param>
+ <param name="mapTo">highWaterMarkPollFrequency</param>
+ </resource-config>
+
+ <resource-config selector="outputStream/closeOnCondition">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">closeOnCondition</param>
+ </resource-config>
+
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/file-routing-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/freemarker-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/freemarker-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/freemarker-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd"
+ elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-freemarker="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">FreeMarker Templating Configuration</xs:documentation>
+ </xs:annotation>
+
+ <xs:element name="freemarker" type="smooks-freemarker:freemarker" substitutionGroup="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ FreeMarker Templating Configuration.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="freemarker">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ FreeMarker Templating Configuration Type.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:sequence>
+ <xs:element name="template" type="smooks-freemarker:template" />
+ <xs:element name="use" type="smooks-freemarker:use" minOccurs="0" />
+ <xs:element ref="smooks:param" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="applyOnElement" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the element on which the template is to be applied.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="applyOnElementNS" type="xs:anyURI" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The namespace of the element on which the template is to be applied.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="applyBefore" type="xs:boolean" use="optional" default="false">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Apply the template before visiting the elements child content.<p/>Default is 'false'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="template">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The FreeMarker Template.
+ <p/>
+ This can be an inline template, or a reference (URI) to an externally defined template (filesystem, classpath, www).
+ </xs:documentation>
+ </xs:annotation>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="encoding" type="xs:string" use="optional" default="UTF-8">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Template character encodng.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="use">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The <use> element allows you to define how the templating result is to be used.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:element name="inline" type="smooks-freemarker:inline" />
+ <xs:element name="bindTo" type="smooks-freemarker:bindTo" />
+ <xs:element name="outputTo" type="smooks-freemarker:outputTo" />
+ </xs:choice>
+ </xs:complexType>
+
+ <xs:complexType name="inline">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Inline the templating result into the <b>Smooks.filter</b> Result message.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="directive" type="smooks-freemarker:inlineDirective" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ How the templating result is to be used (relative to the element on which it
+ is applied).
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:complexType name="bindTo">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Bind the templating result into the bean context under the specified "id". This makes the
+ templating result available for routing or other operations.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="id" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The bean context ID under which the templating result is to be bound if the "bindTo" action is chosen.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:complexType name="outputTo">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Output the templating result to a named OutputStreamResource.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="outputStreamResource" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the "outputStreamResource" to which the templating result is to be written. By default,
+ the templating result is written to the Smooks.filter result if (if a StreamResult is provided).
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:simpleType name="inlineDirective">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="addto" />
+ <xs:enumeration value="replace" />
+ <xs:enumeration value="insertbefore" />
+ <xs:enumeration value="insertafter" />
+ </xs:restriction>
+ </xs:simpleType>
+
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/freemarker-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/freemarker-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/freemarker-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/freemarker-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd">
+
+ <resource-config selector="freemarker">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ </resource-config>
+
+ <resource-config selector="freemarker">
+ <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
+ <param name="setOn">resourceType</param>
+ <param name="value">ftl</param>
+ </resource-config>
+
+ <resource-config selector="freemarker">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">applyOnElement</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="freemarker">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">applyOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="freemarker">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">applyBefore</param>
+ <param name="mapTo">applyTemplateBefore</param>
+ </resource-config>
+
+ <resource-config selector="freemarker">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">targetProfile</param>
+ <param name="mapTo">targetProfile</param>
+ </resource-config>
+
+ <resource-config selector="freemarker/template">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">resource</param>
+ </resource-config>
+
+ <resource-config selector="freemarker/template">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">encoding</param>
+ <param name="mapTo">encoding</param>
+ </resource-config>
+
+ <resource-config selector="freemarker/use/inline">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">directive</param>
+ <param name="mapTo">action</param>
+ </resource-config>
+
+ <resource-config selector="freemarker/use/bindTo">
+ <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
+ <param name="setOn">action</param>
+ <param name="value">bindto</param>
+ </resource-config>
+
+ <resource-config selector="freemarker/use/bindTo">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">id</param>
+ <param name="mapTo">bindId</param>
+ </resource-config>
+
+ <resource-config selector="freemarker/use/outputTo">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">outputStreamResource</param>
+ <param name="mapTo">outputStreamResource</param>
+ </resource-config>
+
+ <resource-config selector="freemarker/param" selector-namespace="http://www.milyn.org/xsd/smooks-1.1.xsd">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapToSpecifier">name</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/freemarker-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/groovy-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/groovy-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/groovy-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://www.milyn.org/xsd/smooks/groovy-1.1.xsd"
+ elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-groovy="http://www.milyn.org/xsd/smooks/groovy-1.1.xsd">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Groovy Scripting Configuration</xs:documentation>
+ </xs:annotation>
+
+ <xs:element name="groovy" type="smooks-groovy:groovy" substitutionGroup="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Groovy Script.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="groovy">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Groovy Script.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:sequence>
+ <xs:element name="imports" type="xs:string" minOccurs="0" />
+ <xs:element name="script" type="xs:string" />
+ <xs:element ref="smooks:param" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="executeOnElement" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the element on which to execute the script.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="executeOnElementNS" type="xs:anyURI" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The namespace of the element on which to execute the script.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="executeBefore" type="xs:boolean" use="optional" default="false">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Execute the script before visiting the elements child content. Default is 'false'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/groovy-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/groovy-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/groovy-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/groovy-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/groovy-1.1.xsd">
+
+ <resource-config selector="groovy">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ </resource-config>
+
+ <resource-config selector="groovy">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">executeOnElement</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="groovy">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">executeOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="groovy">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">executeBefore</param>
+ <param name="mapTo">executeBefore</param>
+ </resource-config>
+
+ <resource-config selector="groovy">
+ <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
+ <param name="setOn">resourceType</param>
+ <param name="value">groovy</param>
+ </resource-config>
+
+ <resource-config selector="groovy/imports">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">imports</param>
+ </resource-config>
+
+ <resource-config selector="groovy/script">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">resource</param>
+ </resource-config>
+
+ <resource-config selector="groovy/param" selector-namespace="http://www.milyn.org/xsd/smooks-1.1.xsd">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapToSpecifier">name</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/groovy-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/io-routing-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/io-routing-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/io-routing-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://www.milyn.org/xsd/smooks/io-routing-1.1.xsd"
+ elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-io-routing="http://www.milyn.org/xsd/smooks/io-routing-1.1.xsd">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks IO Routing Configuration</xs:documentation>
+ </xs:annotation>
+
+
+ <xs:element name="router" type="smooks-io-routing:router" substitutionGroup="smooks:abstract-resource-config" >
+
+ </xs:element>
+
+ <xs:complexType name="router">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Output stream router
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:attribute name="routeOnElement" type="xs:string" use="required" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The element to route on.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="routeOnElementNS" type="xs:string" use="optional" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The namespace of the routeOnElement element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="resourceName" type="xs:string" use="required" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The resource name of the AbstractOutputStreamResource the bean should be routed to.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="beanId" type="xs:string" use="required" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The beanId of the bean from the bean context to be written to the OutputStream.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="encoding" type="xs:string" use="optional" default="UTF-8">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The encoding used when writing characters to the stream. Default is 'UTF-8'
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="executeBefore" type="xs:boolean" use="optional" default="false">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ If the routing is done before or after the selected element. Default is 'false'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/io-routing-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/io-routing-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/io-routing-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/io-routing-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/io-routing-1.1.xsd">
+
+ <!--
+ FileOutputStreamResource Resource
+ -->
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ <param name="resource">org.milyn.routing.io.OutputStreamRouter</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">routeOnElement</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">routeOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">resourceName</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">beanId</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">encoding</param>
+ <param name="mapTo">writerEncoding</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">executeBefore</param>
+ <param name="mapTo">visitBefore</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/io-routing-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/javabean-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/javabean-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/javabean-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,396 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-javabean="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd"
+ targetNamespace="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd"
+ elementFormDefault="qualified">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks Java Binding Configuration</xs:documentation>
+ </xs:annotation>
+
+ <xs:element name="bindings" substitutionGroup="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Javabean Bindings Configuration.
+ <h3>Bean Instance Creation</h3>
+ Instances of the class specified in the
+ "class" attribute are created and bound into
+ the bean context under the ID specified by
+ the "beanId" attribute. The bean instance is
+ created (and bound) when the element event
+ specified in the "createOnElement" attribute
+ is encountered in the Source data event
+ stream (see also "createOnElementNS").
+ <h3>Bean Property/Member Population</h3>
+ Bean property/member population is
+ controlled by the binding sub-elements
+ nested inside this element. Use your IDE to
+ discover these elements.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:sequence>
+ <xs:choice minOccurs="0"
+ maxOccurs="unbounded">
+ <xs:element ref="smooks-javabean:value" />
+ <xs:element ref="smooks-javabean:wiring" />
+ <xs:element
+ ref="smooks-javabean:expression" />
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="class" type="xs:string"
+ use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The fully qualified bean Class name.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="beanId" type="xs:string"
+ use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The ID under which the created bean is
+ to be bound in the bean context.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="createOnElement"
+ type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The Source data event stream element
+ event to use to control the timing of
+ the creating.
+ <p />
+ Think of this as the element path (in
+ the Source data) used to control
+ creation of the bean instance(s).
+ <h3>Example</h3>
+ If this attribute value is set to
+ "order/orderItem", an instance of the
+ class (specified in the "class"
+ attribute) will be created when an
+ element event for the element
+ "orderItem" (with a parent element of
+ "order") is encountered in the Source
+ data event stream. The created bean
+ instance will then be bound into the
+ bean context under the specified
+ "beanId".
+ <p />
+ If the createOnElement is not set then
+ no bean will be created. The existing
+ bean in the bean context will be used to
+ do the value binding, expression binding
+ and the object wiring on.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="createOnElementNS"
+ type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Namespace control for the
+ "createOnElement" attribute.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="extendLifecycle" type="xs:boolean">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Defines if this bindings bean wiring may still wire
+ beans after the element is processed. This enables
+ flat XML support.
+ The default value can be set with the global-parameter 'bean-population.default.extend.lifecycle'.
+ Default the value is 'false'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="value">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Basic "value" based binding configuration.
+ <p/>
+ This binding type is used to bind data from the source message event stream.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="smooks-javabean:decodeParam" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="property" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The class property to which the decoded data is to be bound.
+ <p/>
+ The property attribute does not need to be specified when the "class" type on the parent "bindings" element
+ is a List/Array or Map. In the case of a List/Array, the bean is simply added. In the case of Map, the
+ element name (from the element specified in the "data" attribute) is used.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="setterMethod" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The class method which is called to bind the data
+ to the object. Not needed when binding to a Collection.
+ <p/>
+ The setterMethod attribute does not need to be specified when the "class" type on the parent "bindings" element
+ is a List/Array or Map. In the case of a List/Array, the bean is simply added. In the case of Map, the
+ element name (from the element specified in the "data" attribute) is used.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="data" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The Source data event stream element event defining the data to be bound.
+ <p/>
+ Think of this as the element path (in the Source data) to the data.
+ <h3>Examples</h3>
+ <ul>
+ <li>
+ <b>Element Text Data:</b>
+ "order/orderid"
+ </li>
+ <li>
+ <b>Element Attribute Data:</b>
+ "order/header/@date"
+ </li>
+ </ul>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="decoder" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Data Decoder.
+ <p/>
+ This attribute specifies the
+ <a href="http://milyn.codehaus.org/javadoc/smooks/org/milyn/javabean/DataDecoder.html">DataDecoder</a>
+ to be used to decode the data (see "data" attribute) before setting it on the target bean
+ property(see "property" attribute).
+ <p/>
+ Smooks contains decoders for all of the main data types (Long, Integer etc). In these cases,
+ just specify the decoder as being "Long", "Integer", "Date" etc i.e. no need to specify the fully qualified
+ <a href="http://milyn.codehaus.org/javadoc/smooks/org/milyn/javabean/DataDecoder.html">DataDecoder</a>
+ class name. The fully qualified class name is only required for custom
+ <a href="http://milyn.codehaus.org/javadoc/smooks/org/milyn/javabean/DataDecoder.html">DataDecoder</a>
+ implementations.
+
+ <h3>Primitive Types</h3>
+ Smooks does not define special decoders for any of the primitive types. To decode a
+ primitive property type, just specify the Object equivalent decoder e.g. specify "Integer" for "int",
+ "Double" for "double" etc etc.
+
+ <h3>Decode Parameters</h3>
+ Some decoders may require parameters in order to complete the decoding process e.g. the
+ <a href="http://milyn.codehaus.org/javadoc/smooks/org/milyn/javabean/decoders/Date...">DateDecoder</a>.
+ These parameters can be specified by adding <decodeParam> sub-elements to the <value>
+ binding element. Review the Decoder's Javadoc for details of the custom parameters.
+ <p/>
+ <u>Example:</u>
+<pre>
+ <jb:value property="date" data="header/date" decoder="<a href="http://milyn.codehaus.org/javadoc/smooks/org/milyn/javabean/decoders/Date...">Date</a>">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
+ <jb:decodeParam name="locale-language">en</jb:decodeParam>
+ <jb:decodeParam name="locale-country">IE</jb:decodeParam>
+ </jb:value>
+</pre>
+
+ <h3>Custom Data Decoding</h3>
+ For custom data decoding, implement the
+ <a href="http://milyn.codehaus.org/javadoc/smooks/org/milyn/javabean/DataDecoder.html">
+ DataDecoder
+ </a>
+ interface and specify the decoder using the fully qualified class name of the new
+ implementation.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="default" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The default data value, where a null/empty data String is returned
+ for the data element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="dataNS" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The namespace for the "data" selector (see "data" attribute).
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="wiring">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Wiring based binding configuration.
+ <p />
+ This binding type is used to "wire" beans together.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attribute name="property" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The class property to which the bean (specified
+ by "beanIdRef") is to be bound.
+ <p />
+ The property attribute does not need to be
+ specified when the "class" type on the parent
+ "bindings" element is a List/Array or Map. In
+ the case of a List/Array, the bean is simply
+ added. In the case of Map, the element name
+ (from the element specified in the "data"
+ attribute) is used.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="setterMethod" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The class method which is called to bind the data
+ to the object. Not needed when binding to a Collection.
+ <p/>
+ The setterMethod attribute does not need to be specified when the "class" type on the parent "bindings" element
+ is a List/Array or Map. In the case of a List/Array, the bean is simply added. In the case of Map, the
+ element name (from the element specified in the "data" attribute) is used.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="beanIdRef" type="xs:string"
+ use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The beanId of the bean to be wired into the
+ specified bean "property" (or List).
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="wireOnElement" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The Source data event stream element event to
+ use to control when the bean needs to be wired
+ or when the cartridge needs to register a
+ listener for the bean to be wired.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="wireOnElementNS" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Namespace control for the "wireOnElement"
+ attribute.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="expression">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Expression based Configuration</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="property" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The class property to which the expression evaluation result
+ is to be bound. Not needed when binding to a Collection.
+ <p/>
+ The property attribute does not need to be specified when the "class" type on the parent "bindings" element
+ is a List/Array or Map. In the case of a List/Array, the bean is simply added. In the case of Map, the
+ element name (from the element specified in the "data" attribute) is used.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="setterMethod" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The class method which is called to bind the data
+ to the object. Not needed when binding to a Collection.
+ <p/>
+ The setterMethod attribute does not need to be specified when the "class" type on the parent "bindings" element
+ is a List/Array or Map. In the case of a List/Array, the bean is simply added. In the case of Map, the
+ element name (from the element specified in the "data" attribute) is used.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="execOnElement" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The Source data event stream element event to use to control the execution of the expression
+ and binding of the result.
+ <p/>
+ Think of this as the element path (in the Source data) used to control execution of the
+ expression.
+ <h3>Example</h3>
+ If this attribute value is set to "order/orderItem", the expression will be executed (and
+ the result bound to the target property) when an "end" element event ("visitAfter")
+ for the element "orderItem" (with a parent element of "order") is encountered in the
+ Source data event stream.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="execOnElementNS" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Namespace control for the "execOnElement" attribute.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="decodeParam">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Data Decode Parameter.
+ <p/>
+ Some decoders may require parameters in order to complete the decoding process e.g. the
+ <a href="http://milyn.codehaus.org/javadoc/smooks/org/milyn/javabean/decoders/Date...">DateDecoder</a>.
+ These parameters can be specified by adding <decodeParam> sub-elements to the <value>
+ binding element. Review the Decoder's Javadoc for details of the custom parameters.
+ <p/>
+ <u>Example:</u>
+<pre>
+<jb:value property="date" data="header/date" decoder="<a href="http://milyn.codehaus.org/javadoc/smooks/org/milyn/javabean/decoders/Date...">Date</a>">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
+ <jb:decodeParam name="locale-language">en</jb:decodeParam>
+ <jb:decodeParam name="locale-country">IE</jb:decodeParam>
+</jb:value>
+</pre>
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="name" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">The name of the parameter.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/javabean-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/javabean-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/javabean-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/javabean-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,197 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd">
+
+ <!--
+ Bean Instance Creator Resource...
+ -->
+
+ <resource-config selector="bindings">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ <param name="resource">org.milyn.javabean.BeanInstanceCreator</param>
+ </resource-config>
+
+ <resource-config selector="bindings">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">createOnElement</param>
+ <param name="mapTo">selector</param>
+
+ <!--
+ If not set then the $void selector is used to make sure that the BeanInstanceCreator gets
+ initialized but never executed on an element.
+ -->
+ <param name="defaultValue">$void</param>
+ </resource-config>
+
+ <resource-config selector="bindings">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">createOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="bindings">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">beanId</param>
+ </resource-config>
+
+ <resource-config selector="bindings">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">class</param>
+ <param name="mapTo">beanClass</param>
+ </resource-config>
+
+ <resource-config selector="bindings">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">extendLifecycle</param>
+ </resource-config>
+
+ <!--
+ Bean Instance Populator Resource (Value)...
+ -->
+
+ <resource-config selector="bindings/value">
+ <!-- Clone the BeanInstanceCreator config for the BeanInstancePopulator... -->
+ <resource>org.milyn.cdr.extension.CloneResourceConfig</resource>
+ <param name="resource">org.milyn.javabean.BeanInstancePopulator</param>
+ <param name="unset">beanClass</param>
+ <param name="unset">extendLifecycle</param>
+ </resource-config>
+
+ <resource-config selector="bindings/value">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">data</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="bindings/value">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">dataNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="bindings/value">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">property</param>
+ </resource-config>
+
+ <resource-config selector="bindings/value">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">setterMethod</param>
+ </resource-config>
+
+ <resource-config selector="bindings/value">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">decoder</param>
+ <param name="mapTo">type</param>
+ <param name="defaultValue">String</param>
+ </resource-config>
+
+ <resource-config selector="bindings/value">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">default</param>
+ </resource-config>
+
+ <resource-config selector="bindings/value">
+ <resource>org.milyn.javabean.ext.SelectorPropertyResolver</resource>
+ </resource-config>
+
+ <resource-config selector="bindings/value">
+ <resource>org.milyn.javabean.ext.DecodeParamResolver</resource>
+ </resource-config>
+
+ <!--
+ Bean Instance Populator Resource (Wiring)...
+ -->
+
+ <resource-config selector="bindings/wiring">
+ <!-- Clone the BeanInstanceCreator config for the BeanInstancePopulator... -->
+ <resource>org.milyn.cdr.extension.CloneResourceConfig</resource>
+ <param name="resource">org.milyn.javabean.BeanInstancePopulator</param>
+ <param name="unset">beanClass</param>
+ </resource-config>
+
+ <resource-config selector="bindings/wiring">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">property</param>
+ </resource-config>
+
+ <resource-config selector="bindings/wiring">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">setterMethod</param>
+ </resource-config>
+
+ <resource-config selector="bindings/wiring">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">beanIdRef</param>
+ <param name="mapTo">wireBeanId</param>
+ </resource-config>
+
+ <resource-config selector="bindings/wiring">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">wireOnElement</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="bindings/wiring">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">wireOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="bindings/wiring">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">wireOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="bindings/wiring">
+ <resource>org.milyn.javabean.ext.WireOnElementChecker</resource>
+ </resource-config>
+
+ <!--
+ Bean Instance Populator Resource (Expression)...
+ -->
+
+ <resource-config selector="bindings/expression">
+ <!-- Clone the BeanInstanceCreator config for the BeanInstancePopulator... -->
+ <resource>org.milyn.cdr.extension.CloneResourceConfig</resource>
+ <param name="resource">org.milyn.javabean.BeanInstancePopulator</param>
+ <param name="unset">beanClass</param>
+ <param name="unset">extendLifecycle</param>
+ </resource-config>
+
+ <resource-config selector="bindings/expression">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">execOnElement</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="bindings/expression">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">execOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="bindings/expression">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">property</param>
+ </resource-config>
+
+ <resource-config selector="bindings/expression">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">setterMethod</param>
+ </resource-config>
+
+ <resource-config selector="bindings/expression">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">expression</param>
+ </resource-config>
+
+ <!--
+ Bean Instance Populator Resource (Expression)...
+ -->
+
+ <resource-config selector="bindings/*">
+ <resource>org.milyn.javabean.ext.PropertyChecker</resource>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/javabean-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/jms-routing-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/jms-routing-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/jms-routing-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,362 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://www.milyn.org/xsd/smooks/jms-routing-1.1.xsd"
+ elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-jms-routing="http://www.milyn.org/xsd/smooks/jms-routing-1.1.xsd">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks JMS Routing Configuration</xs:documentation>
+ </xs:annotation>
+
+
+ <xs:element name="router" type="smooks-jms-routing:router" substitutionGroup="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="router">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ JMS Router
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:sequence>
+ <xs:element name="message" type="smooks-jms-routing:message" minOccurs="0" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The message configuration.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="connection" type="smooks-jms-routing:connection" minOccurs="0" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JMS connection configuration.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="session" type="smooks-jms-routing:session" minOccurs="0" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JMS session configuration.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="jndi" type="smooks-jms-routing:jndi" minOccurs="0" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JNDI configuration.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="highWaterMark" type="smooks-jms-routing:highWaterMark" minOccurs="0" maxOccurs="1" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The configuration for the max number of messages that can be sitting in the
+ JMS Destination at any any time.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="routeOnElement" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The element to route on.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="routeOnElementNS" type="xs:string" use="optional" >
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The namespace of the routeOnElement element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="beanId" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The beanId of the bean from the bean context to be used as message payload.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="destination" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JMS destination string
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="executeBefore" type="xs:boolean" use="optional" default="false">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ If the routing is done before or after the selected element. Default is 'false'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="message">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The message configuration.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element name="correlationIdPattern" type="xs:string" minOccurs="0" maxOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ JMS Correlation pattern that will be used for the outgoing message.
+ Templating support is available via the FreeMarker template engine.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="type" type="smooks-jms-routing:messageType" use="optional" default="TextMessage">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The type of JMS Message that should be sent. 'TextMessage'(default) or 'ObjectMessage'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="deliveryMode" type="smooks-jms-routing:deliveryMode" use="optional" default="persistent">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JMS DeliveryMode. 'persistent'(default) or 'non-persistent'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="priority" type="xs:int" use="optional" default="4">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JMS Priority to be used
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="timeToLive" type="xs:long" use="optional" default="0">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JMS Time-To-Live to be used.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:complexType name="connection">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JMS connection configuration.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="factory" type="xs:string" use="optional" default="ConnectionFactory">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The ConnectionFactory to look up
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="securityPrincipal" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The security principal use when creating the JMS connection.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="securityCredential" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The security credentials to use when creating the JMS connection.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:complexType name="session">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JMS session configuration.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="transacted" type="xs:boolean" use="optional" default="false">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Determines if the session should be transacted. Defaults to 'false'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="acknowledgeMode" type="smooks-jms-routing:acknowledgeMode" use="optional" default="AUTO_ACKNOWLEDGE">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The acknowledge mode to use. One of 'AUTO_ACKNOWLEDGE'(default), 'CLIENT_ACKNOWLEDGE', 'DUPS_OK_ACKNOWLEDGE'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:complexType name="jndi">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JNDI configuration.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="contextFactory" type="xs:string" use="optional" default="org.jnp.interfaces.NamingContextFactory">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JNDI ContextFactory to use
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="providerUrl" type="xs:string" use="optional" default="jnp://localhost:1099">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JNDI Provider URL to use.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="namingFactory" type="xs:string" use="optional" default="org.jboss.naming:java.naming.factory.url.pkgs">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The JNDI NamingFactory to use
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:complexType name="highWaterMark">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The configuration for the max number of messages that can be sitting in the
+ JMS Destination at any any time.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="mark" type="xs:int" use="optional" default="200">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The max number of messages that can be sitting in the JMS Destination at any any time. Default is 200.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="timeout" type="xs:int" use="optional" default="60000">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The number of milliseconds to wait for the system to process JMS Messages from the JMS destination so that the
+ number of JMS Messages drops below the highWaterMark. Default is 60000 ms.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="pollFrequency" type="xs:int" use="optional" default="1000">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The number of milliseconds to wait between checks on the High Water Mark, while waiting for it to drop.
+ Default is 1000 ms.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:simpleType name="acknowledgeMode">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The possible JMS acknowledge modes
+ </xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="AUTO_ACKNOWLEDGE">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="CLIENT_ACKNOWLEDGE">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ With this acknowledgement mode, the client acknowledges a message by calling a message's acknowledge method.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="DUPS_OK_ACKNOWLEDGE">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ This acknowledgement mode instructs the session to lazily acknowledge the delivery of messages.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="messageType">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The possible JMS message types.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="TextMessage">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="ObjectMessage">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ An ObjectMessage is used to send a message that contains a serializable Java object.
+ Only Serializable Java objects can be used.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="MapMessage">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="deliveryMode">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The possible JMS delivery modes.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="persistent">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ This mode instructs the JMS provider to log the message to stable storage as part of the client's send operation.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="non-persistent">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ This is the lowest overhead delivery mode because it does not require that the message be logged to stable storage.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/jms-routing-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/jms-routing-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/jms-routing-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/jms-routing-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,149 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/jms-routing-1.1.xsd">
+
+ <!--
+ JMS Router Resource
+ -->
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ <param name="resource">org.milyn.routing.jms.JMSRouter</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">routeOnElement</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">routeOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">beanId</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">destination</param>
+ <param name="mapTo">destinationName</param>
+ </resource-config>
+
+ <resource-config selector="router">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">executeBefore</param>
+ </resource-config>
+
+ <!--
+ router/message
+ -->
+
+ <resource-config selector="router/message">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">type</param>
+ <param name="mapTo">messageType</param>
+ </resource-config>
+
+ <resource-config selector="router/message">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">deliveryMode</param>
+ </resource-config>
+
+ <resource-config selector="router/message">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">priority</param>
+ </resource-config>
+
+ <resource-config selector="router/message">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">timeToLive</param>
+ </resource-config>
+
+ <resource-config selector="router/message/correlationIdPattern">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">correlationIdPattern</param>
+ </resource-config>
+
+ <!--
+ router/connection
+ -->
+
+ <resource-config selector="router/connection">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">factory</param>
+ <param name="mapTo">connectionFactory</param>
+ </resource-config>
+
+ <resource-config selector="router/connection">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">securityPrincipal</param>
+ </resource-config>
+
+ <resource-config selector="router/connection">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">securityCredential</param>
+ </resource-config>
+
+ <!--
+ router/session
+ -->
+
+ <resource-config selector="router/session">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">transacted</param>
+ </resource-config>
+
+ <resource-config selector="router/session">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">acknowledgeMode</param>
+ </resource-config>
+
+ <!--
+ router/jndi
+ -->
+
+ <resource-config selector="router/jndi">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">contextFactory</param>
+ <param name="mapTo">jndiContextFactory</param>
+ </resource-config>
+
+ <resource-config selector="router/jndi">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">providerUrl</param>
+ <param name="mapTo">jndiProviderUrl</param>
+ </resource-config>
+
+ <resource-config selector="router/jndi">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">namingFactory</param>
+ <param name="mapTo">jndiNamingFactory</param>
+ </resource-config>
+
+ <!--
+ router/highWaterMark
+ -->
+
+ <resource-config selector="router/highWaterMark">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">mark</param>
+ <param name="mapTo">highWaterMark</param>
+ </resource-config>
+
+ <resource-config selector="router/highWaterMark">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">timeout</param>
+ <param name="mapTo">highWaterMarkTimeout</param>
+ </resource-config>
+
+ <resource-config selector="router/highWaterMark">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">pollFrequency</param>
+ <param name="mapTo">highWaterMarkPollFrequency</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/jms-routing-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/json-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/json-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/json-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-json="http://www.milyn.org/xsd/smooks/json-1.1.xsd"
+ targetNamespace="http://www.milyn.org/xsd/smooks/json-1.1.xsd"
+ elementFormDefault="qualified">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks JSON Reader Configuration</xs:documentation>
+ </xs:annotation>
+
+
+ <xs:element name="reader" type="smooks-json:reader" substitutionGroup="smooks:abstract-reader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ JSON Reader Configuration
+ The JSON reader reads a JSON stream and converts it to SAX events that Smooks
+ can process.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="reader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">JSON Reader</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:abstract-reader">
+ <xs:sequence>
+ <xs:element name="keyMap" type="smooks-json:keyMap" maxOccurs="1" minOccurs="0">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Defines a JSON element name mapping
+ The "from" key will be replaced with the "to" key or the contents of the element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="rootName" type="xs:string" use="optional" default="json">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The element name of the document root. Default of 'json'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="arrayElementName" type="xs:string" use="optional" default="element">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The element name of a array element. Default of 'element'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="nullValueReplacement" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The replacement string for JSON NULL values. Default is an empty string.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="keyWhitspaceReplacement" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The replacement character for whitespaces in a JSON map key.
+ By default this not defined, so that the reader doesn't search for whitespaces.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="keyPrefixOnNumeric" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="illegalElementNameCharReplacement" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ 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.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="encoding" type="xs:string" use="optional" default="UTF-8">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The encoding of the input stream. Default of 'UTF-8'
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="keyMap">
+ <xs:sequence>
+ <xs:element name="key" type="smooks-json:key" maxOccurs="unbounded" minOccurs="1">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Defines a JSON element name mapping
+ The "from" key will be replaced with the "to" key or the contents of this element.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+
+ <xs:complexType name="key">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="from" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the key that will be replaced.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="to" type="xs:string" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name the "from" key name is changed into.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/json-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/json-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/json-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/json-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,59 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/json-1.1.xsd">
+
+ <!--
+ Bean Instance Creator Resource...
+ -->
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ <param name="resource">org.milyn.json.JSONReader</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
+ <param name="setOn">selector</param>
+ <param name="value">org.xml.sax.driver</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">rootName</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">arrayElementName</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">nullValueReplacement</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">keyWhitspaceReplacement</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">keyPrefixOnNumeric</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">illegalElementNameCharReplacement</param>
+ </resource-config>
+
+ <resource-config selector="reader">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">encoding</param>
+ </resource-config>
+
+ <resource-config selector="reader keyMap">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">keyMap</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/json-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/smooks-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/smooks-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/smooks-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,259 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ targetNamespace="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ elementFormDefault="qualified">
+
+ <xs:element name="smooks-resource-list">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">List of Smooks Resource Configuration.</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:params"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:conditions"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:profiles"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="smooks:abstract-reader"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="smooks:abstract-resource-config"/>
+ </xs:sequence>
+ <xs:attribute name="default-target-profile" type="xs:string"/>
+ <xs:attribute name="default-selector" type="xs:string"/>
+ <xs:attribute name="default-selector-namespace" type="xs:anyURI"/>
+ <xs:attribute name="default-condition-ref" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="profiles">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">List of Profiles</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element minOccurs="1" maxOccurs="unbounded" ref="smooks:profile"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="profile">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Profile Configuration. Basically allows you to specify the name of a
+ base profile along with a list of its sub-profiles.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="base-profile" type="xs:string" use="required"/>
+ <xs:attribute name="sub-profiles" type="xs:string"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="abstract-resource-config" abstract="true" />
+ <xs:element name="abstract-resource-config" type="smooks:abstract-resource-config" abstract="true" />
+
+ <xs:complexType name="element-visitor" abstract="true">
+ <xs:complexContent>
+ <xs:extension base="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Element Visitor Resource Type</xs:documentation>
+ </xs:annotation>
+ <xs:choice>
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:condition"/>
+ </xs:choice>
+ <xs:attribute name="targetProfile" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Defines the target profile
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="element-visitor" type="smooks:element-visitor" abstract="true" substitutionGroup="smooks:abstract-resource-config" />
+
+ <xs:element name="import" substitutionGroup="smooks:abstract-resource-config">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks Resource Configuration Import</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element ref="smooks:param" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="file" use="required" type="xs:anyURI"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="abstract-reader" abstract="true">
+ <xs:attribute name="targetProfile" type="xs:string"></xs:attribute>
+ </xs:complexType>
+
+ <xs:element name="abstract-reader" type="smooks:abstract-reader" abstract="true" />
+
+ <xs:element name="reader" substitutionGroup="smooks:abstract-reader">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="smooks:abstract-reader">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Stream Reader</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:handlers" />
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:features" />
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:params" />
+ </xs:sequence>
+ <xs:attribute name="class" use="optional" type="xs:string" />
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="features">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Reader Features List</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element ref="smooks:setOn" minOccurs="0" maxOccurs="unbounded" />
+ <xs:element ref="smooks:setOff" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="setOn">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Set Reader Feature 'On'</xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="feature" type="xs:anyURI" use="required" />
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="setOff">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Set Reader Feature 'Off'</xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="feature" type="xs:anyURI" use="required"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="handlers">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Reader Handler Classes.
+ <p/>
+ Set a handler on the reader instance e.g. an EntityResolver, ErrorHandler etc.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element ref="smooks:handler" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="handler">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Handler class name.
+ <p/>
+ This is the Handler class name e.g. an EntityResolver, ErrorHandler implementation etc.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="class" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="resource-config" substitutionGroup="smooks:abstract-resource-config">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Smooks Resource Configuration</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:resource"/>
+ <xs:element minOccurs="0" maxOccurs="1" ref="smooks:condition"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="smooks:param"/>
+ </xs:sequence>
+ <xs:attribute name="selector" type="xs:string"/>
+ <xs:attribute name="selector-namespace" type="xs:anyURI"/>
+ <xs:attribute name="target-profile" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="resource">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Resource Configuration Resource Type (xsl, class etc)</xs:documentation>
+ </xs:annotation>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="type" type="xs:string"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="conditions">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Conditions List.</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element ref="smooks:condition" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="condition">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Resource Targetting Condition</xs:documentation>
+ </xs:annotation>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="id" type="xs:string" />
+ <xs:attribute name="idRef" type="xs:string" />
+ <xs:attribute name="evaluator" type="xs:string" default="org.milyn.javabean.expression.BeanMapExpressionEvaluator" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="params">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Resource Parameters</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element ref="smooks:param" minOccurs="1" maxOccurs="unbounded" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:element name="param">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation xml:lang="en">Resource Parameter</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="xs:anyType">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="type" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/smooks-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/xsl-1.1.xsd
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/xsl-1.1.xsd (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/xsl-1.1.xsd 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://www.milyn.org/xsd/smooks/xsl-1.1.xsd"
+ elementFormDefault="qualified"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:smooks="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:smooks-xsl="http://www.milyn.org/xsd/smooks/xsl-1.1.xsd">
+
+ <xs:import namespace="http://www.milyn.org/xsd/smooks-1.1.xsd"/>
+
+ <xs:annotation>
+ <xs:documentation xml:lang="en">XSL Templating Configuration</xs:documentation>
+ </xs:annotation>
+
+ <xs:element name="xsl" type="smooks-xsl:xsl" substitutionGroup="smooks:abstract-resource-config">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ XSL Templating Configuration.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+
+ <xs:complexType name="xsl">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ XSL Templating Configuration Type.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="smooks:element-visitor">
+ <xs:sequence>
+ <xs:element name="template" type="smooks-xsl:template" />
+ <xs:element name="use" type="smooks-xsl:use" minOccurs="0" />
+ <xs:element ref="smooks:param" minOccurs="0" maxOccurs="unbounded" />
+ </xs:sequence>
+ <xs:attribute name="applyOnElement" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the element on which the template is to be applied.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="applyOnElementNS" type="xs:anyURI" use="optional">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The namespace of the element on which the template is to be applied.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="applyBefore" type="xs:boolean" use="optional" default="false">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Apply the template before visiting the elements child content.<p/>Default is 'false'.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:complexType name="template">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The XSL Template.
+ <p/>
+ This can be an inline template, or a reference (URI) to an externally defined template (filesystem, classpath, www).
+ </xs:documentation>
+ </xs:annotation>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="encoding" type="xs:string" use="optional" default="UTF-8">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Template character encodng.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="use">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The <use> element allows you to define how the templating result is to be used.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:element name="inline" type="smooks-xsl:inline" />
+ <xs:element name="bindTo" type="smooks-xsl:bindTo" />
+ <xs:element name="outputTo" type="smooks-xsl:outputTo" />
+ </xs:choice>
+ </xs:complexType>
+
+ <xs:complexType name="inline">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Inline the templating result into the <b>Smooks.filter</b> Result message.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="directive" type="smooks-xsl:inlineDirective" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ How the templating result is to be used (relative to the element on which it
+ is applied).
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:complexType name="bindTo">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Bind the templating result into the bean context under the specified "id". This makes the
+ templating result available for routing or other operations.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="id" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The bean context ID under which the templating result is to be bound if the "bindTo" action is chosen.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:complexType name="outputTo">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ Output the templating result to a named OutputStreamResource.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="outputStreamResource" type="xs:string" use="required">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+ The name of the "outputStreamResource" to which the templating result is to be written. By default,
+ the templating result is written to the Smooks.filter result if (if a StreamResult is provided).
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:complexType>
+
+ <xs:simpleType name="inlineDirective">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="addto" />
+ <xs:enumeration value="replace" />
+ <xs:enumeration value="insertbefore" />
+ <xs:enumeration value="insertafter" />
+ </xs:restriction>
+ </xs:simpleType>
+
+</xs:schema>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/xsl-1.1.xsd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/xsl-1.1.xsd-smooks.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/xsl-1.1.xsd-smooks.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/xsl-1.1.xsd-smooks.xml 2009-04-14 06:22:21 UTC (rev 14719)
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" default-selector-namespace="http://www.milyn.org/xsd/smooks/xsl-1.1.xsd">
+
+ <resource-config selector="xsl">
+ <resource>org.milyn.cdr.extension.NewResourceConfig</resource>
+ </resource-config>
+
+ <resource-config selector="xsl">
+ <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
+ <param name="setOn">resourceType</param>
+ <param name="value">xsl</param>
+ </resource-config>
+
+ <resource-config selector="xsl">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">applyOnElement</param>
+ <param name="mapTo">selector</param>
+ </resource-config>
+
+ <resource-config selector="xsl">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">applyOnElementNS</param>
+ <param name="mapTo">selector-namespace</param>
+ </resource-config>
+
+ <resource-config selector="xsl">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">applyBefore</param>
+ <param name="mapTo">applyTemplateBefore</param>
+ </resource-config>
+
+ <resource-config selector="xsl">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">targetProfile</param>
+ <param name="mapTo">targetProfile</param>
+ </resource-config>
+
+ <resource-config selector="xsl/template">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapTo">resource</param>
+ </resource-config>
+
+ <resource-config selector="xsl/template">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">encoding</param>
+ <param name="mapTo">encoding</param>
+ </resource-config>
+
+ <resource-config selector="xsl/use/inline">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">directive</param>
+ <param name="mapTo">action</param>
+ </resource-config>
+
+ <resource-config selector="xsl/use/bindTo">
+ <resource>org.milyn.cdr.extension.SetOnResourceConfig</resource>
+ <param name="setOn">action</param>
+ <param name="value">bindto</param>
+ </resource-config>
+
+ <resource-config selector="xsl/use/bindTo">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">id</param>
+ <param name="mapTo">bindId</param>
+ </resource-config>
+
+ <resource-config selector="xsl/use/outputTo">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromAttribute</resource>
+ <param name="attribute">outputStreamResource</param>
+ <param name="mapTo">outputStreamResource</param>
+ </resource-config>
+
+ <resource-config selector="xsl/param" selector-namespace="http://www.milyn.org/xsd/smooks-1.1.xsd">
+ <resource>org.milyn.cdr.extension.MapToResourceConfigFromText</resource>
+ <param name="mapToSpecifier">name</param>
+ </resource-config>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.smooks.core/xsd/xsl-1.1.xsd-smooks.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 8 months
JBoss Tools SVN: r14718 - in trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit: edi and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-04-14 02:19:09 -0400 (Tue, 14 Apr 2009)
New Revision: 14718
Removed:
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/common/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/edi/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/fileRouting/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/freemarker/provider/
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/javabean/provider/
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/edit/groovy/provider/GroovyItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractResourceConfigItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionsTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/DocumentRootItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/FeaturesTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlerTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlersTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamsTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfileTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfilesTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOffTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOnTypeItemProvider.java
trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksResourceListTypeItemProvider.java
Log:
JBIDE-4171
Add new model codes for smooks extension xsd
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/groovy/provider/GroovyItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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.groovy.Groovy;
import org.jboss.tools.smooks.model.groovy.GroovyFactory;
import org.jboss.tools.smooks.model.groovy.GroovyPackage;
import org.jboss.tools.smooks.model.smooks.SmooksFactory;
+import org.jboss.tools.smooks.model.smooks.provider.ElementVisitorItemProvider;
/**
* This is the item provider adapter for a {@link groovy.Groovy} object.
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractResourceConfigItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractResourceConfigItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/AbstractResourceConfigItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/ConditionTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/ConditionsTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionsTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ConditionsTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/DocumentRootItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/DocumentRootItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/DocumentRootItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/FeaturesTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/FeaturesTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/FeaturesTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/HandlerTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlerTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlerTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/HandlersTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlersTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/HandlersTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/ParamTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/ParamsTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamsTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ParamsTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/ProfileTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfileTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfileTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/ProfilesTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfilesTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ProfilesTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/ResourceTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/ResourceTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/SetOffTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOffTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOffTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/SetOnTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOnTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SetOnTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -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/edit/smooks/provider/SmooksResourceListTypeItemProvider.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-04-14 06:07:39 UTC (rev 14717)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/edit/smooks/provider/SmooksResourceListTypeItemProvider.java 2009-04-14 06:19:09 UTC (rev 14718)
@@ -24,8 +24,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.edit.xsl.provider.Xsl1EditPlugin;
+import org.jboss.tools.smooks.model.common.provider.AbstractAnyTypeItemProvider;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingFactory;
import org.jboss.tools.smooks.model.fileRouting.FileRoutingPackage;
import org.jboss.tools.smooks.model.freemarker.FreemarkerFactory;
@@ -37,6 +36,7 @@
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;
15 years, 8 months
JBoss Tools SVN: r14717 - in trunk/smooks/plugins/org.jboss.tools.smooks.core/src/org/jboss/tools/smooks/model: common and 34 other directories.
by jbosstools-commits@lists.jboss.org
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.org/xsd/smooks/csv-1.1.xsd");
+ 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-resource-config'"
+ * @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-resource-config'"
+ * @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.milyn.org/xsd/smooks/db-routing-1.1.xsd");
+ 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-resource-config'"
+ * @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.milyn.org/xsd/smooks/io-routing-1.1.xsd");
+ 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-resource-config'"
+ * @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.milyn.org/xsd/smooks/jms-routing-1.1.xsd");
+ 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.org/xsd/smooks/json-1.1.xsd");
+ 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;
15 years, 8 months
JBoss Tools SVN: r14716 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-04-14 01:54:42 -0400 (Tue, 14 Apr 2009)
New Revision: 14716
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java
Log:
small trim to avoid huge amounts of spaces added at the end of the args
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java 2009-04-14 05:41:07 UTC (rev 14715)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/JBossServerStartupLaunchConfiguration.java 2009-04-14 05:54:42 UTC (rev 14716)
@@ -134,8 +134,8 @@
List<String> newCP = fixCP(cp, jbs);
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, serverHome + Path.SEPARATOR + "bin");
- wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, args);
- wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, vmArgs);
+ wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROGRAM_ARGUMENTS, args.trim());
+ wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, vmArgs.trim());
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_CLASSPATH, newCP);
wc.setAttribute(SERVER_ID,jbs.getServer().getId());
15 years, 8 months
JBoss Tools SVN: r14715 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-04-14 01:41:07 -0400 (Tue, 14 Apr 2009)
New Revision: 14715
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathCategory.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathQuery.java
Log:
JBIDE-4046 - race condition in server wizard
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathCategory.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathCategory.java 2009-04-14 03:22:57 UTC (rev 14714)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathCategory.java 2009-04-14 05:41:07 UTC (rev 14715)
@@ -21,11 +21,14 @@
*/
package org.jboss.ide.eclipse.as.core.extensions.descriptors;
+import java.util.ArrayList;
import java.util.HashMap;
-import java.util.Iterator;
+import java.util.List;
+import org.eclipse.core.runtime.Path;
import org.eclipse.wst.server.core.IServer;
import org.jboss.ide.eclipse.as.core.server.internal.ServerAttributeHelper;
+import org.jboss.tools.jmx.core.IMemento;
/**
* A class representing an XPath Category, which
@@ -34,15 +37,61 @@
*
*/
public class XPathCategory {
+ @Deprecated private static final String DELIMITER = ",";
+ @Deprecated private static final String QUERY_LIST =
+ "org.jboss.ide.eclipse.as.core.model.descriptor.QueryList";
+ @Deprecated private static final String QUERY =
+ "org.jboss.ide.eclipse.as.core.model.descriptor.Query";
+
+
protected String name; // cannot include delimiter from the model, comma
protected IServer server;
+ protected IMemento memento;
protected HashMap<String, XPathQuery> children;
+ @Deprecated
public XPathCategory(String name, IServer server) {
this.name = name;
this.server = server;
+ children = new HashMap<String, XPathQuery>();
+ XPathQuery[] queries = loadQueries_LEGACY(this, server);
+ for( int i = 0; i < queries.length; i++ ) {
+ children.put(queries[i].getName(), queries[i]);
+ }
}
+ private static XPathQuery[] loadQueries_LEGACY(XPathCategory category, IServer server) {
+ ServerAttributeHelper helper = ServerAttributeHelper.createHelper(server);
+ String list = helper.getAttribute(QUERY_LIST + "." + category.getName().replace(' ', '_'), (String)null);
+ if( list == null )
+ return new XPathQuery[] {};
+ String[] queriesByName = list.split(DELIMITER);
+ List<String> queryAsStringValues;
+ ArrayList<XPathQuery> returnList = new ArrayList<XPathQuery>();
+ for( int i = 0; i < queriesByName.length; i++ ) {
+ queryAsStringValues = helper.getAttribute(QUERY + "." + queriesByName[i].replace(' ', '_'), (List)null);
+ if( queryAsStringValues != null ) {
+ XPathQuery q =new XPathQuery(queriesByName[i].substring(queriesByName[i].indexOf(Path.SEPARATOR)+1), queryAsStringValues);
+ q.setCategory(category);
+ returnList.add(q);
+ }
+ }
+ return (XPathQuery[]) returnList.toArray(new XPathQuery[returnList.size()]);
+ }
+
+ public XPathCategory(IServer server, IMemento memento) {
+ this.server = server;
+ this.name = memento.getString("name");
+ IMemento[] queryMementos = memento.getChildren("query");
+ children = new HashMap<String, XPathQuery>();
+ for( int i = 0; i < queryMementos.length; i++ ) {
+ String name = queryMementos[i].getString("name");
+ XPathQuery child = new XPathQuery(queryMementos[i]);
+ children.put(name, child);
+ child.setCategory(this);
+ }
+ }
+
public String getName() { return this.name; }
public IServer getServer() { return this.server; }
@@ -54,13 +103,6 @@
* Lazily load the queries upon request
*/
public XPathQuery[] getQueries() {
- if( children == null ) {
- children = new HashMap<String, XPathQuery>();
- XPathQuery[] queries = XPathModel.getDefault().loadQueries(this, server);
- for( int i = 0; i < queries.length; i++ ) {
- children.put(queries[i].getName(), queries[i]);
- }
- }
return children.values().toArray(new XPathQuery[children.size()]);
}
@@ -87,8 +129,6 @@
* Save these queries to its server object
*/
public void save() {
- ServerAttributeHelper helper = ServerAttributeHelper.createHelper(server);
- XPathModel.getDefault().saveCategory(this, server, helper);
- helper.save();
+ XPathModel.getDefault().save(server);
}
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java 2009-04-14 03:22:57 UTC (rev 14714)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java 2009-04-14 05:41:07 UTC (rev 14715)
@@ -21,13 +21,15 @@
*/
package org.jboss.ide.eclipse.as.core.extensions.descriptors;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
-import java.util.List;
import java.util.Properties;
import org.eclipse.core.runtime.FileLocator;
@@ -44,6 +46,8 @@
import org.jboss.ide.eclipse.as.core.server.UnitedServerListener;
import org.jboss.ide.eclipse.as.core.server.internal.LocalJBossServerRuntime;
import org.jboss.ide.eclipse.as.core.server.internal.ServerAttributeHelper;
+import org.jboss.tools.jmx.core.IMemento;
+import org.jboss.tools.jmx.core.util.XMLMemento;
/**
* The class representing the model for all xpath storage and searching
@@ -58,12 +62,9 @@
private static final String DELIMITER = ",";
private static final String CATEGORY_LIST =
"org.jboss.ide.eclipse.as.core.model.descriptor.Categories";
- private static final String QUERY_LIST =
- "org.jboss.ide.eclipse.as.core.model.descriptor.QueryList";
- private static final String QUERY =
- "org.jboss.ide.eclipse.as.core.model.descriptor.Query";
- private static final String DEFAULTS_SET = "org.jboss.ide.eclipse.as.core.model.descriptor.DefaultsSet";
-
+ private static final IPath STATE_LOCATION = JBossServerCorePlugin.getDefault().getStateLocation();
+ private static final String XPATH_FILE_NAME = "xpaths.xml";
+
/* Singleton */
private static XPathModel instance;
public static XPathModel getDefault() {
@@ -79,31 +80,26 @@
}
public void serverAdded(IServer server) {
- final ServerAttributeHelper helper = new ServerAttributeHelper(server, server.createWorkingCopy());
- if( !helper.getAttribute(DEFAULTS_SET, false)) {
- final IServer server2 = server;
- new Job("Add Server XPath Details") {
- protected IStatus run(IProgressMonitor monitor) {
-
- if(server2==null || server2.getRuntime()==null) {
- return Status.OK_STATUS; // server has no runtime so we can't set this up.
- }
-
- LocalJBossServerRuntime ajbsr = (LocalJBossServerRuntime)
- server2.getRuntime().loadAdapter(LocalJBossServerRuntime.class, null);
- if(ajbsr != null ) {
- IPath loc = server2.getRuntime().getLocation();
- IPath configFolder = loc.append(IJBossServerConstants.SERVER).append(ajbsr.getJBossConfiguration());
- loadDefaults(server2, configFolder.toOSString());
- helper.setAttribute(DEFAULTS_SET, true);
- helper.save();
- save(server2);
- }
- return Status.OK_STATUS;
+ final IServer server2 = server;
+ new Job("Add Server XPath Details") {
+ protected IStatus run(IProgressMonitor monitor) {
+
+ if(server2==null || server2.getRuntime()==null) {
+ return Status.OK_STATUS; // server has no runtime so we can't set this up.
}
- }.schedule();
- }
+ LocalJBossServerRuntime ajbsr = (LocalJBossServerRuntime)
+ server2.getRuntime().loadAdapter(LocalJBossServerRuntime.class, null);
+ if(ajbsr != null ) {
+ IPath loc = server2.getRuntime().getLocation();
+ IPath configFolder = loc.append(IJBossServerConstants.SERVER).append(ajbsr.getJBossConfiguration());
+ ArrayList<XPathCategory> defaults = loadDefaults(server2, configFolder.toOSString());
+ serverToCategories.put(server2.getId(), defaults);
+ save(server2);
+ }
+ return Status.OK_STATUS;
+ }
+ }.schedule();
}
public XPathQuery getQuery(IServer server, IPath path) {
@@ -172,79 +168,81 @@
/*
* Loading and saving is below
*/
- private XPathCategory[] load(IServer server) {
- ServerAttributeHelper helper = ServerAttributeHelper.createHelper(server);
- String list = helper.getAttribute(CATEGORY_LIST, (String)null);
- if( list == null )
- return new XPathCategory[] {};
- String[] byName = list.split(DELIMITER);
- XPathCategory[] cats = new XPathCategory[byName.length];
- for( int i = 0; i < byName.length; i++ ) {
- cats[i] = new XPathCategory(byName[i], server);
- }
- return cats;
+ protected File getFile(IServer server) {
+ return STATE_LOCATION.append(server.getId().replace(' ', '_')).append(XPATH_FILE_NAME).toFile();
}
-
+
public void save(IServer server) {
if( !serverToCategories.containsKey(server.getId()))
return;
-
- ServerAttributeHelper helper = ServerAttributeHelper.createHelper(server);
+ XMLMemento memento = XMLMemento.createWriteRoot("xpaths");
XPathCategory[] categories = getCategories(server);
- String list = "";
for( int i = 0; i < categories.length; i++ ) {
- if( i != 0 )
- list += DELIMITER;
- list += categories[i].getName();
- saveCategory(categories[i], server, helper);
+ XMLMemento child = (XMLMemento)memento.createChild("category");
+ saveCategory(categories[i], server, child);
}
- helper.setAttribute(CATEGORY_LIST, list);
- helper.save();
+ try {
+ memento.save(new FileOutputStream(getFile(server)));
+ } catch( IOException ioe) {
+ // TODO LOG
+ }
}
- public void saveCategory(XPathCategory category, IServer server, ServerAttributeHelper helper) {
+ public void saveCategory(XPathCategory category, IServer server, XMLMemento memento) {
+ memento.putString("name", category.getName());
if( category.queriesLoaded()) {
XPathQuery[] queries = category.getQueries();
- String val = "";
for( int i = 0; i < queries.length; i++ ) {
- if( i != 0 )
- val += DELIMITER;
- val += category.getName() + Path.SEPARATOR + queries[i].getName();
- saveQuery(queries[i], category, server, helper);
+ XMLMemento child = (XMLMemento)memento.createChild("query");
+ saveQuery(queries[i], category, server, child);
}
- helper.setAttribute(QUERY_LIST + "." + category.getName().replace(' ', '_'), val);
}
}
- private void saveQuery(XPathQuery query, XPathCategory category, IServer server, ServerAttributeHelper helper) {
- ArrayList<String> list = new ArrayList<String>();
- list.add(query.getBaseDir());
- list.add(query.getFilePattern() == null ? EMPTY_STRING : query.getFilePattern());
- list.add(query.getXpathPattern() == null ? EMPTY_STRING : query.getXpathPattern());
- list.add(query.getAttribute() == null ? EMPTY_STRING : query.getAttribute());
- helper.setAttribute(QUERY + "." + category.getName().replace(' ', '_') + Path.SEPARATOR + query.getName().replace(' ', '_'), list);
+ private void saveQuery(XPathQuery query, XPathCategory category,
+ IServer server, XMLMemento memento) {
+ memento.putString("name", query.getName());
+ memento.putString("dir", query.getBaseDir());
+ memento.putString("filePattern", query.getFilePattern());
+ memento.putString("xpathPattern", query.getXpathPattern());
+ memento.putString("attribute", query.getAttribute());
}
- public XPathQuery[] loadQueries(XPathCategory category, IServer server) {
- ServerAttributeHelper helper = ServerAttributeHelper.createHelper(server);
- String list = helper.getAttribute(QUERY_LIST + "." + category.getName().replace(' ', '_'), (String)null);
- if( list == null )
- return new XPathQuery[] {};
- String[] queriesByName = list.split(DELIMITER);
- List<String> queryAsStringValues;
- ArrayList<XPathQuery> returnList = new ArrayList<XPathQuery>();
- for( int i = 0; i < queriesByName.length; i++ ) {
- queryAsStringValues = helper.getAttribute(QUERY + "." + queriesByName[i].replace(' ', '_'), (List)null);
- if( queryAsStringValues != null ) {
- XPathQuery q =new XPathQuery(queriesByName[i].substring(queriesByName[i].indexOf(Path.SEPARATOR)+1), queryAsStringValues);
- q.setCategory(category);
- returnList.add(q);
+ private XPathCategory[] load(IServer server) {
+ if( getFile(server).exists())
+ return loadXML(server);
+ return load_LEGACY(server);
+ }
+
+ private XPathCategory[] loadXML(IServer server) {
+ XPathCategory[] categories = null;
+ try {
+ File file = getFile(server);
+ XMLMemento memento = XMLMemento.createReadRoot(new FileInputStream(file));
+ IMemento[] categoryMementos = memento.getChildren("category");
+ categories = new XPathCategory[categoryMementos.length];
+ for( int i = 0; i < categoryMementos.length; i++ ) {
+ categories[i] = new XPathCategory(server, categoryMementos[i]);
}
+ } catch( IOException ioe) {
+ // TODO LOG
}
- return (XPathQuery[]) returnList.toArray(new XPathQuery[returnList.size()]);
+ return categories == null ? new XPathCategory[] { } : categories;
}
+ private XPathCategory[] load_LEGACY(IServer server) {
+ ServerAttributeHelper helper = ServerAttributeHelper.createHelper(server);
+ String list = helper.getAttribute(CATEGORY_LIST, (String)null);
+ if( list == null )
+ return new XPathCategory[] {};
+ String[] byName = list.split(DELIMITER);
+ XPathCategory[] cats = new XPathCategory[byName.length];
+ for( int i = 0; i < byName.length; i++ ) {
+ cats[i] = new XPathCategory(byName[i], server);
+ }
+ return cats;
+ }
/*
* Loading the defaults for the server
@@ -262,12 +260,12 @@
rtToPortsFile.put("org.jboss.ide.eclipse.as.runtime.eap.43", new Path("properties").append("jboss.eap.43.default.ports.properties"));
}
- public void loadDefaults(IServer server, String configFolder) {
+ private static ArrayList<XPathCategory> loadDefaults(IServer server, String configFolder) {
ArrayList<XPathCategory> retVal = new ArrayList<XPathCategory>();
Path p = (Path)rtToPortsFile.get(server.getRuntime().getRuntimeType().getId());
- if( p == null ) return;
+ if( p == null ) return retVal;
URL url = FileLocator.find(JBossServerCorePlugin.getDefault().getBundle(), p, null);
- if( url == null ) return;
+ if( url == null ) return retVal;
Properties pr = new Properties();
try {
@@ -292,8 +290,7 @@
new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID,
"Error loading default xpaths", e));
}
-
- serverToCategories.put(server.getId(), retVal);
+ return retVal;
}
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathQuery.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathQuery.java 2009-04-14 03:22:57 UTC (rev 14714)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathQuery.java 2009-04-14 05:41:07 UTC (rev 14715)
@@ -34,6 +34,7 @@
import org.jaxen.XPath;
import org.jaxen.dom4j.Dom4jXPath;
import org.jboss.ide.eclipse.as.core.extensions.descriptors.XPathFileResult.XPathResultNode;
+import org.jboss.tools.jmx.core.IMemento;
/**
* A simple value object to hold the XPath query data
@@ -64,6 +65,14 @@
protected transient XPathCategory category;
protected transient XMLDocumentRepository repository = null;
+ public XPathQuery(IMemento memento) {
+ this.name = memento.getString("name");
+ this.baseDir = memento.getString("dir");
+ this.filePattern = memento.getString("filePattern");
+ this.xpathPattern = memento.getString("xpathPattern");
+ this.attribute = memento.getString("attribute");
+ }
+
public XPathQuery(String name, List list) {
this.name = name;
this.baseDir = list.get(0).equals(XPathModel.EMPTY_STRING) ? null : (String)list.get(0);
@@ -71,6 +80,7 @@
this.xpathPattern = list.get(2).equals(XPathModel.EMPTY_STRING) ? null : (String)list.get(2);
this.attribute = list.size() < 3 || list.get(3).equals(XPathModel.EMPTY_STRING) ? null : (String)list.get(3);
}
+
public XPathQuery(String name, String baseDir, String filePattern, String xpathPattern, String attribute) {
this.name = name;
this.baseDir = baseDir;
15 years, 8 months
JBoss Tools SVN: r14714 - in trunk/jmx/plugins/org.jboss.tools.jmx.core: src/org/jboss/tools/jmx/core/util and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-04-13 23:22:57 -0400 (Mon, 13 Apr 2009)
New Revision: 14714
Modified:
trunk/jmx/plugins/org.jboss.tools.jmx.core/META-INF/MANIFEST.MF
trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/util/XMLMemento.java
Log:
Opening the API a bit. This class could be a good candidate for "Core"
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/META-INF/MANIFEST.MF 2009-04-13 17:18:30 UTC (rev 14713)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/META-INF/MANIFEST.MF 2009-04-14 03:22:57 UTC (rev 14714)
@@ -11,7 +11,8 @@
org.jboss.tools.jmx.ui.test,
org.jboss.tools.jmx.core.test,
org.jboss.tools.jmx.ui",
- org.jboss.tools.jmx.core.tree
+ org.jboss.tools.jmx.core.tree,
+ org.jboss.tools.jmx.core.util
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
Modified: trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/util/XMLMemento.java
===================================================================
--- trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/util/XMLMemento.java 2009-04-13 17:18:30 UTC (rev 14713)
+++ trunk/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/util/XMLMemento.java 2009-04-14 03:22:57 UTC (rev 14714)
@@ -54,7 +54,7 @@
* you should use createReadRoot and createWriteRoot to create the initial
* mementos on a document.
*/
- private XMLMemento(Document doc, Element el) {
+ public XMLMemento(Document doc, Element el) {
factory = doc;
element = el;
}
@@ -72,7 +72,7 @@
* Create a Document from a Reader and answer a root memento for reading
* a document.
*/
- protected static XMLMemento createReadRoot(InputStream in) {
+ public static XMLMemento createReadRoot(InputStream in) {
Document document = null;
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
15 years, 8 months