diff --git a/com.gratex.oomph.task.server.edit/META-INF/MANIFEST.MF b/com.gratex.oomph.task.server.edit/META-INF/MANIFEST.MF index 023ba7b..5c93236 100644 --- a/com.gratex.oomph.task.server.edit/META-INF/MANIFEST.MF +++ b/com.gratex.oomph.task.server.edit/META-INF/MANIFEST.MF @@ -3,6 +3,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-Vendor: %providerName Bundle-SymbolicName: com.gratex.oomph.task.server.edit;singleton:=true +Automatic-Module-Name: com.gratex.oomph.task.server.edit Bundle-Version: 1.0.0.qualifier Bundle-ClassPath: . Bundle-Activator: com.gratex.oomph.task.server.provider.ServerEditPlugin$Implementation diff --git a/com.gratex.oomph.task.server.edit/plugin.properties b/com.gratex.oomph.task.server.edit/plugin.properties index d0f5952..d5d73da 100644 --- a/com.gratex.oomph.task.server.edit/plugin.properties +++ b/com.gratex.oomph.task.server.edit/plugin.properties @@ -94,3 +94,6 @@ _UI_WebsphereServerVersion_WAS80_literal = Websphere 8.0 _UI_WebsphereServerTask_profileName_feature = Profile Name _UI_WebsphereServerTask_securityUserId_feature = Security User Id _UI_WebsphereServerTask_securityUserPassword_feature = Security User Password +_UI_TomcatServerVersion_TOMCAT90_literal = Tomcat 9.0 +_UI_TomcatServerVersion_TOMCAT100_literal = Tomcat 10.0 +_UI_WebsphereServerVersion_WAS9_literal = WebSphere 9 diff --git a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerEditPlugin.java b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerEditPlugin.java index 914bdb6..6482dc5 100644 --- a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerEditPlugin.java +++ b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerEditPlugin.java @@ -2,94 +2,83 @@ */ package com.gratex.oomph.task.server.provider; -import org.eclipse.oomph.base.provider.BaseEditPlugin; -import org.eclipse.oomph.setup.provider.SetupEditPlugin; - import org.eclipse.emf.common.EMFPlugin; import org.eclipse.emf.common.util.ResourceLocator; +import org.eclipse.oomph.base.provider.BaseEditPlugin; +import org.eclipse.oomph.setup.provider.SetupEditPlugin; /** - * This is the central singleton for the Server edit plugin. - * - * + * This is the central singleton for the Server edit plugin. + * * @generated */ -public final class ServerEditPlugin extends EMFPlugin -{ - /** - * Keep track of the singleton. - * - * - * @generated - */ - public static final ServerEditPlugin INSTANCE = new ServerEditPlugin(); +public final class ServerEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * @generated + */ + public static final ServerEditPlugin INSTANCE = new ServerEditPlugin(); - /** - * Keep track of the singleton. - * - * - * @generated - */ - private static Implementation plugin; + /** + * Keep track of the singleton. + * + * @generated + */ + private static Implementation plugin; - /** - * Create the instance. - * - * - * @generated - */ - public ServerEditPlugin() - { - super(new ResourceLocator[] { BaseEditPlugin.INSTANCE, SetupEditPlugin.INSTANCE, }); - } + /** + * Create the instance. + * + * @generated + */ + public ServerEditPlugin() { + super(new ResourceLocator[] { BaseEditPlugin.INSTANCE, SetupEditPlugin.INSTANCE, }); + } - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - @Override - public ResourceLocator getPluginResourceLocator() - { - return plugin; - } + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } - /** - * Returns the singleton instance of the Eclipse plugin. - * - * - * @return the singleton instance. - * @generated - */ - public static Implementation getPlugin() - { - return plugin; - } + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } - /** - * The actual implementation of the Eclipse Plugin. - * - * - * @generated - */ - public static class Implementation extends EclipsePlugin - { - /** - * Creates an instance. - * - * - * @generated - */ - public Implementation() - { - super(); + /** + * The actual implementation of the Eclipse Plugin. + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * @generated + */ + public Implementation() { + super(); - // Remember the static instance. - // - plugin = this; - } - } + // Remember the static instance. + // + plugin = this; + } + } } diff --git a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerItemProvider.java b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerItemProvider.java index 64b2669..7431f97 100644 --- a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerItemProvider.java +++ b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerItemProvider.java @@ -2,7 +2,8 @@ */ package com.gratex.oomph.task.server.provider; -import org.eclipse.oomph.setup.provider.SetupTaskItemProvider; +import java.util.Collection; +import java.util.List; import org.eclipse.emf.common.notify.AdapterFactory; import org.eclipse.emf.common.notify.Notification; @@ -10,210 +11,221 @@ import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.emf.edit.provider.ViewerNotification; +import org.eclipse.oomph.setup.provider.SetupTaskItemProvider; import com.gratex.oomph.task.server.Server; import com.gratex.oomph.task.server.ServerPackage; -import java.util.Collection; -import java.util.List; - /** - * This is the item provider adapter for a {@link com.gratex.oomph.task.server.Server} object. - * + * This is the item provider adapter for a + * {@link com.gratex.oomph.task.server.Server} object. * + * * @generated */ -public class ServerItemProvider extends SetupTaskItemProvider -{ - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public ServerItemProvider(AdapterFactory adapterFactory) - { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) - { - if (itemPropertyDescriptors == null) - { - super.getPropertyDescriptors(object); - - addServerNamePropertyDescriptor(object); - addLocationPropertyDescriptor(object); - addRuntimeNamePropertyDescriptor(object); - addHostnamePropertyDescriptor(object); - addCleanPreviousRuntimesPropertyDescriptor(object); - addStartTimeoutPropertyDescriptor(object); - addStopTimeoutPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Server Name feature. - * - * - * @generated - */ - protected void addServerNamePropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Server_serverName_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Server_serverName_feature", "_UI_Server_type"), - ServerPackage.Literals.SERVER__SERVER_NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Location feature. - * - * - * @generated - */ - protected void addLocationPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Server_location_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Server_location_feature", "_UI_Server_type"), - ServerPackage.Literals.SERVER__LOCATION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Runtime Name feature. - * - * - * @generated - */ - protected void addRuntimeNamePropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Server_runtimeName_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Server_runtimeName_feature", "_UI_Server_type"), - ServerPackage.Literals.SERVER__RUNTIME_NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Hostname feature. - * - * - * @generated - */ - protected void addHostnamePropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Server_hostname_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Server_hostname_feature", "_UI_Server_type"), - ServerPackage.Literals.SERVER__HOSTNAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Clean Previous Runtimes feature. - * - * - * @generated - */ - protected void addCleanPreviousRuntimesPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Server_cleanPreviousRuntimes_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_Server_cleanPreviousRuntimes_feature", "_UI_Server_type"), - ServerPackage.Literals.SERVER__CLEAN_PREVIOUS_RUNTIMES, true, false, false, ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Start Timeout feature. - * - * - * @generated - */ - protected void addStartTimeoutPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Server_startTimeout_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Server_startTimeout_feature", "_UI_Server_type"), - ServerPackage.Literals.SERVER__START_TIMEOUT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Stop Timeout feature. - * - * - * @generated - */ - protected void addStopTimeoutPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_Server_stopTimeout_feature"), getString("_UI_PropertyDescriptor_description", "_UI_Server_stopTimeout_feature", "_UI_Server_type"), - ServerPackage.Literals.SERVER__STOP_TIMEOUT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() - { - return true; - } - - /** - * This returns the label text for the adapted class. - * - * - * @generated - */ - @Override - public String getText(Object object) - { - String label = ((Server)object).getID(); - return label == null || label.length() == 0 ? getString("_UI_Server_type") : getString("_UI_Server_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}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) - { - updateChildren(notification); - - switch (notification.getFeatureID(Server.class)) - { - case ServerPackage.SERVER__SERVER_NAME: - case ServerPackage.SERVER__LOCATION: - case ServerPackage.SERVER__RUNTIME_NAME: - case ServerPackage.SERVER__HOSTNAME: - case ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES: - case ServerPackage.SERVER__START_TIMEOUT: - case ServerPackage.SERVER__STOP_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. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) - { - super.collectNewChildDescriptors(newChildDescriptors, object); - } +public class ServerItemProvider extends SetupTaskItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public ServerItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addServerNamePropertyDescriptor(object); + addLocationPropertyDescriptor(object); + addRuntimeNamePropertyDescriptor(object); + addHostnamePropertyDescriptor(object); + addCleanPreviousRuntimesPropertyDescriptor(object); + addStartTimeoutPropertyDescriptor(object); + addStopTimeoutPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Server Name feature. + * + * @generated + */ + protected void addServerNamePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_Server_serverName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Server_serverName_feature", + "_UI_Server_type"), + ServerPackage.Literals.SERVER__SERVER_NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Location feature. + * + * @generated + */ + protected void addLocationPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_Server_location_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Server_location_feature", + "_UI_Server_type"), + ServerPackage.Literals.SERVER__LOCATION, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Runtime Name feature. + * + * @generated + */ + protected void addRuntimeNamePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_Server_runtimeName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Server_runtimeName_feature", + "_UI_Server_type"), + ServerPackage.Literals.SERVER__RUNTIME_NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Hostname feature. + * + * @generated + */ + protected void addHostnamePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_Server_hostname_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Server_hostname_feature", + "_UI_Server_type"), + ServerPackage.Literals.SERVER__HOSTNAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Clean Previous Runtimes feature. + * + * @generated + */ + protected void addCleanPreviousRuntimesPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_Server_cleanPreviousRuntimes_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Server_cleanPreviousRuntimes_feature", + "_UI_Server_type"), + ServerPackage.Literals.SERVER__CLEAN_PREVIOUS_RUNTIMES, true, false, false, + ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Start Timeout feature. + * + * @generated + */ + protected void addStartTimeoutPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_Server_startTimeout_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Server_startTimeout_feature", + "_UI_Server_type"), + ServerPackage.Literals.SERVER__START_TIMEOUT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Stop Timeout feature. + * + * @generated + */ + protected void addStopTimeoutPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_Server_stopTimeout_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_Server_stopTimeout_feature", + "_UI_Server_type"), + ServerPackage.Literals.SERVER__STOP_TIMEOUT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((Server) object).getID(); + return label == null || label.length() == 0 ? getString("_UI_Server_type") + : getString("_UI_Server_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}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(Server.class)) { + case ServerPackage.SERVER__SERVER_NAME: + case ServerPackage.SERVER__LOCATION: + case ServerPackage.SERVER__RUNTIME_NAME: + case ServerPackage.SERVER__HOSTNAME: + case ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES: + case ServerPackage.SERVER__START_TIMEOUT: + case ServerPackage.SERVER__STOP_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. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } } diff --git a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerItemProviderAdapterFactory.java b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerItemProviderAdapterFactory.java index a209549..c4abcb4 100644 --- a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerItemProviderAdapterFactory.java +++ b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/ServerItemProviderAdapterFactory.java @@ -2,12 +2,9 @@ */ package com.gratex.oomph.task.server.provider; -import org.eclipse.oomph.base.Annotation; -import org.eclipse.oomph.base.BasePackage; -import org.eclipse.oomph.base.util.BaseSwitch; -import org.eclipse.oomph.setup.SetupPackage; -import org.eclipse.oomph.setup.SetupTaskContainer; -import org.eclipse.oomph.setup.util.SetupSwitch; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; import org.eclipse.emf.common.notify.Adapter; import org.eclipse.emf.common.notify.Notification; @@ -29,509 +26,478 @@ import org.eclipse.emf.edit.provider.INotifyChangedListener; import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; import org.eclipse.emf.edit.provider.ITreeItemContentProvider; +import org.eclipse.oomph.base.Annotation; +import org.eclipse.oomph.base.BasePackage; +import org.eclipse.oomph.base.util.BaseSwitch; +import org.eclipse.oomph.setup.SetupPackage; +import org.eclipse.oomph.setup.SetupTaskContainer; +import org.eclipse.oomph.setup.util.SetupSwitch; import com.gratex.oomph.task.server.ServerFactory; import com.gratex.oomph.task.server.ServerPackage; import com.gratex.oomph.task.server.util.ServerAdapterFactory; -import java.util.ArrayList; -import java.util.Collection; -import java.util.List; - /** - * 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. - * - * + * 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. + * * @generated */ public class ServerItemProviderAdapterFactory extends ServerAdapterFactory - implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender -{ - /** - * This keeps track of the root adapter factory that delegates to this adapter factory. - * - * - * @generated - */ - protected ComposedAdapterFactory parentAdapterFactory; - - /** - * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. - * - * - * @generated - */ - protected IChangeNotifier changeNotifier = new ChangeNotifier(); - - /** - * This helps manage the child creation extenders. - * - * - * @generated - */ - protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager(ServerEditPlugin.INSTANCE, ServerPackage.eNS_URI); - - /** - * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. - * - * - * @generated - */ - protected Collection supportedTypes = new ArrayList(); - - /** - * This constructs an instance. - * - * - * @generated - */ - public ServerItemProviderAdapterFactory() - { - 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 com.gratex.oomph.task.server.TomcatServerTask} instances. - * - * - * @generated - */ - protected TomcatServerTaskItemProvider tomcatServerTaskItemProvider; - - /** - * This creates an adapter for a {@link com.gratex.oomph.task.server.TomcatServerTask}. - * - * - * @generated - */ - @Override - public Adapter createTomcatServerTaskAdapter() - { - if (tomcatServerTaskItemProvider == null) - { - tomcatServerTaskItemProvider = new TomcatServerTaskItemProvider(this); - } - - return tomcatServerTaskItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link com.gratex.oomph.task.server.WeblogicServerTask} instances. - * - * - * @generated - */ - protected WeblogicServerTaskItemProvider weblogicServerTaskItemProvider; - - /** - * This creates an adapter for a {@link com.gratex.oomph.task.server.WeblogicServerTask}. - * - * - * @generated - */ - @Override - public Adapter createWeblogicServerTaskAdapter() - { - if (weblogicServerTaskItemProvider == null) - { - weblogicServerTaskItemProvider = new WeblogicServerTaskItemProvider(this); - } - - return weblogicServerTaskItemProvider; - } - - /** - * This keeps track of the one adapter used for all {@link com.gratex.oomph.task.server.WebsphereServerTask} instances. - * - * - * @generated - */ - protected WebsphereServerTaskItemProvider websphereServerTaskItemProvider; - - /** - * This creates an adapter for a {@link com.gratex.oomph.task.server.WebsphereServerTask}. - * - * - * @generated - */ - @Override - public Adapter createWebsphereServerTaskAdapter() - { - if (websphereServerTaskItemProvider == null) - { - websphereServerTaskItemProvider = new WebsphereServerTaskItemProvider(this); - } - - return websphereServerTaskItemProvider; - } - - /** - * This returns the root adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public ComposeableAdapterFactory getRootAdapterFactory() - { - return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); - } - - /** - * This sets the composed adapter factory that contains this factory. - * - * - * @generated - */ - @Override - public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) - { - this.parentAdapterFactory = parentAdapterFactory; - } - - /** - * - * - * @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. - * - * - * @generated - */ - @Override - public Adapter adapt(Notifier notifier, Object type) - { - return super.adapt(notifier, this); - } - - /** - * - * - * @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; - } - - /** - * - * - * @generated - */ - public List getChildCreationExtenders() - { - return childCreationExtenderManager.getChildCreationExtenders(); - } - - /** - * - * - * @generated - */ - @Override - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) - { - return childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); - } - - /** - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() - { - return childCreationExtenderManager; - } - - /** - * This adds a listener. - * - * - * @generated - */ - @Override - public void addListener(INotifyChangedListener notifyChangedListener) - { - changeNotifier.addListener(notifyChangedListener); - } - - /** - * This removes a listener. - * - * - * @generated - */ - @Override - public void removeListener(INotifyChangedListener notifyChangedListener) - { - changeNotifier.removeListener(notifyChangedListener); - } - - /** - * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. - * - * - * @generated - */ - @Override - 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. - * - * - * @generated - */ - @Override - public void dispose() - { - if (tomcatServerTaskItemProvider != null) - { - tomcatServerTaskItemProvider.dispose(); - } - if (weblogicServerTaskItemProvider != null) - { - weblogicServerTaskItemProvider.dispose(); - } - if (websphereServerTaskItemProvider != null) - { - websphereServerTaskItemProvider.dispose(); - } - } - - /** - * A child creation extender for the {@link BasePackage}. - * - * - * @generated - */ - public static class BaseChildCreationExtender implements IChildCreationExtender - { - /** - * The switch for creating child descriptors specific to each extended class. - * - * - * @generated - */ - protected static class CreationSwitch extends BaseSwitch - { - /** - * The child descriptors being populated. - * - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * - * @generated - */ - CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) - { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - - /** - * - * - * @generated - */ - @Override - public Object caseAnnotation(Annotation object) - { - newChildDescriptors.add(createChildParameter(BasePackage.Literals.ANNOTATION__CONTENTS, ServerFactory.eINSTANCE.createTomcatServerTask())); - - newChildDescriptors.add(createChildParameter(BasePackage.Literals.ANNOTATION__CONTENTS, ServerFactory.eINSTANCE.createWeblogicServerTask())); - - newChildDescriptors.add(createChildParameter(BasePackage.Literals.ANNOTATION__CONTENTS, ServerFactory.eINSTANCE.createWebsphereServerTask())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(Object feature, Object child) - { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - @Override - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) - { - ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject)object); - return result; - } - - /** - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() - { - return ServerEditPlugin.INSTANCE; - } - } - - /** - * A child creation extender for the {@link SetupPackage}. - * - * - * @generated - */ - public static class SetupChildCreationExtender implements IChildCreationExtender - { - /** - * The switch for creating child descriptors specific to each extended class. - * - * - * @generated - */ - protected static class CreationSwitch extends SetupSwitch - { - /** - * The child descriptors being populated. - * - * - * @generated - */ - protected List newChildDescriptors; - - /** - * The domain in which to create the children. - * - * - * @generated - */ - protected EditingDomain editingDomain; - - /** - * Creates the a switch for populating child descriptors in the given domain. - * - * - * @generated - */ - CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) - { - this.newChildDescriptors = newChildDescriptors; - this.editingDomain = editingDomain; - } - - /** - * - * - * @generated - */ - @Override - public Object caseSetupTaskContainer(SetupTaskContainer object) - { - newChildDescriptors - .add(createChildParameter(SetupPackage.Literals.SETUP_TASK_CONTAINER__SETUP_TASKS, ServerFactory.eINSTANCE.createTomcatServerTask())); - - newChildDescriptors - .add(createChildParameter(SetupPackage.Literals.SETUP_TASK_CONTAINER__SETUP_TASKS, ServerFactory.eINSTANCE.createWeblogicServerTask())); - - newChildDescriptors - .add(createChildParameter(SetupPackage.Literals.SETUP_TASK_CONTAINER__SETUP_TASKS, ServerFactory.eINSTANCE.createWebsphereServerTask())); - - return null; - } - - /** - * - * - * @generated - */ - protected CommandParameter createChildParameter(Object feature, Object child) - { - return new CommandParameter(null, feature, child); - } - - } - - /** - * - * - * @generated - */ - @Override - public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) - { - ArrayList result = new ArrayList(); - new CreationSwitch(result, editingDomain).doSwitch((EObject)object); - return result; - } - - /** - * - * - * @generated - */ - @Override - public ResourceLocator getResourceLocator() - { - return ServerEditPlugin.INSTANCE; - } - } + implements ComposeableAdapterFactory, IChangeNotifier, IDisposable, IChildCreationExtender { + /** + * This keeps track of the root adapter factory that delegates to this adapter + * factory. + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement + * {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This helps manage the child creation extenders. + * + * @generated + */ + protected ChildCreationExtenderManager childCreationExtenderManager = new ChildCreationExtenderManager( + ServerEditPlugin.INSTANCE, ServerPackage.eNS_URI); + + /** + * This keeps track of all the supported types checked by + * {@link #isFactoryForType isFactoryForType}. + * + * @generated + */ + protected Collection supportedTypes = new ArrayList<>(); + + /** + * This constructs an instance. + * + * @generated + */ + public ServerItemProviderAdapterFactory() { + 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 com.gratex.oomph.task.server.TomcatServerTask} instances. + * + * @generated + */ + protected TomcatServerTaskItemProvider tomcatServerTaskItemProvider; + + /** + * This creates an adapter for a + * {@link com.gratex.oomph.task.server.TomcatServerTask}. + * + * @generated + */ + @Override + public Adapter createTomcatServerTaskAdapter() { + if (tomcatServerTaskItemProvider == null) { + tomcatServerTaskItemProvider = new TomcatServerTaskItemProvider(this); + } + + return tomcatServerTaskItemProvider; + } + + /** + * This keeps track of the one adapter used for all + * {@link com.gratex.oomph.task.server.WeblogicServerTask} instances. + * + * @generated + */ + protected WeblogicServerTaskItemProvider weblogicServerTaskItemProvider; + + /** + * This creates an adapter for a + * {@link com.gratex.oomph.task.server.WeblogicServerTask}. + * + * @generated + */ + @Override + public Adapter createWeblogicServerTaskAdapter() { + if (weblogicServerTaskItemProvider == null) { + weblogicServerTaskItemProvider = new WeblogicServerTaskItemProvider(this); + } + + return weblogicServerTaskItemProvider; + } + + /** + * This keeps track of the one adapter used for all + * {@link com.gratex.oomph.task.server.WebsphereServerTask} instances. + * + * @generated + */ + protected WebsphereServerTaskItemProvider websphereServerTaskItemProvider; + + /** + * This creates an adapter for a + * {@link com.gratex.oomph.task.server.WebsphereServerTask}. + * + * @generated + */ + @Override + public Adapter createWebsphereServerTaskAdapter() { + if (websphereServerTaskItemProvider == null) { + websphereServerTaskItemProvider = new WebsphereServerTaskItemProvider(this); + } + + return websphereServerTaskItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * @generated + */ + @Override + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * @generated + */ + @Override + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @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. + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @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; + } + + /** + * + * + * @generated + */ + public List getChildCreationExtenders() { + return childCreationExtenderManager.getChildCreationExtenders(); + } + + /** + * + * + * @generated + */ + @Override + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + return childCreationExtenderManager.getNewChildDescriptors(object, editingDomain); + } + + /** + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return childCreationExtenderManager; + } + + /** + * This adds a listener. + * + * @generated + */ + @Override + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * @generated + */ + @Override + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to + * {@link #parentAdapterFactory}. + * + * @generated + */ + @Override + 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. + * + * @generated + */ + @Override + public void dispose() { + if (tomcatServerTaskItemProvider != null) + tomcatServerTaskItemProvider.dispose(); + if (weblogicServerTaskItemProvider != null) + weblogicServerTaskItemProvider.dispose(); + if (websphereServerTaskItemProvider != null) + websphereServerTaskItemProvider.dispose(); + } + + /** + * A child creation extender for the {@link BasePackage}. + * + * @generated + */ + public static class BaseChildCreationExtender implements IChildCreationExtender { + /** + * The switch for creating child descriptors specific to each extended class. + * + * + * @generated + */ + protected static class CreationSwitch extends BaseSwitch { + /** + * The child descriptors being populated. + * + * @generated + */ + protected List newChildDescriptors; + + /** + * The domain in which to create the children. + * + * @generated + */ + protected EditingDomain editingDomain; + + /** + * Creates the a switch for populating child descriptors in the given domain. + * + * + * @generated + */ + CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { + this.newChildDescriptors = newChildDescriptors; + this.editingDomain = editingDomain; + } + + /** + * + * + * @generated + */ + @Override + public Object caseAnnotation(Annotation object) { + newChildDescriptors.add(createChildParameter(BasePackage.Literals.ANNOTATION__CONTENTS, + ServerFactory.eINSTANCE.createTomcatServerTask())); + + newChildDescriptors.add(createChildParameter(BasePackage.Literals.ANNOTATION__CONTENTS, + ServerFactory.eINSTANCE.createWeblogicServerTask())); + + newChildDescriptors.add(createChildParameter(BasePackage.Literals.ANNOTATION__CONTENTS, + ServerFactory.eINSTANCE.createWebsphereServerTask())); + + return null; + } + + /** + * + * + * @generated + */ + protected CommandParameter createChildParameter(Object feature, Object child) { + return new CommandParameter(null, feature, child); + } + + } + + /** + * + * + * @generated + */ + @Override + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + ArrayList result = new ArrayList<>(); + new CreationSwitch(result, editingDomain).doSwitch((EObject) object); + return result; + } + + /** + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ServerEditPlugin.INSTANCE; + } + } + + /** + * A child creation extender for the {@link SetupPackage}. + * + * @generated + */ + public static class SetupChildCreationExtender implements IChildCreationExtender { + /** + * The switch for creating child descriptors specific to each extended class. + * + * + * @generated + */ + protected static class CreationSwitch extends SetupSwitch { + /** + * The child descriptors being populated. + * + * @generated + */ + protected List newChildDescriptors; + + /** + * The domain in which to create the children. + * + * @generated + */ + protected EditingDomain editingDomain; + + /** + * Creates the a switch for populating child descriptors in the given domain. + * + * + * @generated + */ + CreationSwitch(List newChildDescriptors, EditingDomain editingDomain) { + this.newChildDescriptors = newChildDescriptors; + this.editingDomain = editingDomain; + } + + /** + * + * + * @generated + */ + @Override + public Object caseSetupTaskContainer(SetupTaskContainer object) { + newChildDescriptors.add(createChildParameter(SetupPackage.Literals.SETUP_TASK_CONTAINER__SETUP_TASKS, + ServerFactory.eINSTANCE.createTomcatServerTask())); + + newChildDescriptors.add(createChildParameter(SetupPackage.Literals.SETUP_TASK_CONTAINER__SETUP_TASKS, + ServerFactory.eINSTANCE.createWeblogicServerTask())); + + newChildDescriptors.add(createChildParameter(SetupPackage.Literals.SETUP_TASK_CONTAINER__SETUP_TASKS, + ServerFactory.eINSTANCE.createWebsphereServerTask())); + + return null; + } + + /** + * + * + * @generated + */ + protected CommandParameter createChildParameter(Object feature, Object child) { + return new CommandParameter(null, feature, child); + } + + } + + /** + * + * + * @generated + */ + @Override + public Collection getNewChildDescriptors(Object object, EditingDomain editingDomain) { + ArrayList result = new ArrayList<>(); + new CreationSwitch(result, editingDomain).doSwitch((EObject) object); + return result; + } + + /** + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ServerEditPlugin.INSTANCE; + } + } } diff --git a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/TomcatServerTaskItemProvider.java b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/TomcatServerTaskItemProvider.java index 4f9c46c..7ffddcb 100644 --- a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/TomcatServerTaskItemProvider.java +++ b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/TomcatServerTaskItemProvider.java @@ -2,6 +2,9 @@ */ package com.gratex.oomph.task.server.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; @@ -12,202 +15,202 @@ import com.gratex.oomph.task.server.ServerPackage; import com.gratex.oomph.task.server.TomcatServerTask; -import java.util.Collection; -import java.util.List; - /** - * This is the item provider adapter for a {@link com.gratex.oomph.task.server.TomcatServerTask} object. - * - * + * This is the item provider adapter for a + * {@link com.gratex.oomph.task.server.TomcatServerTask} object. + * * @generated */ -public class TomcatServerTaskItemProvider extends ServerItemProvider -{ - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public TomcatServerTaskItemProvider(AdapterFactory adapterFactory) - { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) - { - if (itemPropertyDescriptors == null) - { - super.getPropertyDescriptors(object); - - addJreVersionPropertyDescriptor(object); - addPortPropertyDescriptor(object); - addHttpsPortPropertyDescriptor(object); - addServerVersionPropertyDescriptor(object); - addLaunchProgramArgsPropertyDescriptor(object); - addLaunchVmArgsPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Jre Version feature. - * - * - * @generated - */ - protected void addJreVersionPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_TomcatServerTask_jreVersion_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_jreVersion_feature", "_UI_TomcatServerTask_type"), - ServerPackage.Literals.TOMCAT_SERVER_TASK__JRE_VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Port feature. - * - * - * @generated - */ - protected void addPortPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_TomcatServerTask_port_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_port_feature", "_UI_TomcatServerTask_type"), - ServerPackage.Literals.TOMCAT_SERVER_TASK__PORT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Https Port feature. - * - * - * @generated - */ - protected void addHttpsPortPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_TomcatServerTask_httpsPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_httpsPort_feature", "_UI_TomcatServerTask_type"), - ServerPackage.Literals.TOMCAT_SERVER_TASK__HTTPS_PORT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Server Version feature. - * - * - * @generated - */ - protected void addServerVersionPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_TomcatServerTask_serverVersion_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_serverVersion_feature", "_UI_TomcatServerTask_type"), - ServerPackage.Literals.TOMCAT_SERVER_TASK__SERVER_VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Launch Program Args feature. - * - * - * @generated - */ - protected void addLaunchProgramArgsPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_TomcatServerTask_launchProgramArgs_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_launchProgramArgs_feature", "_UI_TomcatServerTask_type"), - ServerPackage.Literals.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS, true, true, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Launch Vm Args feature. - * - * - * @generated - */ - protected void addLaunchVmArgsPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_TomcatServerTask_launchVmArgs_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_launchVmArgs_feature", "_UI_TomcatServerTask_type"), - ServerPackage.Literals.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS, true, true, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns TomcatServerTask.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) - { - return overlayImage(object, getResourceLocator().getImage("full/obj16/TomcatServerTask")); - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() - { - return true; - } - - @Override - public String getText(Object object) - { - String serverName = ((TomcatServerTask)object).getServerName(); - return serverName == null || serverName.length() == 0 ? getString("_UI_TomcatServerTask_type") : serverName; - } - - /** - * 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}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) - { - updateChildren(notification); - - switch (notification.getFeatureID(TomcatServerTask.class)) - { - case ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION: - case ServerPackage.TOMCAT_SERVER_TASK__PORT: - case ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT: - case ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION: - case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS: - case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS: - 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. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) - { - super.collectNewChildDescriptors(newChildDescriptors, object); - } +public class TomcatServerTaskItemProvider extends ServerItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public TomcatServerTaskItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addJreVersionPropertyDescriptor(object); + addPortPropertyDescriptor(object); + addHttpsPortPropertyDescriptor(object); + addServerVersionPropertyDescriptor(object); + addLaunchProgramArgsPropertyDescriptor(object); + addLaunchVmArgsPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Jre Version feature. + * + * @generated + */ + protected void addJreVersionPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_TomcatServerTask_jreVersion_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_jreVersion_feature", + "_UI_TomcatServerTask_type"), + ServerPackage.Literals.TOMCAT_SERVER_TASK__JRE_VERSION, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Port feature. + * + * + * @generated + */ + protected void addPortPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_TomcatServerTask_port_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_port_feature", + "_UI_TomcatServerTask_type"), + ServerPackage.Literals.TOMCAT_SERVER_TASK__PORT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Https Port feature. + * + * @generated + */ + protected void addHttpsPortPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_TomcatServerTask_httpsPort_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_httpsPort_feature", + "_UI_TomcatServerTask_type"), + ServerPackage.Literals.TOMCAT_SERVER_TASK__HTTPS_PORT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Server Version feature. + * + * @generated + */ + protected void addServerVersionPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_TomcatServerTask_serverVersion_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_serverVersion_feature", + "_UI_TomcatServerTask_type"), + ServerPackage.Literals.TOMCAT_SERVER_TASK__SERVER_VERSION, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Launch Program Args feature. + * + * @generated + */ + protected void addLaunchProgramArgsPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_TomcatServerTask_launchProgramArgs_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_launchProgramArgs_feature", + "_UI_TomcatServerTask_type"), + ServerPackage.Literals.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS, true, true, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Launch Vm Args feature. + * + * @generated + */ + protected void addLaunchVmArgsPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_TomcatServerTask_launchVmArgs_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_TomcatServerTask_launchVmArgs_feature", + "_UI_TomcatServerTask_type"), + ServerPackage.Literals.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS, true, true, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This returns TomcatServerTask.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/TomcatServerTask")); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + @Override + public String getText(Object object) { + String serverName = ((TomcatServerTask) object).getServerName(); + return serverName == null || serverName.length() == 0 ? getString("_UI_TomcatServerTask_type") : serverName; + } + + /** + * 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}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(TomcatServerTask.class)) { + case ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION: + case ServerPackage.TOMCAT_SERVER_TASK__PORT: + case ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT: + case ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION: + case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS: + case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS: + 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. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } } diff --git a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/WeblogicServerTaskItemProvider.java b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/WeblogicServerTaskItemProvider.java index be4fd8e..9fbbd54 100644 --- a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/WeblogicServerTaskItemProvider.java +++ b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/WeblogicServerTaskItemProvider.java @@ -2,6 +2,9 @@ */ package com.gratex.oomph.task.server.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; @@ -12,202 +15,202 @@ import com.gratex.oomph.task.server.ServerPackage; import com.gratex.oomph.task.server.WeblogicServerTask; -import java.util.Collection; -import java.util.List; - /** - * This is the item provider adapter for a {@link com.gratex.oomph.task.server.WeblogicServerTask} object. - * - * + * This is the item provider adapter for a + * {@link com.gratex.oomph.task.server.WeblogicServerTask} object. + * * @generated */ -public class WeblogicServerTaskItemProvider extends ServerItemProvider -{ - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public WeblogicServerTaskItemProvider(AdapterFactory adapterFactory) - { - super(adapterFactory); - } - - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) - { - if (itemPropertyDescriptors == null) - { - super.getPropertyDescriptors(object); - - addJreVersionPropertyDescriptor(object); - addPortPropertyDescriptor(object); - addHttpsPortPropertyDescriptor(object); - addDebugPortPropertyDescriptor(object); - addUsernamePropertyDescriptor(object); - addPasswordPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } - - /** - * This adds a property descriptor for the Jre Version feature. - * - * - * @generated - */ - protected void addJreVersionPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WeblogicServerTask_jreVersion_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_jreVersion_feature", "_UI_WeblogicServerTask_type"), - ServerPackage.Literals.WEBLOGIC_SERVER_TASK__JRE_VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Port feature. - * - * - * @generated - */ - protected void addPortPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WeblogicServerTask_port_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_port_feature", "_UI_WeblogicServerTask_type"), - ServerPackage.Literals.WEBLOGIC_SERVER_TASK__PORT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Https Port feature. - * - * - * @generated - */ - protected void addHttpsPortPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WeblogicServerTask_httpsPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_httpsPort_feature", "_UI_WeblogicServerTask_type"), - ServerPackage.Literals.WEBLOGIC_SERVER_TASK__HTTPS_PORT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Debug Port feature. - * - * - * @generated - */ - protected void addDebugPortPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WeblogicServerTask_debugPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_debugPort_feature", "_UI_WeblogicServerTask_type"), - ServerPackage.Literals.WEBLOGIC_SERVER_TASK__DEBUG_PORT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Username feature. - * - * - * @generated - */ - protected void addUsernamePropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WeblogicServerTask_username_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_username_feature", "_UI_WeblogicServerTask_type"), - ServerPackage.Literals.WEBLOGIC_SERVER_TASK__USERNAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This adds a property descriptor for the Password feature. - * - * - * @generated - */ - protected void addPasswordPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WeblogicServerTask_password_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_password_feature", "_UI_WeblogicServerTask_type"), - ServerPackage.Literals.WEBLOGIC_SERVER_TASK__PASSWORD, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } - - /** - * This returns WeblogicServerTask.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) - { - return overlayImage(object, getResourceLocator().getImage("full/obj16/WeblogicServerTask")); - } - - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() - { - return true; - } - - @Override - public String getText(Object object) - { - String serverName = ((WeblogicServerTask)object).getServerName(); - return serverName == null || serverName.length() == 0 ? getString("_UI_WeblogicServerTask_type") : serverName; - } - - /** - * 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}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) - { - updateChildren(notification); - - switch (notification.getFeatureID(WeblogicServerTask.class)) - { - case ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION: - case ServerPackage.WEBLOGIC_SERVER_TASK__PORT: - case ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT: - case ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT: - case ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME: - case ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD: - 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. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) - { - super.collectNewChildDescriptors(newChildDescriptors, object); - } +public class WeblogicServerTaskItemProvider extends ServerItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public WeblogicServerTaskItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addJreVersionPropertyDescriptor(object); + addPortPropertyDescriptor(object); + addHttpsPortPropertyDescriptor(object); + addDebugPortPropertyDescriptor(object); + addUsernamePropertyDescriptor(object); + addPasswordPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Jre Version feature. + * + * @generated + */ + protected void addJreVersionPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_WeblogicServerTask_jreVersion_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_jreVersion_feature", + "_UI_WeblogicServerTask_type"), + ServerPackage.Literals.WEBLOGIC_SERVER_TASK__JRE_VERSION, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Port feature. + * + * + * @generated + */ + protected void addPortPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_WeblogicServerTask_port_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_port_feature", + "_UI_WeblogicServerTask_type"), + ServerPackage.Literals.WEBLOGIC_SERVER_TASK__PORT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Https Port feature. + * + * @generated + */ + protected void addHttpsPortPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_WeblogicServerTask_httpsPort_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_httpsPort_feature", + "_UI_WeblogicServerTask_type"), + ServerPackage.Literals.WEBLOGIC_SERVER_TASK__HTTPS_PORT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Debug Port feature. + * + * @generated + */ + protected void addDebugPortPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_WeblogicServerTask_debugPort_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_debugPort_feature", + "_UI_WeblogicServerTask_type"), + ServerPackage.Literals.WEBLOGIC_SERVER_TASK__DEBUG_PORT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Username feature. + * + * @generated + */ + protected void addUsernamePropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_WeblogicServerTask_username_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_username_feature", + "_UI_WeblogicServerTask_type"), + ServerPackage.Literals.WEBLOGIC_SERVER_TASK__USERNAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This adds a property descriptor for the Password feature. + * + * @generated + */ + protected void addPasswordPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_WeblogicServerTask_password_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WeblogicServerTask_password_feature", + "_UI_WeblogicServerTask_type"), + ServerPackage.Literals.WEBLOGIC_SERVER_TASK__PASSWORD, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } + + /** + * This returns WeblogicServerTask.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/WeblogicServerTask")); + } + + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } + + @Override + public String getText(Object object) { + String serverName = ((WeblogicServerTask) object).getServerName(); + return serverName == null || serverName.length() == 0 ? getString("_UI_WeblogicServerTask_type") : serverName; + } + + /** + * 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}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(WeblogicServerTask.class)) { + case ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION: + case ServerPackage.WEBLOGIC_SERVER_TASK__PORT: + case ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT: + case ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT: + case ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME: + case ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD: + 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. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } } diff --git a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/WebsphereServerTaskItemProvider.java b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/WebsphereServerTaskItemProvider.java index e7aed8f..ede9c87 100644 --- a/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/WebsphereServerTaskItemProvider.java +++ b/com.gratex.oomph.task.server.edit/src/com/gratex/oomph/task/server/provider/WebsphereServerTaskItemProvider.java @@ -2,6 +2,9 @@ */ package com.gratex.oomph.task.server.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; @@ -12,282 +15,292 @@ import com.gratex.oomph.task.server.ServerPackage; import com.gratex.oomph.task.server.WebsphereServerTask; -import java.util.Collection; -import java.util.List; - /** - * This is the item provider adapter for a {@link com.gratex.oomph.task.server.WebsphereServerTask} object. - * - * + * This is the item provider adapter for a + * {@link com.gratex.oomph.task.server.WebsphereServerTask} object. + * * @generated */ -public class WebsphereServerTaskItemProvider extends ServerItemProvider -{ - /** - * This constructs an instance from a factory and a notifier. - * - * - * @generated - */ - public WebsphereServerTaskItemProvider(AdapterFactory adapterFactory) - { - super(adapterFactory); - } +public class WebsphereServerTaskItemProvider extends ServerItemProvider { + /** + * This constructs an instance from a factory and a notifier. + * + * @generated + */ + public WebsphereServerTaskItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } - /** - * This returns the property descriptors for the adapted class. - * - * - * @generated - */ - @Override - public List getPropertyDescriptors(Object object) - { - if (itemPropertyDescriptors == null) - { - super.getPropertyDescriptors(object); + /** + * This returns the property descriptors for the adapted class. + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); - addBaseServerNamePropertyDescriptor(object); - addProfilePathPropertyDescriptor(object); - addProfileNamePropertyDescriptor(object); - addBootstrapPortPropertyDescriptor(object); - addIcpPortPropertyDescriptor(object); - addSoapPortPropertyDescriptor(object); - addRemoteOsUserPropertyDescriptor(object); - addRemoteOsPasswordPropertyDescriptor(object); - addServerVersionPropertyDescriptor(object); - addSecurityUserIdPropertyDescriptor(object); - addSecurityUserPasswordPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } + addBaseServerNamePropertyDescriptor(object); + addProfilePathPropertyDescriptor(object); + addProfileNamePropertyDescriptor(object); + addBootstrapPortPropertyDescriptor(object); + addIcpPortPropertyDescriptor(object); + addSoapPortPropertyDescriptor(object); + addRemoteOsUserPropertyDescriptor(object); + addRemoteOsPasswordPropertyDescriptor(object); + addServerVersionPropertyDescriptor(object); + addSecurityUserIdPropertyDescriptor(object); + addSecurityUserPasswordPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } - /** - * This adds a property descriptor for the Base Server Name feature. - * - * - * @generated - */ - protected void addBaseServerNamePropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_baseServerName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_baseServerName_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Base Server Name feature. + * + * @generated + */ + protected void addBaseServerNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_WebsphereServerTask_baseServerName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_baseServerName_feature", + "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This adds a property descriptor for the Profile Path feature. - * - * - * @generated - */ - protected void addProfilePathPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_profilePath_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_profilePath_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__PROFILE_PATH, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Profile Path feature. + * + * @generated + */ + protected void addProfilePathPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_WebsphereServerTask_profilePath_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_profilePath_feature", + "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__PROFILE_PATH, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This adds a property descriptor for the Profile Name feature. - * - * - * @generated - */ - protected void addProfileNamePropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_profileName_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_profileName_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__PROFILE_NAME, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Profile Name feature. + * + * @generated + */ + protected void addProfileNamePropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_WebsphereServerTask_profileName_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_profileName_feature", + "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__PROFILE_NAME, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This adds a property descriptor for the Bootstrap Port feature. - * - * - * @generated - */ - protected void addBootstrapPortPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_bootstrapPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_bootstrapPort_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Bootstrap Port feature. + * + * @generated + */ + protected void addBootstrapPortPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_WebsphereServerTask_bootstrapPort_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_bootstrapPort_feature", + "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This adds a property descriptor for the Icp Port feature. - * - * - * @generated - */ - protected void addIcpPortPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_icpPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_icpPort_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__ICP_PORT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Icp Port feature. + * + * @generated + */ + protected void addIcpPortPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_WebsphereServerTask_icpPort_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_icpPort_feature", + "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__ICP_PORT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This adds a property descriptor for the Soap Port feature. - * - * - * @generated - */ - protected void addSoapPortPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_soapPort_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_soapPort_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__SOAP_PORT, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Soap Port feature. + * + * @generated + */ + protected void addSoapPortPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_WebsphereServerTask_soapPort_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_soapPort_feature", + "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__SOAP_PORT, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This adds a property descriptor for the Remote Os User feature. - * - * - * @generated - */ - protected void addRemoteOsUserPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_remoteOsUser_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_remoteOsUser_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Remote Os User feature. + * + * @generated + */ + protected void addRemoteOsUserPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_WebsphereServerTask_remoteOsUser_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_remoteOsUser_feature", + "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This adds a property descriptor for the Remote Os Password feature. - * - * - * @generated - */ - protected void addRemoteOsPasswordPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_remoteOsPassword_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_remoteOsPassword_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Remote Os Password feature. + * + * @generated + */ + protected void addRemoteOsPasswordPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_WebsphereServerTask_remoteOsPassword_feature"), + getString("_UI_PropertyDescriptor_description", + "_UI_WebsphereServerTask_remoteOsPassword_feature", "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This adds a property descriptor for the Server Version feature. - * - * - * @generated - */ - protected void addServerVersionPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_serverVersion_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_serverVersion_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__SERVER_VERSION, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Server Version feature. + * + * @generated + */ + protected void addServerVersionPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_WebsphereServerTask_serverVersion_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_serverVersion_feature", + "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__SERVER_VERSION, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This adds a property descriptor for the Security User Id feature. - * - * - * @generated - */ - protected void addSecurityUserIdPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_securityUserId_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_securityUserId_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Security User Id feature. + * + * @generated + */ + protected void addSecurityUserIdPropertyDescriptor(Object object) { + itemPropertyDescriptors.add(createItemPropertyDescriptor( + ((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(), + getString("_UI_WebsphereServerTask_securityUserId_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_securityUserId_feature", + "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This adds a property descriptor for the Security User Password feature. - * - * - * @generated - */ - protected void addSecurityUserPasswordPropertyDescriptor(Object object) - { - itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), - getString("_UI_WebsphereServerTask_securityUserPassword_feature"), - getString("_UI_PropertyDescriptor_description", "_UI_WebsphereServerTask_securityUserPassword_feature", "_UI_WebsphereServerTask_type"), - ServerPackage.Literals.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD, true, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); - } + /** + * This adds a property descriptor for the Security User Password feature. + * + * @generated + */ + protected void addSecurityUserPasswordPropertyDescriptor(Object object) { + itemPropertyDescriptors + .add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), + getResourceLocator(), getString("_UI_WebsphereServerTask_securityUserPassword_feature"), + getString("_UI_PropertyDescriptor_description", + "_UI_WebsphereServerTask_securityUserPassword_feature", "_UI_WebsphereServerTask_type"), + ServerPackage.Literals.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD, true, false, false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null)); + } - /** - * This returns WebsphereServerTask.gif. - * - * - * @generated - */ - @Override - public Object getImage(Object object) - { - return overlayImage(object, getResourceLocator().getImage("full/obj16/WebsphereServerTask")); - } + /** + * This returns WebsphereServerTask.gif. + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/WebsphereServerTask")); + } - /** - * - * - * @generated - */ - @Override - protected boolean shouldComposeCreationImage() - { - return true; - } + /** + * + * + * @generated + */ + @Override + protected boolean shouldComposeCreationImage() { + return true; + } - @Override - public String getText(Object object) - { - String serverName = ((WebsphereServerTask)object).getServerName(); - return serverName == null || serverName.length() == 0 ? getString("_UI_WebsphereServerTask_type") : serverName; - } + @Override + public String getText(Object object) { + String serverName = ((WebsphereServerTask) object).getServerName(); + return serverName == null || serverName.length() == 0 ? getString("_UI_WebsphereServerTask_type") : serverName; + } - /** - * 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}. - * - * - * @generated - */ - @Override - public void notifyChanged(Notification notification) - { - updateChildren(notification); + /** + * 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}. + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); - switch (notification.getFeatureID(WebsphereServerTask.class)) - { - case ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME: - case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH: - case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME: - case ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT: - case ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT: - case ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT: - case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER: - case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD: - case ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION: - case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID: - case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } + switch (notification.getFeatureID(WebsphereServerTask.class)) { + case ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME: + case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH: + case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME: + case ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT: + case ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT: + case ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT: + case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER: + case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD: + case ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION: + case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID: + case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD: + 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. - * - * - * @generated - */ - @Override - protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) - { - super.collectNewChildDescriptors(newChildDescriptors, object); - } + /** + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing + * the children that can be created under this object. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } } diff --git a/com.gratex.oomph.task.server.parent/pom.xml b/com.gratex.oomph.task.server.parent/pom.xml index b9b0b4a..85ef766 100644 --- a/com.gratex.oomph.task.server.parent/pom.xml +++ b/com.gratex.oomph.task.server.parent/pom.xml @@ -21,7 +21,7 @@ http://download.oracle.com/otn_software/oepe/neon/ http://download.oracle.com/otn_software/oepe/12.2.1.3.1/neon/repository/ http://download.oracle.com/otn_software/oepe/12.2.1.3.1/neon/repository/dependencies - http://download.eclipse.org/sapphire/9.0.5/repository/ + https://download.oracle.com/otn_software/oepe/library/eclipse-sapphire-9.0.5/ http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/neon/ http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/updates/wdt/photon/ diff --git a/com.gratex.oomph.task.server/model/Server-1.0.ecore b/com.gratex.oomph.task.server/model/Server-1.0.ecore index b06355a..103149f 100644 --- a/com.gratex.oomph.task.server/model/Server-1.0.ecore +++ b/com.gratex.oomph.task.server/model/Server-1.0.ecore @@ -88,6 +88,8 @@ + + diff --git a/com.gratex.oomph.task.server/model/Server.ecore b/com.gratex.oomph.task.server/model/Server.ecore index 84f5903..2d71505 100644 --- a/com.gratex.oomph.task.server/model/Server.ecore +++ b/com.gratex.oomph.task.server/model/Server.ecore @@ -88,6 +88,8 @@ + + diff --git a/com.gratex.oomph.task.server/model/Server.genmodel b/com.gratex.oomph.task.server/model/Server.genmodel index fa941a8..2db0c95 100644 --- a/com.gratex.oomph.task.server/model/Server.genmodel +++ b/com.gratex.oomph.task.server/model/Server.genmodel @@ -16,6 +16,8 @@ + + diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/Server.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/Server.java index 554062c..86c3d97 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/Server.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/Server.java @@ -5,215 +5,232 @@ import org.eclipse.oomph.setup.SetupTask; /** - * - * A representation of the model object 'Server'. - * + * A representation of the model object + * 'Server'. * *

* The following features are supported: *

*
    - *
  • {@link com.gratex.oomph.task.server.Server#getServerName Server Name}
  • - *
  • {@link com.gratex.oomph.task.server.Server#getLocation Location}
  • - *
  • {@link com.gratex.oomph.task.server.Server#getRuntimeName Runtime Name}
  • - *
  • {@link com.gratex.oomph.task.server.Server#getHostname Hostname}
  • - *
  • {@link com.gratex.oomph.task.server.Server#isCleanPreviousRuntimes Clean Previous Runtimes}
  • - *
  • {@link com.gratex.oomph.task.server.Server#getStartTimeout Start Timeout}
  • - *
  • {@link com.gratex.oomph.task.server.Server#getStopTimeout Stop Timeout}
  • + *
  • {@link com.gratex.oomph.task.server.Server#getServerName Server + * Name}
  • + *
  • {@link com.gratex.oomph.task.server.Server#getLocation + * Location}
  • + *
  • {@link com.gratex.oomph.task.server.Server#getRuntimeName Runtime + * Name}
  • + *
  • {@link com.gratex.oomph.task.server.Server#getHostname + * Hostname}
  • + *
  • {@link com.gratex.oomph.task.server.Server#isCleanPreviousRuntimes + * Clean Previous Runtimes}
  • + *
  • {@link com.gratex.oomph.task.server.Server#getStartTimeout Start + * Timeout}
  • + *
  • {@link com.gratex.oomph.task.server.Server#getStopTimeout Stop + * Timeout}
  • *
* * @see com.gratex.oomph.task.server.ServerPackage#getServer() * @model abstract="true" * @generated */ -public interface Server extends SetupTask -{ - /** - * Returns the value of the 'Server Name' attribute. - * - *

- * If the meaning of the 'Server Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Server Name' attribute. - * @see #setServerName(String) - * @see com.gratex.oomph.task.server.ServerPackage#getServer_ServerName() - * @model required="true" - * @generated - */ - String getServerName(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.Server#getServerName Server Name}' attribute. - * - * - * @param value the new value of the 'Server Name' attribute. - * @see #getServerName() - * @generated - */ - void setServerName(String value); - - /** - * Returns the value of the 'Location' attribute. - * - *

- * If the meaning of the 'Location' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Location' attribute. - * @see #setLocation(String) - * @see com.gratex.oomph.task.server.ServerPackage#getServer_Location() - * @model required="true" - * @generated - */ - String getLocation(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.Server#getLocation Location}' attribute. - * - * - * @param value the new value of the 'Location' attribute. - * @see #getLocation() - * @generated - */ - void setLocation(String value); - - /** - * Returns the value of the 'Runtime Name' attribute. - * - *

- * If the meaning of the 'Runtime Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Runtime Name' attribute. - * @see #setRuntimeName(String) - * @see com.gratex.oomph.task.server.ServerPackage#getServer_RuntimeName() - * @model required="true" - * @generated - */ - String getRuntimeName(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.Server#getRuntimeName Runtime Name}' attribute. - * - * - * @param value the new value of the 'Runtime Name' attribute. - * @see #getRuntimeName() - * @generated - */ - void setRuntimeName(String value); - - /** - * Returns the value of the 'Hostname' attribute. - * The default value is "localhost". - * - *

- * If the meaning of the 'Hostname' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Hostname' attribute. - * @see #setHostname(String) - * @see com.gratex.oomph.task.server.ServerPackage#getServer_Hostname() - * @model default="localhost" required="true" - * @generated - */ - String getHostname(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.Server#getHostname Hostname}' attribute. - * - * - * @param value the new value of the 'Hostname' attribute. - * @see #getHostname() - * @generated - */ - void setHostname(String value); - - /** - * Returns the value of the 'Clean Previous Runtimes' attribute. - * The default value is "false". - * - *

- * If the meaning of the 'Clean Previous Runtimes' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Clean Previous Runtimes' attribute. - * @see #setCleanPreviousRuntimes(boolean) - * @see com.gratex.oomph.task.server.ServerPackage#getServer_CleanPreviousRuntimes() - * @model default="false" - * @generated - */ - boolean isCleanPreviousRuntimes(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.Server#isCleanPreviousRuntimes Clean Previous Runtimes}' attribute. - * - * - * @param value the new value of the 'Clean Previous Runtimes' attribute. - * @see #isCleanPreviousRuntimes() - * @generated - */ - void setCleanPreviousRuntimes(boolean value); - - /** - * Returns the value of the 'Start Timeout' attribute. - * - *

- * If the meaning of the 'Start Timeout' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Start Timeout' attribute. - * @see #setStartTimeout(String) - * @see com.gratex.oomph.task.server.ServerPackage#getServer_StartTimeout() - * @model - * @generated - */ - String getStartTimeout(); - - Integer startTimeout(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.Server#getStartTimeout Start Timeout}' attribute. - * - * - * @param value the new value of the 'Start Timeout' attribute. - * @see #getStartTimeout() - * @generated - */ - void setStartTimeout(String value); - - /** - * Returns the value of the 'Stop Timeout' attribute. - * - *

- * If the meaning of the 'Stop Timeout' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Stop Timeout' attribute. - * @see #setStopTimeout(String) - * @see com.gratex.oomph.task.server.ServerPackage#getServer_StopTimeout() - * @model - * @generated - */ - String getStopTimeout(); - - Integer stopTimeout(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.Server#getStopTimeout Stop Timeout}' attribute. - * - * - * @param value the new value of the 'Stop Timeout' attribute. - * @see #getStopTimeout() - * @generated - */ - void setStopTimeout(String value); +public interface Server extends SetupTask { + /** + * Returns the value of the 'Server Name' attribute. + *

+ * If the meaning of the 'Server Name' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Server Name' attribute. + * @see #setServerName(String) + * @see com.gratex.oomph.task.server.ServerPackage#getServer_ServerName() + * @model required="true" + * @generated + */ + String getServerName(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.Server#getServerName Server + * Name}' attribute. + * + * @param value the new value of the 'Server Name' attribute. + * @see #getServerName() + * @generated + */ + void setServerName(String value); + + /** + * Returns the value of the 'Location' attribute. + *

+ * If the meaning of the 'Location' attribute isn't clear, there really + * should be more of a description here... + *

+ * + * + * @return the value of the 'Location' attribute. + * @see #setLocation(String) + * @see com.gratex.oomph.task.server.ServerPackage#getServer_Location() + * @model required="true" + * @generated + */ + String getLocation(); + + /** + * Sets the value of the '{@link com.gratex.oomph.task.server.Server#getLocation + * Location}' attribute. + * + * @param value the new value of the 'Location' attribute. + * @see #getLocation() + * @generated + */ + void setLocation(String value); + + /** + * Returns the value of the 'Runtime Name' attribute. + *

+ * If the meaning of the 'Runtime Name' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Runtime Name' attribute. + * @see #setRuntimeName(String) + * @see com.gratex.oomph.task.server.ServerPackage#getServer_RuntimeName() + * @model required="true" + * @generated + */ + String getRuntimeName(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.Server#getRuntimeName Runtime + * Name}' attribute. + * + * @param value the new value of the 'Runtime Name' attribute. + * @see #getRuntimeName() + * @generated + */ + void setRuntimeName(String value); + + /** + * Returns the value of the 'Hostname' attribute. The default + * value is "localhost". + *

+ * If the meaning of the 'Hostname' attribute isn't clear, there really + * should be more of a description here... + *

+ * + * + * @return the value of the 'Hostname' attribute. + * @see #setHostname(String) + * @see com.gratex.oomph.task.server.ServerPackage#getServer_Hostname() + * @model default="localhost" required="true" + * @generated + */ + String getHostname(); + + /** + * Sets the value of the '{@link com.gratex.oomph.task.server.Server#getHostname + * Hostname}' attribute. + * + * @param value the new value of the 'Hostname' attribute. + * @see #getHostname() + * @generated + */ + void setHostname(String value); + + /** + * Returns the value of the 'Clean Previous Runtimes' attribute. + * The default value is "false". + *

+ * If the meaning of the 'Clean Previous Runtimes' attribute isn't + * clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Clean Previous Runtimes' attribute. + * @see #setCleanPreviousRuntimes(boolean) + * @see com.gratex.oomph.task.server.ServerPackage#getServer_CleanPreviousRuntimes() + * @model default="false" + * @generated + */ + boolean isCleanPreviousRuntimes(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.Server#isCleanPreviousRuntimes Clean + * Previous Runtimes}' attribute. + * + * @param value the new value of the 'Clean Previous Runtimes' + * attribute. + * @see #isCleanPreviousRuntimes() + * @generated + */ + void setCleanPreviousRuntimes(boolean value); + + /** + * Returns the value of the 'Start Timeout' attribute. + *

+ * If the meaning of the 'Start Timeout' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Start Timeout' attribute. + * @see #setStartTimeout(String) + * @see com.gratex.oomph.task.server.ServerPackage#getServer_StartTimeout() + * @model + * @generated + */ + String getStartTimeout(); + + Integer startTimeout(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.Server#getStartTimeout Start + * Timeout}' attribute. + * + * @param value the new value of the 'Start Timeout' attribute. + * @see #getStartTimeout() + * @generated + */ + void setStartTimeout(String value); + + /** + * Returns the value of the 'Stop Timeout' attribute. + *

+ * If the meaning of the 'Stop Timeout' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Stop Timeout' attribute. + * @see #setStopTimeout(String) + * @see com.gratex.oomph.task.server.ServerPackage#getServer_StopTimeout() + * @model + * @generated + */ + String getStopTimeout(); + + Integer stopTimeout(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.Server#getStopTimeout Stop + * Timeout}' attribute. + * + * @param value the new value of the 'Stop Timeout' attribute. + * @see #getStopTimeout() + * @generated + */ + void setStopTimeout(String value); } // Server diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/ServerFactory.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/ServerFactory.java index 46cc953..83e2a1b 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/ServerFactory.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/ServerFactory.java @@ -5,57 +5,55 @@ import org.eclipse.emf.ecore.EFactory; /** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * + * The Factory for the model. It provides a + * create method for each non-abstract class of the model. + * * @see com.gratex.oomph.task.server.ServerPackage * @generated */ -public interface ServerFactory extends EFactory -{ - /** - * The singleton instance of the factory. - * - * - * @generated - */ - ServerFactory eINSTANCE = com.gratex.oomph.task.server.impl.ServerFactoryImpl.init(); +public interface ServerFactory extends EFactory { + /** + * The singleton instance of the factory. + * + * @generated + */ + ServerFactory eINSTANCE = com.gratex.oomph.task.server.impl.ServerFactoryImpl.init(); - /** - * Returns a new object of class 'Tomcat Server Task'. - * - * - * @return a new object of class 'Tomcat Server Task'. - * @generated - */ - TomcatServerTask createTomcatServerTask(); + /** + * Returns a new object of class 'Tomcat Server Task'. + * + * @return a new object of class 'Tomcat Server Task'. + * @generated + */ + TomcatServerTask createTomcatServerTask(); - /** - * Returns a new object of class 'Weblogic Server Task'. - * - * - * @return a new object of class 'Weblogic Server Task'. - * @generated - */ - WeblogicServerTask createWeblogicServerTask(); + /** + * Returns a new object of class 'Weblogic Server Task'. + * + * @return a new object of class 'Weblogic Server Task'. + * @generated + */ + WeblogicServerTask createWeblogicServerTask(); - /** - * Returns a new object of class 'Websphere Server Task'. - * - * - * @return a new object of class 'Websphere Server Task'. - * @generated - */ - WebsphereServerTask createWebsphereServerTask(); + /** + * Returns a new object of class 'Websphere Server Task'. + * + * @return a new object of class 'Websphere Server Task'. + * @generated + */ + WebsphereServerTask createWebsphereServerTask(); - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - ServerPackage getServerPackage(); + /** + * Returns the package supported by this factory. + * + * @return the package supported by this factory. + * @generated + */ + ServerPackage getServerPackage(); } // ServerFactory diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/ServerPackage.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/ServerPackage.java index 0730dfe..0568a1e 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/ServerPackage.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/ServerPackage.java @@ -2,1691 +2,1736 @@ */ package com.gratex.oomph.task.server; -import org.eclipse.oomph.setup.SetupPackage; - import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EPackage; +import org.eclipse.oomph.setup.SetupPackage; /** - * - * The Package for the model. - * It contains accessors for the meta objects to represent + * The Package for the model. It contains + * accessors for the meta objects to represent *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • *
* + * * @see com.gratex.oomph.task.server.ServerFactory - * @model kind="package" - * annotation="http://www.eclipse.org/emf/2002/Ecore schemaLocation='https://raw.githubusercontent.com/gratex/oomph-task-server/master/com.gratex.oomph.task.server/model/Server-1.0.ecore'" + * @model kind="package" annotation="http://www.eclipse.org/emf/2002/Ecore + * schemaLocation='https://raw.githubusercontent.com/gratex/oomph-task-server/master/com.gratex.oomph.task.server/model/Server-1.0.ecore'" * @generated */ -public interface ServerPackage extends EPackage -{ - /** - * The package name. - * - * - * @generated - */ - String eNAME = "server"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.gratex.com/oomph/task/server/1.0"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "server"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - ServerPackage eINSTANCE = com.gratex.oomph.task.server.impl.ServerPackageImpl.init(); - - /** - * The meta object id for the '{@link com.gratex.oomph.task.server.impl.ServerImpl Server}' class. - * - * - * @see com.gratex.oomph.task.server.impl.ServerImpl - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getServer() - * @generated - */ - int SERVER = 3; - - /** - * The meta object id for the '{@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl Tomcat Server Task}' class. - * - * - * @see com.gratex.oomph.task.server.impl.TomcatServerTaskImpl - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getTomcatServerTask() - * @generated - */ - int TOMCAT_SERVER_TASK = 0; - - /** - * The meta object id for the '{@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl Weblogic Server Task}' class. - * - * - * @see com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWeblogicServerTask() - * @generated - */ - int WEBLOGIC_SERVER_TASK = 1; - - /** - * The meta object id for the '{@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl Websphere Server Task}' class. - * - * - * @see com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWebsphereServerTask() - * @generated - */ - int WEBSPHERE_SERVER_TASK = 2; - - /** - * The feature id for the 'Annotations' containment reference list. - * - * - * @generated - * @ordered - */ - int SERVER__ANNOTATIONS = SetupPackage.SETUP_TASK__ANNOTATIONS; - - /** - * The feature id for the 'ID' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__ID = SetupPackage.SETUP_TASK__ID; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__DESCRIPTION = SetupPackage.SETUP_TASK__DESCRIPTION; - - /** - * The feature id for the 'Scope Type' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__SCOPE_TYPE = SetupPackage.SETUP_TASK__SCOPE_TYPE; - - /** - * The feature id for the 'Excluded Triggers' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__EXCLUDED_TRIGGERS = SetupPackage.SETUP_TASK__EXCLUDED_TRIGGERS; - - /** - * The feature id for the 'Disabled' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__DISABLED = SetupPackage.SETUP_TASK__DISABLED; - - /** - * The feature id for the 'Predecessors' reference list. - * - * - * @generated - * @ordered - */ - int SERVER__PREDECESSORS = SetupPackage.SETUP_TASK__PREDECESSORS; - - /** - * The feature id for the 'Successors' reference list. - * - * - * @generated - * @ordered - */ - int SERVER__SUCCESSORS = SetupPackage.SETUP_TASK__SUCCESSORS; - - /** - * The feature id for the 'Restrictions' reference list. - * - * - * @generated - * @ordered - */ - int SERVER__RESTRICTIONS = SetupPackage.SETUP_TASK__RESTRICTIONS; - - /** - * The feature id for the 'Filter' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__FILTER = SetupPackage.SETUP_TASK__FILTER; - - /** - * The feature id for the 'Server Name' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__SERVER_NAME = SetupPackage.SETUP_TASK_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Location' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__LOCATION = SetupPackage.SETUP_TASK_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Runtime Name' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__RUNTIME_NAME = SetupPackage.SETUP_TASK_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Hostname' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__HOSTNAME = SetupPackage.SETUP_TASK_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Clean Previous Runtimes' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__CLEAN_PREVIOUS_RUNTIMES = SetupPackage.SETUP_TASK_FEATURE_COUNT + 4; - - /** - * The feature id for the 'Start Timeout' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__START_TIMEOUT = SetupPackage.SETUP_TASK_FEATURE_COUNT + 5; - - /** - * The feature id for the 'Stop Timeout' attribute. - * - * - * @generated - * @ordered - */ - int SERVER__STOP_TIMEOUT = SetupPackage.SETUP_TASK_FEATURE_COUNT + 6; - - /** - * The number of structural features of the 'Server' class. - * - * - * @generated - * @ordered - */ - int SERVER_FEATURE_COUNT = SetupPackage.SETUP_TASK_FEATURE_COUNT + 7; - - /** - * The feature id for the 'Annotations' containment reference list. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__ANNOTATIONS = SERVER__ANNOTATIONS; - - /** - * The feature id for the 'ID' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__ID = SERVER__ID; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__DESCRIPTION = SERVER__DESCRIPTION; - - /** - * The feature id for the 'Scope Type' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__SCOPE_TYPE = SERVER__SCOPE_TYPE; - - /** - * The feature id for the 'Excluded Triggers' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__EXCLUDED_TRIGGERS = SERVER__EXCLUDED_TRIGGERS; - - /** - * The feature id for the 'Disabled' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__DISABLED = SERVER__DISABLED; - - /** - * The feature id for the 'Predecessors' reference list. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__PREDECESSORS = SERVER__PREDECESSORS; - - /** - * The feature id for the 'Successors' reference list. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__SUCCESSORS = SERVER__SUCCESSORS; - - /** - * The feature id for the 'Restrictions' reference list. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__RESTRICTIONS = SERVER__RESTRICTIONS; - - /** - * The feature id for the 'Filter' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__FILTER = SERVER__FILTER; - - /** - * The feature id for the 'Server Name' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__SERVER_NAME = SERVER__SERVER_NAME; - - /** - * The feature id for the 'Location' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__LOCATION = SERVER__LOCATION; - - /** - * The feature id for the 'Runtime Name' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__RUNTIME_NAME = SERVER__RUNTIME_NAME; - - /** - * The feature id for the 'Hostname' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__HOSTNAME = SERVER__HOSTNAME; - - /** - * The feature id for the 'Clean Previous Runtimes' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__CLEAN_PREVIOUS_RUNTIMES = SERVER__CLEAN_PREVIOUS_RUNTIMES; - - /** - * The feature id for the 'Start Timeout' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__START_TIMEOUT = SERVER__START_TIMEOUT; - - /** - * The feature id for the 'Stop Timeout' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__STOP_TIMEOUT = SERVER__STOP_TIMEOUT; - - /** - * The feature id for the 'Jre Version' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__JRE_VERSION = SERVER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Port' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__PORT = SERVER_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Https Port' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__HTTPS_PORT = SERVER_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Server Version' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__SERVER_VERSION = SERVER_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Launch Program Args' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS = SERVER_FEATURE_COUNT + 4; - - /** - * The feature id for the 'Launch Vm Args' attribute. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS = SERVER_FEATURE_COUNT + 5; - - /** - * The number of structural features of the 'Tomcat Server Task' class. - * - * - * @generated - * @ordered - */ - int TOMCAT_SERVER_TASK_FEATURE_COUNT = SERVER_FEATURE_COUNT + 6; - - /** - * The feature id for the 'Annotations' containment reference list. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__ANNOTATIONS = SERVER__ANNOTATIONS; - - /** - * The feature id for the 'ID' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__ID = SERVER__ID; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__DESCRIPTION = SERVER__DESCRIPTION; - - /** - * The feature id for the 'Scope Type' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__SCOPE_TYPE = SERVER__SCOPE_TYPE; - - /** - * The feature id for the 'Excluded Triggers' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__EXCLUDED_TRIGGERS = SERVER__EXCLUDED_TRIGGERS; - - /** - * The feature id for the 'Disabled' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__DISABLED = SERVER__DISABLED; - - /** - * The feature id for the 'Predecessors' reference list. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__PREDECESSORS = SERVER__PREDECESSORS; - - /** - * The feature id for the 'Successors' reference list. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__SUCCESSORS = SERVER__SUCCESSORS; - - /** - * The feature id for the 'Restrictions' reference list. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__RESTRICTIONS = SERVER__RESTRICTIONS; - - /** - * The feature id for the 'Filter' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__FILTER = SERVER__FILTER; - - /** - * The feature id for the 'Server Name' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__SERVER_NAME = SERVER__SERVER_NAME; - - /** - * The feature id for the 'Location' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__LOCATION = SERVER__LOCATION; - - /** - * The feature id for the 'Runtime Name' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__RUNTIME_NAME = SERVER__RUNTIME_NAME; - - /** - * The feature id for the 'Hostname' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__HOSTNAME = SERVER__HOSTNAME; - - /** - * The feature id for the 'Clean Previous Runtimes' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__CLEAN_PREVIOUS_RUNTIMES = SERVER__CLEAN_PREVIOUS_RUNTIMES; - - /** - * The feature id for the 'Start Timeout' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__START_TIMEOUT = SERVER__START_TIMEOUT; - - /** - * The feature id for the 'Stop Timeout' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__STOP_TIMEOUT = SERVER__STOP_TIMEOUT; - - /** - * The feature id for the 'Jre Version' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__JRE_VERSION = SERVER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Port' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__PORT = SERVER_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Https Port' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__HTTPS_PORT = SERVER_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Debug Port' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__DEBUG_PORT = SERVER_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Username' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__USERNAME = SERVER_FEATURE_COUNT + 4; - - /** - * The feature id for the 'Password' attribute. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK__PASSWORD = SERVER_FEATURE_COUNT + 5; - - /** - * The number of structural features of the 'Weblogic Server Task' class. - * - * - * @generated - * @ordered - */ - int WEBLOGIC_SERVER_TASK_FEATURE_COUNT = SERVER_FEATURE_COUNT + 6; - - /** - * The feature id for the 'Annotations' containment reference list. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__ANNOTATIONS = SERVER__ANNOTATIONS; - - /** - * The feature id for the 'ID' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__ID = SERVER__ID; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__DESCRIPTION = SERVER__DESCRIPTION; - - /** - * The feature id for the 'Scope Type' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__SCOPE_TYPE = SERVER__SCOPE_TYPE; - - /** - * The feature id for the 'Excluded Triggers' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__EXCLUDED_TRIGGERS = SERVER__EXCLUDED_TRIGGERS; - - /** - * The feature id for the 'Disabled' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__DISABLED = SERVER__DISABLED; - - /** - * The feature id for the 'Predecessors' reference list. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__PREDECESSORS = SERVER__PREDECESSORS; - - /** - * The feature id for the 'Successors' reference list. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__SUCCESSORS = SERVER__SUCCESSORS; - - /** - * The feature id for the 'Restrictions' reference list. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__RESTRICTIONS = SERVER__RESTRICTIONS; - - /** - * The feature id for the 'Filter' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__FILTER = SERVER__FILTER; - - /** - * The feature id for the 'Server Name' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__SERVER_NAME = SERVER__SERVER_NAME; - - /** - * The feature id for the 'Location' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__LOCATION = SERVER__LOCATION; - - /** - * The feature id for the 'Runtime Name' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__RUNTIME_NAME = SERVER__RUNTIME_NAME; - - /** - * The feature id for the 'Hostname' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__HOSTNAME = SERVER__HOSTNAME; - - /** - * The feature id for the 'Clean Previous Runtimes' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__CLEAN_PREVIOUS_RUNTIMES = SERVER__CLEAN_PREVIOUS_RUNTIMES; - - /** - * The feature id for the 'Start Timeout' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__START_TIMEOUT = SERVER__START_TIMEOUT; - - /** - * The feature id for the 'Stop Timeout' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__STOP_TIMEOUT = SERVER__STOP_TIMEOUT; - - /** - * The feature id for the 'Base Server Name' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME = SERVER_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Profile Path' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__PROFILE_PATH = SERVER_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Profile Name' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__PROFILE_NAME = SERVER_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Bootstrap Port' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT = SERVER_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Icp Port' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__ICP_PORT = SERVER_FEATURE_COUNT + 4; - - /** - * The feature id for the 'Soap Port' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__SOAP_PORT = SERVER_FEATURE_COUNT + 5; - - /** - * The feature id for the 'Remote Os User' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__REMOTE_OS_USER = SERVER_FEATURE_COUNT + 6; - - /** - * The feature id for the 'Remote Os Password' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD = SERVER_FEATURE_COUNT + 7; - - /** - * The feature id for the 'Server Version' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__SERVER_VERSION = SERVER_FEATURE_COUNT + 8; - - /** - * The feature id for the 'Security User Id' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__SECURITY_USER_ID = SERVER_FEATURE_COUNT + 9; - - /** - * The feature id for the 'Security User Password' attribute. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD = SERVER_FEATURE_COUNT + 10; - - /** - * The number of structural features of the 'Websphere Server Task' class. - * - * - * @generated - * @ordered - */ - int WEBSPHERE_SERVER_TASK_FEATURE_COUNT = SERVER_FEATURE_COUNT + 11; - - /** - * The meta object id for the '{@link com.gratex.oomph.task.server.TomcatServerVersion Tomcat Server Version}' enum. - * - * - * @see com.gratex.oomph.task.server.TomcatServerVersion - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getTomcatServerVersion() - * @generated - */ - int TOMCAT_SERVER_VERSION = 4; - - /** - * The meta object id for the '{@link com.gratex.oomph.task.server.WebsphereServerVersion Websphere Server Version}' enum. - * - * - * @see com.gratex.oomph.task.server.WebsphereServerVersion - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWebsphereServerVersion() - * @generated - */ - int WEBSPHERE_SERVER_VERSION = 5; - - /** - * Returns the meta object for class '{@link com.gratex.oomph.task.server.TomcatServerTask Tomcat Server Task}'. - * - * - * @return the meta object for class 'Tomcat Server Task'. - * @see com.gratex.oomph.task.server.TomcatServerTask - * @generated - */ - EClass getTomcatServerTask(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.TomcatServerTask#getJreVersion Jre Version}'. - * - * - * @return the meta object for the attribute 'Jre Version'. - * @see com.gratex.oomph.task.server.TomcatServerTask#getJreVersion() - * @see #getTomcatServerTask() - * @generated - */ - EAttribute getTomcatServerTask_JreVersion(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.TomcatServerTask#getPort Port}'. - * - * - * @return the meta object for the attribute 'Port'. - * @see com.gratex.oomph.task.server.TomcatServerTask#getPort() - * @see #getTomcatServerTask() - * @generated - */ - EAttribute getTomcatServerTask_Port(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.TomcatServerTask#getHttpsPort Https Port}'. - * - * - * @return the meta object for the attribute 'Https Port'. - * @see com.gratex.oomph.task.server.TomcatServerTask#getHttpsPort() - * @see #getTomcatServerTask() - * @generated - */ - EAttribute getTomcatServerTask_HttpsPort(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.TomcatServerTask#getServerVersion Server Version}'. - * - * - * @return the meta object for the attribute 'Server Version'. - * @see com.gratex.oomph.task.server.TomcatServerTask#getServerVersion() - * @see #getTomcatServerTask() - * @generated - */ - EAttribute getTomcatServerTask_ServerVersion(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchProgramArgs Launch Program Args}'. - * - * - * @return the meta object for the attribute 'Launch Program Args'. - * @see com.gratex.oomph.task.server.TomcatServerTask#getLaunchProgramArgs() - * @see #getTomcatServerTask() - * @generated - */ - EAttribute getTomcatServerTask_LaunchProgramArgs(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchVmArgs Launch Vm Args}'. - * - * - * @return the meta object for the attribute 'Launch Vm Args'. - * @see com.gratex.oomph.task.server.TomcatServerTask#getLaunchVmArgs() - * @see #getTomcatServerTask() - * @generated - */ - EAttribute getTomcatServerTask_LaunchVmArgs(); - - /** - * Returns the meta object for class '{@link com.gratex.oomph.task.server.WeblogicServerTask Weblogic Server Task}'. - * - * - * @return the meta object for class 'Weblogic Server Task'. - * @see com.gratex.oomph.task.server.WeblogicServerTask - * @generated - */ - EClass getWeblogicServerTask(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WeblogicServerTask#getJreVersion Jre Version}'. - * - * - * @return the meta object for the attribute 'Jre Version'. - * @see com.gratex.oomph.task.server.WeblogicServerTask#getJreVersion() - * @see #getWeblogicServerTask() - * @generated - */ - EAttribute getWeblogicServerTask_JreVersion(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WeblogicServerTask#getPort Port}'. - * - * - * @return the meta object for the attribute 'Port'. - * @see com.gratex.oomph.task.server.WeblogicServerTask#getPort() - * @see #getWeblogicServerTask() - * @generated - */ - EAttribute getWeblogicServerTask_Port(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WeblogicServerTask#getHttpsPort Https Port}'. - * - * - * @return the meta object for the attribute 'Https Port'. - * @see com.gratex.oomph.task.server.WeblogicServerTask#getHttpsPort() - * @see #getWeblogicServerTask() - * @generated - */ - EAttribute getWeblogicServerTask_HttpsPort(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WeblogicServerTask#getDebugPort Debug Port}'. - * - * - * @return the meta object for the attribute 'Debug Port'. - * @see com.gratex.oomph.task.server.WeblogicServerTask#getDebugPort() - * @see #getWeblogicServerTask() - * @generated - */ - EAttribute getWeblogicServerTask_DebugPort(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WeblogicServerTask#getUsername Username}'. - * - * - * @return the meta object for the attribute 'Username'. - * @see com.gratex.oomph.task.server.WeblogicServerTask#getUsername() - * @see #getWeblogicServerTask() - * @generated - */ - EAttribute getWeblogicServerTask_Username(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WeblogicServerTask#getPassword Password}'. - * - * - * @return the meta object for the attribute 'Password'. - * @see com.gratex.oomph.task.server.WeblogicServerTask#getPassword() - * @see #getWeblogicServerTask() - * @generated - */ - EAttribute getWeblogicServerTask_Password(); - - /** - * Returns the meta object for class '{@link com.gratex.oomph.task.server.WebsphereServerTask Websphere Server Task}'. - * - * - * @return the meta object for class 'Websphere Server Task'. - * @see com.gratex.oomph.task.server.WebsphereServerTask - * @generated - */ - EClass getWebsphereServerTask(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getBaseServerName Base Server Name}'. - * - * - * @return the meta object for the attribute 'Base Server Name'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getBaseServerName() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_BaseServerName(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getProfilePath Profile Path}'. - * - * - * @return the meta object for the attribute 'Profile Path'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getProfilePath() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_ProfilePath(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getProfileName Profile Name}'. - * - * - * @return the meta object for the attribute 'Profile Name'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getProfileName() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_ProfileName(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getBootstrapPort Bootstrap Port}'. - * - * - * @return the meta object for the attribute 'Bootstrap Port'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getBootstrapPort() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_BootstrapPort(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getIcpPort Icp Port}'. - * - * - * @return the meta object for the attribute 'Icp Port'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getIcpPort() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_IcpPort(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSoapPort Soap Port}'. - * - * - * @return the meta object for the attribute 'Soap Port'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getSoapPort() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_SoapPort(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsUser Remote Os User}'. - * - * - * @return the meta object for the attribute 'Remote Os User'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsUser() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_RemoteOsUser(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsPassword Remote Os Password}'. - * - * - * @return the meta object for the attribute 'Remote Os Password'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsPassword() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_RemoteOsPassword(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getServerVersion Server Version}'. - * - * - * @return the meta object for the attribute 'Server Version'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getServerVersion() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_ServerVersion(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserId Security User Id}'. - * - * - * @return the meta object for the attribute 'Security User Id'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserId() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_SecurityUserId(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserPassword Security User Password}'. - * - * - * @return the meta object for the attribute 'Security User Password'. - * @see com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserPassword() - * @see #getWebsphereServerTask() - * @generated - */ - EAttribute getWebsphereServerTask_SecurityUserPassword(); - - /** - * Returns the meta object for class '{@link com.gratex.oomph.task.server.Server Server}'. - * - * - * @return the meta object for class 'Server'. - * @see com.gratex.oomph.task.server.Server - * @generated - */ - EClass getServer(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.Server#getServerName Server Name}'. - * - * - * @return the meta object for the attribute 'Server Name'. - * @see com.gratex.oomph.task.server.Server#getServerName() - * @see #getServer() - * @generated - */ - EAttribute getServer_ServerName(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.Server#getLocation Location}'. - * - * - * @return the meta object for the attribute 'Location'. - * @see com.gratex.oomph.task.server.Server#getLocation() - * @see #getServer() - * @generated - */ - EAttribute getServer_Location(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.Server#getRuntimeName Runtime Name}'. - * - * - * @return the meta object for the attribute 'Runtime Name'. - * @see com.gratex.oomph.task.server.Server#getRuntimeName() - * @see #getServer() - * @generated - */ - EAttribute getServer_RuntimeName(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.Server#getHostname Hostname}'. - * - * - * @return the meta object for the attribute 'Hostname'. - * @see com.gratex.oomph.task.server.Server#getHostname() - * @see #getServer() - * @generated - */ - EAttribute getServer_Hostname(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.Server#isCleanPreviousRuntimes Clean Previous Runtimes}'. - * - * - * @return the meta object for the attribute 'Clean Previous Runtimes'. - * @see com.gratex.oomph.task.server.Server#isCleanPreviousRuntimes() - * @see #getServer() - * @generated - */ - EAttribute getServer_CleanPreviousRuntimes(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.Server#getStartTimeout Start Timeout}'. - * - * - * @return the meta object for the attribute 'Start Timeout'. - * @see com.gratex.oomph.task.server.Server#getStartTimeout() - * @see #getServer() - * @generated - */ - EAttribute getServer_StartTimeout(); - - /** - * Returns the meta object for the attribute '{@link com.gratex.oomph.task.server.Server#getStopTimeout Stop Timeout}'. - * - * - * @return the meta object for the attribute 'Stop Timeout'. - * @see com.gratex.oomph.task.server.Server#getStopTimeout() - * @see #getServer() - * @generated - */ - EAttribute getServer_StopTimeout(); - - /** - * Returns the meta object for enum '{@link com.gratex.oomph.task.server.TomcatServerVersion Tomcat Server Version}'. - * - * - * @return the meta object for enum 'Tomcat Server Version'. - * @see com.gratex.oomph.task.server.TomcatServerVersion - * @generated - */ - EEnum getTomcatServerVersion(); - - /** - * Returns the meta object for enum '{@link com.gratex.oomph.task.server.WebsphereServerVersion Websphere Server Version}'. - * - * - * @return the meta object for enum 'Websphere Server Version'. - * @see com.gratex.oomph.task.server.WebsphereServerVersion - * @generated - */ - EEnum getWebsphereServerVersion(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - ServerFactory getServerFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals - { - /** - * The meta object literal for the '{@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl Tomcat Server Task}' class. - * - * - * @see com.gratex.oomph.task.server.impl.TomcatServerTaskImpl - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getTomcatServerTask() - * @generated - */ - EClass TOMCAT_SERVER_TASK = eINSTANCE.getTomcatServerTask(); - - /** - * The meta object literal for the 'Jre Version' attribute feature. - * - * - * @generated - */ - EAttribute TOMCAT_SERVER_TASK__JRE_VERSION = eINSTANCE.getTomcatServerTask_JreVersion(); - - /** - * The meta object literal for the 'Port' attribute feature. - * - * - * @generated - */ - EAttribute TOMCAT_SERVER_TASK__PORT = eINSTANCE.getTomcatServerTask_Port(); - - /** - * The meta object literal for the 'Https Port' attribute feature. - * - * - * @generated - */ - EAttribute TOMCAT_SERVER_TASK__HTTPS_PORT = eINSTANCE.getTomcatServerTask_HttpsPort(); - - /** - * The meta object literal for the 'Server Version' attribute feature. - * - * - * @generated - */ - EAttribute TOMCAT_SERVER_TASK__SERVER_VERSION = eINSTANCE.getTomcatServerTask_ServerVersion(); - - /** - * The meta object literal for the 'Launch Program Args' attribute feature. - * - * - * @generated - */ - EAttribute TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS = eINSTANCE.getTomcatServerTask_LaunchProgramArgs(); - - /** - * The meta object literal for the 'Launch Vm Args' attribute feature. - * - * - * @generated - */ - EAttribute TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS = eINSTANCE.getTomcatServerTask_LaunchVmArgs(); - - /** - * The meta object literal for the '{@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl Weblogic Server Task}' class. - * - * - * @see com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWeblogicServerTask() - * @generated - */ - EClass WEBLOGIC_SERVER_TASK = eINSTANCE.getWeblogicServerTask(); - - /** - * The meta object literal for the 'Jre Version' attribute feature. - * - * - * @generated - */ - EAttribute WEBLOGIC_SERVER_TASK__JRE_VERSION = eINSTANCE.getWeblogicServerTask_JreVersion(); - - /** - * The meta object literal for the 'Port' attribute feature. - * - * - * @generated - */ - EAttribute WEBLOGIC_SERVER_TASK__PORT = eINSTANCE.getWeblogicServerTask_Port(); - - /** - * The meta object literal for the 'Https Port' attribute feature. - * - * - * @generated - */ - EAttribute WEBLOGIC_SERVER_TASK__HTTPS_PORT = eINSTANCE.getWeblogicServerTask_HttpsPort(); - - /** - * The meta object literal for the 'Debug Port' attribute feature. - * - * - * @generated - */ - EAttribute WEBLOGIC_SERVER_TASK__DEBUG_PORT = eINSTANCE.getWeblogicServerTask_DebugPort(); - - /** - * The meta object literal for the 'Username' attribute feature. - * - * - * @generated - */ - EAttribute WEBLOGIC_SERVER_TASK__USERNAME = eINSTANCE.getWeblogicServerTask_Username(); - - /** - * The meta object literal for the 'Password' attribute feature. - * - * - * @generated - */ - EAttribute WEBLOGIC_SERVER_TASK__PASSWORD = eINSTANCE.getWeblogicServerTask_Password(); - - /** - * The meta object literal for the '{@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl Websphere Server Task}' class. - * - * - * @see com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWebsphereServerTask() - * @generated - */ - EClass WEBSPHERE_SERVER_TASK = eINSTANCE.getWebsphereServerTask(); - - /** - * The meta object literal for the 'Base Server Name' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME = eINSTANCE.getWebsphereServerTask_BaseServerName(); - - /** - * The meta object literal for the 'Profile Path' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__PROFILE_PATH = eINSTANCE.getWebsphereServerTask_ProfilePath(); - - /** - * The meta object literal for the 'Profile Name' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__PROFILE_NAME = eINSTANCE.getWebsphereServerTask_ProfileName(); - - /** - * The meta object literal for the 'Bootstrap Port' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT = eINSTANCE.getWebsphereServerTask_BootstrapPort(); - - /** - * The meta object literal for the 'Icp Port' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__ICP_PORT = eINSTANCE.getWebsphereServerTask_IcpPort(); - - /** - * The meta object literal for the 'Soap Port' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__SOAP_PORT = eINSTANCE.getWebsphereServerTask_SoapPort(); - - /** - * The meta object literal for the 'Remote Os User' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__REMOTE_OS_USER = eINSTANCE.getWebsphereServerTask_RemoteOsUser(); - - /** - * The meta object literal for the 'Remote Os Password' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD = eINSTANCE.getWebsphereServerTask_RemoteOsPassword(); - - /** - * The meta object literal for the 'Server Version' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__SERVER_VERSION = eINSTANCE.getWebsphereServerTask_ServerVersion(); - - /** - * The meta object literal for the 'Security User Id' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__SECURITY_USER_ID = eINSTANCE.getWebsphereServerTask_SecurityUserId(); - - /** - * The meta object literal for the 'Security User Password' attribute feature. - * - * - * @generated - */ - EAttribute WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD = eINSTANCE.getWebsphereServerTask_SecurityUserPassword(); - - /** - * The meta object literal for the '{@link com.gratex.oomph.task.server.impl.ServerImpl Server}' class. - * - * - * @see com.gratex.oomph.task.server.impl.ServerImpl - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getServer() - * @generated - */ - EClass SERVER = eINSTANCE.getServer(); - - /** - * The meta object literal for the 'Server Name' attribute feature. - * - * - * @generated - */ - EAttribute SERVER__SERVER_NAME = eINSTANCE.getServer_ServerName(); - - /** - * The meta object literal for the 'Location' attribute feature. - * - * - * @generated - */ - EAttribute SERVER__LOCATION = eINSTANCE.getServer_Location(); - - /** - * The meta object literal for the 'Runtime Name' attribute feature. - * - * - * @generated - */ - EAttribute SERVER__RUNTIME_NAME = eINSTANCE.getServer_RuntimeName(); - - /** - * The meta object literal for the 'Hostname' attribute feature. - * - * - * @generated - */ - EAttribute SERVER__HOSTNAME = eINSTANCE.getServer_Hostname(); - - /** - * The meta object literal for the 'Clean Previous Runtimes' attribute feature. - * - * - * @generated - */ - EAttribute SERVER__CLEAN_PREVIOUS_RUNTIMES = eINSTANCE.getServer_CleanPreviousRuntimes(); - - /** - * The meta object literal for the 'Start Timeout' attribute feature. - * - * - * @generated - */ - EAttribute SERVER__START_TIMEOUT = eINSTANCE.getServer_StartTimeout(); - - /** - * The meta object literal for the 'Stop Timeout' attribute feature. - * - * - * @generated - */ - EAttribute SERVER__STOP_TIMEOUT = eINSTANCE.getServer_StopTimeout(); - - /** - * The meta object literal for the '{@link com.gratex.oomph.task.server.TomcatServerVersion Tomcat Server Version}' enum. - * - * - * @see com.gratex.oomph.task.server.TomcatServerVersion - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getTomcatServerVersion() - * @generated - */ - EEnum TOMCAT_SERVER_VERSION = eINSTANCE.getTomcatServerVersion(); - - /** - * The meta object literal for the '{@link com.gratex.oomph.task.server.WebsphereServerVersion Websphere Server Version}' enum. - * - * - * @see com.gratex.oomph.task.server.WebsphereServerVersion - * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWebsphereServerVersion() - * @generated - */ - EEnum WEBSPHERE_SERVER_VERSION = eINSTANCE.getWebsphereServerVersion(); - - } +public interface ServerPackage extends EPackage { + /** + * The package name. + * + * @generated + */ + String eNAME = "server"; + + /** + * The package namespace URI. + * + * @generated + */ + String eNS_URI = "http://www.gratex.com/oomph/task/server/1.0"; + + /** + * The package namespace name. + * + * @generated + */ + String eNS_PREFIX = "server"; + + /** + * The singleton instance of the package. + * + * @generated + */ + ServerPackage eINSTANCE = com.gratex.oomph.task.server.impl.ServerPackageImpl.init(); + + /** + * The meta object id for the + * '{@link com.gratex.oomph.task.server.impl.ServerImpl Server}' class. + * + * + * @see com.gratex.oomph.task.server.impl.ServerImpl + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getServer() + * @generated + */ + int SERVER = 3; + + /** + * The meta object id for the + * '{@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl Tomcat + * Server Task}' class. + * + * @see com.gratex.oomph.task.server.impl.TomcatServerTaskImpl + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getTomcatServerTask() + * @generated + */ + int TOMCAT_SERVER_TASK = 0; + + /** + * The meta object id for the + * '{@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl Weblogic + * Server Task}' class. + * + * @see com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWeblogicServerTask() + * @generated + */ + int WEBLOGIC_SERVER_TASK = 1; + + /** + * The meta object id for the + * '{@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl + * Websphere Server Task}' class. + * + * @see com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWebsphereServerTask() + * @generated + */ + int WEBSPHERE_SERVER_TASK = 2; + + /** + * The feature id for the 'Annotations' containment reference + * list. + * + * @generated + * @ordered + */ + int SERVER__ANNOTATIONS = SetupPackage.SETUP_TASK__ANNOTATIONS; + + /** + * The feature id for the 'ID' attribute. + * + * @generated + * @ordered + */ + int SERVER__ID = SetupPackage.SETUP_TASK__ID; + + /** + * The feature id for the 'Description' attribute. + * + * @generated + * @ordered + */ + int SERVER__DESCRIPTION = SetupPackage.SETUP_TASK__DESCRIPTION; + + /** + * The feature id for the 'Scope Type' attribute. + * + * @generated + * @ordered + */ + int SERVER__SCOPE_TYPE = SetupPackage.SETUP_TASK__SCOPE_TYPE; + + /** + * The feature id for the 'Excluded Triggers' attribute. + * + * @generated + * @ordered + */ + int SERVER__EXCLUDED_TRIGGERS = SetupPackage.SETUP_TASK__EXCLUDED_TRIGGERS; + + /** + * The feature id for the 'Disabled' attribute. + * + * @generated + * @ordered + */ + int SERVER__DISABLED = SetupPackage.SETUP_TASK__DISABLED; + + /** + * The feature id for the 'Predecessors' reference list. + * + * @generated + * @ordered + */ + int SERVER__PREDECESSORS = SetupPackage.SETUP_TASK__PREDECESSORS; + + /** + * The feature id for the 'Successors' reference list. + * + * @generated + * @ordered + */ + int SERVER__SUCCESSORS = SetupPackage.SETUP_TASK__SUCCESSORS; + + /** + * The feature id for the 'Restrictions' reference list. + * + * @generated + * @ordered + */ + int SERVER__RESTRICTIONS = SetupPackage.SETUP_TASK__RESTRICTIONS; + + /** + * The feature id for the 'Filter' attribute. + * + * @generated + * @ordered + */ + int SERVER__FILTER = SetupPackage.SETUP_TASK__FILTER; + + /** + * The feature id for the 'Server Name' attribute. + * + * @generated + * @ordered + */ + int SERVER__SERVER_NAME = SetupPackage.SETUP_TASK_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Location' attribute. + * + * @generated + * @ordered + */ + int SERVER__LOCATION = SetupPackage.SETUP_TASK_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Runtime Name' attribute. + * + * @generated + * @ordered + */ + int SERVER__RUNTIME_NAME = SetupPackage.SETUP_TASK_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Hostname' attribute. + * + * @generated + * @ordered + */ + int SERVER__HOSTNAME = SetupPackage.SETUP_TASK_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Clean Previous Runtimes' attribute. + * + * + * @generated + * @ordered + */ + int SERVER__CLEAN_PREVIOUS_RUNTIMES = SetupPackage.SETUP_TASK_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Start Timeout' attribute. + * + * @generated + * @ordered + */ + int SERVER__START_TIMEOUT = SetupPackage.SETUP_TASK_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Stop Timeout' attribute. + * + * @generated + * @ordered + */ + int SERVER__STOP_TIMEOUT = SetupPackage.SETUP_TASK_FEATURE_COUNT + 6; + + /** + * The number of structural features of the 'Server' class. + * + * @generated + * @ordered + */ + int SERVER_FEATURE_COUNT = SetupPackage.SETUP_TASK_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Annotations' containment reference + * list. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__ANNOTATIONS = SERVER__ANNOTATIONS; + + /** + * The feature id for the 'ID' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__ID = SERVER__ID; + + /** + * The feature id for the 'Description' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__DESCRIPTION = SERVER__DESCRIPTION; + + /** + * The feature id for the 'Scope Type' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__SCOPE_TYPE = SERVER__SCOPE_TYPE; + + /** + * The feature id for the 'Excluded Triggers' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__EXCLUDED_TRIGGERS = SERVER__EXCLUDED_TRIGGERS; + + /** + * The feature id for the 'Disabled' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__DISABLED = SERVER__DISABLED; + + /** + * The feature id for the 'Predecessors' reference list. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__PREDECESSORS = SERVER__PREDECESSORS; + + /** + * The feature id for the 'Successors' reference list. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__SUCCESSORS = SERVER__SUCCESSORS; + + /** + * The feature id for the 'Restrictions' reference list. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__RESTRICTIONS = SERVER__RESTRICTIONS; + + /** + * The feature id for the 'Filter' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__FILTER = SERVER__FILTER; + + /** + * The feature id for the 'Server Name' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__SERVER_NAME = SERVER__SERVER_NAME; + + /** + * The feature id for the 'Location' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__LOCATION = SERVER__LOCATION; + + /** + * The feature id for the 'Runtime Name' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__RUNTIME_NAME = SERVER__RUNTIME_NAME; + + /** + * The feature id for the 'Hostname' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__HOSTNAME = SERVER__HOSTNAME; + + /** + * The feature id for the 'Clean Previous Runtimes' attribute. + * + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__CLEAN_PREVIOUS_RUNTIMES = SERVER__CLEAN_PREVIOUS_RUNTIMES; + + /** + * The feature id for the 'Start Timeout' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__START_TIMEOUT = SERVER__START_TIMEOUT; + + /** + * The feature id for the 'Stop Timeout' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__STOP_TIMEOUT = SERVER__STOP_TIMEOUT; + + /** + * The feature id for the 'Jre Version' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__JRE_VERSION = SERVER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Port' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__PORT = SERVER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Https Port' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__HTTPS_PORT = SERVER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Server Version' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__SERVER_VERSION = SERVER_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Launch Program Args' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS = SERVER_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Launch Vm Args' attribute. + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS = SERVER_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Tomcat Server Task' class. + * + * + * @generated + * @ordered + */ + int TOMCAT_SERVER_TASK_FEATURE_COUNT = SERVER_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Annotations' containment reference + * list. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__ANNOTATIONS = SERVER__ANNOTATIONS; + + /** + * The feature id for the 'ID' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__ID = SERVER__ID; + + /** + * The feature id for the 'Description' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__DESCRIPTION = SERVER__DESCRIPTION; + + /** + * The feature id for the 'Scope Type' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__SCOPE_TYPE = SERVER__SCOPE_TYPE; + + /** + * The feature id for the 'Excluded Triggers' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__EXCLUDED_TRIGGERS = SERVER__EXCLUDED_TRIGGERS; + + /** + * The feature id for the 'Disabled' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__DISABLED = SERVER__DISABLED; + + /** + * The feature id for the 'Predecessors' reference list. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__PREDECESSORS = SERVER__PREDECESSORS; + + /** + * The feature id for the 'Successors' reference list. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__SUCCESSORS = SERVER__SUCCESSORS; + + /** + * The feature id for the 'Restrictions' reference list. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__RESTRICTIONS = SERVER__RESTRICTIONS; + + /** + * The feature id for the 'Filter' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__FILTER = SERVER__FILTER; + + /** + * The feature id for the 'Server Name' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__SERVER_NAME = SERVER__SERVER_NAME; + + /** + * The feature id for the 'Location' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__LOCATION = SERVER__LOCATION; + + /** + * The feature id for the 'Runtime Name' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__RUNTIME_NAME = SERVER__RUNTIME_NAME; + + /** + * The feature id for the 'Hostname' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__HOSTNAME = SERVER__HOSTNAME; + + /** + * The feature id for the 'Clean Previous Runtimes' attribute. + * + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__CLEAN_PREVIOUS_RUNTIMES = SERVER__CLEAN_PREVIOUS_RUNTIMES; + + /** + * The feature id for the 'Start Timeout' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__START_TIMEOUT = SERVER__START_TIMEOUT; + + /** + * The feature id for the 'Stop Timeout' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__STOP_TIMEOUT = SERVER__STOP_TIMEOUT; + + /** + * The feature id for the 'Jre Version' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__JRE_VERSION = SERVER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Port' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__PORT = SERVER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Https Port' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__HTTPS_PORT = SERVER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Debug Port' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__DEBUG_PORT = SERVER_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Username' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__USERNAME = SERVER_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Password' attribute. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK__PASSWORD = SERVER_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'Weblogic Server Task' + * class. + * + * @generated + * @ordered + */ + int WEBLOGIC_SERVER_TASK_FEATURE_COUNT = SERVER_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Annotations' containment reference + * list. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__ANNOTATIONS = SERVER__ANNOTATIONS; + + /** + * The feature id for the 'ID' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__ID = SERVER__ID; + + /** + * The feature id for the 'Description' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__DESCRIPTION = SERVER__DESCRIPTION; + + /** + * The feature id for the 'Scope Type' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__SCOPE_TYPE = SERVER__SCOPE_TYPE; + + /** + * The feature id for the 'Excluded Triggers' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__EXCLUDED_TRIGGERS = SERVER__EXCLUDED_TRIGGERS; + + /** + * The feature id for the 'Disabled' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__DISABLED = SERVER__DISABLED; + + /** + * The feature id for the 'Predecessors' reference list. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__PREDECESSORS = SERVER__PREDECESSORS; + + /** + * The feature id for the 'Successors' reference list. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__SUCCESSORS = SERVER__SUCCESSORS; + + /** + * The feature id for the 'Restrictions' reference list. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__RESTRICTIONS = SERVER__RESTRICTIONS; + + /** + * The feature id for the 'Filter' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__FILTER = SERVER__FILTER; + + /** + * The feature id for the 'Server Name' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__SERVER_NAME = SERVER__SERVER_NAME; + + /** + * The feature id for the 'Location' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__LOCATION = SERVER__LOCATION; + + /** + * The feature id for the 'Runtime Name' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__RUNTIME_NAME = SERVER__RUNTIME_NAME; + + /** + * The feature id for the 'Hostname' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__HOSTNAME = SERVER__HOSTNAME; + + /** + * The feature id for the 'Clean Previous Runtimes' attribute. + * + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__CLEAN_PREVIOUS_RUNTIMES = SERVER__CLEAN_PREVIOUS_RUNTIMES; + + /** + * The feature id for the 'Start Timeout' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__START_TIMEOUT = SERVER__START_TIMEOUT; + + /** + * The feature id for the 'Stop Timeout' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__STOP_TIMEOUT = SERVER__STOP_TIMEOUT; + + /** + * The feature id for the 'Base Server Name' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME = SERVER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Profile Path' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__PROFILE_PATH = SERVER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Profile Name' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__PROFILE_NAME = SERVER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Bootstrap Port' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT = SERVER_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Icp Port' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__ICP_PORT = SERVER_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Soap Port' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__SOAP_PORT = SERVER_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Remote Os User' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__REMOTE_OS_USER = SERVER_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Remote Os Password' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD = SERVER_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Server Version' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__SERVER_VERSION = SERVER_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Security User Id' attribute. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__SECURITY_USER_ID = SERVER_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Security User Password' attribute. + * + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD = SERVER_FEATURE_COUNT + 10; + + /** + * The number of structural features of the 'Websphere Server Task' + * class. + * + * @generated + * @ordered + */ + int WEBSPHERE_SERVER_TASK_FEATURE_COUNT = SERVER_FEATURE_COUNT + 11; + + /** + * The meta object id for the + * '{@link com.gratex.oomph.task.server.TomcatServerVersion Tomcat Server + * Version}' enum. + * + * @see com.gratex.oomph.task.server.TomcatServerVersion + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getTomcatServerVersion() + * @generated + */ + int TOMCAT_SERVER_VERSION = 4; + + /** + * The meta object id for the + * '{@link com.gratex.oomph.task.server.WebsphereServerVersion Websphere + * Server Version}' enum. + * + * @see com.gratex.oomph.task.server.WebsphereServerVersion + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWebsphereServerVersion() + * @generated + */ + int WEBSPHERE_SERVER_VERSION = 5; + + /** + * Returns the meta object for class + * '{@link com.gratex.oomph.task.server.TomcatServerTask Tomcat Server + * Task}'. + * + * @return the meta object for class 'Tomcat Server Task'. + * @see com.gratex.oomph.task.server.TomcatServerTask + * @generated + */ + EClass getTomcatServerTask(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getJreVersion Jre + * Version}'. + * + * @return the meta object for the attribute 'Jre Version'. + * @see com.gratex.oomph.task.server.TomcatServerTask#getJreVersion() + * @see #getTomcatServerTask() + * @generated + */ + EAttribute getTomcatServerTask_JreVersion(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getPort + * Port}'. + * + * @return the meta object for the attribute 'Port'. + * @see com.gratex.oomph.task.server.TomcatServerTask#getPort() + * @see #getTomcatServerTask() + * @generated + */ + EAttribute getTomcatServerTask_Port(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getHttpsPort Https + * Port}'. + * + * @return the meta object for the attribute 'Https Port'. + * @see com.gratex.oomph.task.server.TomcatServerTask#getHttpsPort() + * @see #getTomcatServerTask() + * @generated + */ + EAttribute getTomcatServerTask_HttpsPort(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getServerVersion + * Server Version}'. + * + * @return the meta object for the attribute 'Server Version'. + * @see com.gratex.oomph.task.server.TomcatServerTask#getServerVersion() + * @see #getTomcatServerTask() + * @generated + */ + EAttribute getTomcatServerTask_ServerVersion(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchProgramArgs + * Launch Program Args}'. + * + * @return the meta object for the attribute 'Launch Program Args'. + * @see com.gratex.oomph.task.server.TomcatServerTask#getLaunchProgramArgs() + * @see #getTomcatServerTask() + * @generated + */ + EAttribute getTomcatServerTask_LaunchProgramArgs(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchVmArgs + * Launch Vm Args}'. + * + * @return the meta object for the attribute 'Launch Vm Args'. + * @see com.gratex.oomph.task.server.TomcatServerTask#getLaunchVmArgs() + * @see #getTomcatServerTask() + * @generated + */ + EAttribute getTomcatServerTask_LaunchVmArgs(); + + /** + * Returns the meta object for class + * '{@link com.gratex.oomph.task.server.WeblogicServerTask Weblogic Server + * Task}'. + * + * @return the meta object for class 'Weblogic Server Task'. + * @see com.gratex.oomph.task.server.WeblogicServerTask + * @generated + */ + EClass getWeblogicServerTask(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getJreVersion Jre + * Version}'. + * + * @return the meta object for the attribute 'Jre Version'. + * @see com.gratex.oomph.task.server.WeblogicServerTask#getJreVersion() + * @see #getWeblogicServerTask() + * @generated + */ + EAttribute getWeblogicServerTask_JreVersion(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getPort + * Port}'. + * + * @return the meta object for the attribute 'Port'. + * @see com.gratex.oomph.task.server.WeblogicServerTask#getPort() + * @see #getWeblogicServerTask() + * @generated + */ + EAttribute getWeblogicServerTask_Port(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getHttpsPort + * Https Port}'. + * + * @return the meta object for the attribute 'Https Port'. + * @see com.gratex.oomph.task.server.WeblogicServerTask#getHttpsPort() + * @see #getWeblogicServerTask() + * @generated + */ + EAttribute getWeblogicServerTask_HttpsPort(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getDebugPort + * Debug Port}'. + * + * @return the meta object for the attribute 'Debug Port'. + * @see com.gratex.oomph.task.server.WeblogicServerTask#getDebugPort() + * @see #getWeblogicServerTask() + * @generated + */ + EAttribute getWeblogicServerTask_DebugPort(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getUsername + * Username}'. + * + * @return the meta object for the attribute 'Username'. + * @see com.gratex.oomph.task.server.WeblogicServerTask#getUsername() + * @see #getWeblogicServerTask() + * @generated + */ + EAttribute getWeblogicServerTask_Username(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getPassword + * Password}'. + * + * @return the meta object for the attribute 'Password'. + * @see com.gratex.oomph.task.server.WeblogicServerTask#getPassword() + * @see #getWeblogicServerTask() + * @generated + */ + EAttribute getWeblogicServerTask_Password(); + + /** + * Returns the meta object for class + * '{@link com.gratex.oomph.task.server.WebsphereServerTask Websphere Server + * Task}'. + * + * @return the meta object for class 'Websphere Server Task'. + * @see com.gratex.oomph.task.server.WebsphereServerTask + * @generated + */ + EClass getWebsphereServerTask(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getBaseServerName + * Base Server Name}'. + * + * @return the meta object for the attribute 'Base Server Name'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getBaseServerName() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_BaseServerName(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getProfilePath + * Profile Path}'. + * + * @return the meta object for the attribute 'Profile Path'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getProfilePath() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_ProfilePath(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getProfileName + * Profile Name}'. + * + * @return the meta object for the attribute 'Profile Name'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getProfileName() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_ProfileName(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getBootstrapPort + * Bootstrap Port}'. + * + * @return the meta object for the attribute 'Bootstrap Port'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getBootstrapPort() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_BootstrapPort(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getIcpPort Icp + * Port}'. + * + * @return the meta object for the attribute 'Icp Port'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getIcpPort() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_IcpPort(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSoapPort Soap + * Port}'. + * + * @return the meta object for the attribute 'Soap Port'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getSoapPort() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_SoapPort(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsUser + * Remote Os User}'. + * + * @return the meta object for the attribute 'Remote Os User'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsUser() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_RemoteOsUser(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsPassword + * Remote Os Password}'. + * + * @return the meta object for the attribute 'Remote Os Password'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsPassword() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_RemoteOsPassword(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getServerVersion + * Server Version}'. + * + * @return the meta object for the attribute 'Server Version'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getServerVersion() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_ServerVersion(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserId + * Security User Id}'. + * + * @return the meta object for the attribute 'Security User Id'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserId() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_SecurityUserId(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserPassword + * Security User Password}'. + * + * @return the meta object for the attribute 'Security User Password'. + * @see com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserPassword() + * @see #getWebsphereServerTask() + * @generated + */ + EAttribute getWebsphereServerTask_SecurityUserPassword(); + + /** + * Returns the meta object for class '{@link com.gratex.oomph.task.server.Server + * Server}'. + * + * @return the meta object for class 'Server'. + * @see com.gratex.oomph.task.server.Server + * @generated + */ + EClass getServer(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.Server#getServerName Server + * Name}'. + * + * @return the meta object for the attribute 'Server Name'. + * @see com.gratex.oomph.task.server.Server#getServerName() + * @see #getServer() + * @generated + */ + EAttribute getServer_ServerName(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.Server#getLocation Location}'. + * + * + * @return the meta object for the attribute 'Location'. + * @see com.gratex.oomph.task.server.Server#getLocation() + * @see #getServer() + * @generated + */ + EAttribute getServer_Location(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.Server#getRuntimeName Runtime + * Name}'. + * + * @return the meta object for the attribute 'Runtime Name'. + * @see com.gratex.oomph.task.server.Server#getRuntimeName() + * @see #getServer() + * @generated + */ + EAttribute getServer_RuntimeName(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.Server#getHostname Hostname}'. + * + * + * @return the meta object for the attribute 'Hostname'. + * @see com.gratex.oomph.task.server.Server#getHostname() + * @see #getServer() + * @generated + */ + EAttribute getServer_Hostname(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.Server#isCleanPreviousRuntimes Clean + * Previous Runtimes}'. + * + * @return the meta object for the attribute 'Clean Previous Runtimes'. + * @see com.gratex.oomph.task.server.Server#isCleanPreviousRuntimes() + * @see #getServer() + * @generated + */ + EAttribute getServer_CleanPreviousRuntimes(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.Server#getStartTimeout Start + * Timeout}'. + * + * @return the meta object for the attribute 'Start Timeout'. + * @see com.gratex.oomph.task.server.Server#getStartTimeout() + * @see #getServer() + * @generated + */ + EAttribute getServer_StartTimeout(); + + /** + * Returns the meta object for the attribute + * '{@link com.gratex.oomph.task.server.Server#getStopTimeout Stop + * Timeout}'. + * + * @return the meta object for the attribute 'Stop Timeout'. + * @see com.gratex.oomph.task.server.Server#getStopTimeout() + * @see #getServer() + * @generated + */ + EAttribute getServer_StopTimeout(); + + /** + * Returns the meta object for enum + * '{@link com.gratex.oomph.task.server.TomcatServerVersion Tomcat Server + * Version}'. + * + * @return the meta object for enum 'Tomcat Server Version'. + * @see com.gratex.oomph.task.server.TomcatServerVersion + * @generated + */ + EEnum getTomcatServerVersion(); + + /** + * Returns the meta object for enum + * '{@link com.gratex.oomph.task.server.WebsphereServerVersion Websphere + * Server Version}'. + * + * @return the meta object for enum 'Websphere Server Version'. + * @see com.gratex.oomph.task.server.WebsphereServerVersion + * @generated + */ + EEnum getWebsphereServerVersion(); + + /** + * Returns the factory that creates the instances of the model. + * + * @return the factory that creates the instances of the model. + * @generated + */ + ServerFactory getServerFactory(); + + /** + * Defines literals for the meta objects that represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * + * @generated + */ + interface Literals { + /** + * The meta object literal for the + * '{@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl Tomcat + * Server Task}' class. + * + * @see com.gratex.oomph.task.server.impl.TomcatServerTaskImpl + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getTomcatServerTask() + * @generated + */ + EClass TOMCAT_SERVER_TASK = eINSTANCE.getTomcatServerTask(); + + /** + * The meta object literal for the 'Jre Version' attribute + * feature. + * + * @generated + */ + EAttribute TOMCAT_SERVER_TASK__JRE_VERSION = eINSTANCE.getTomcatServerTask_JreVersion(); + + /** + * The meta object literal for the 'Port' attribute feature. + * + * + * @generated + */ + EAttribute TOMCAT_SERVER_TASK__PORT = eINSTANCE.getTomcatServerTask_Port(); + + /** + * The meta object literal for the 'Https Port' attribute + * feature. + * + * @generated + */ + EAttribute TOMCAT_SERVER_TASK__HTTPS_PORT = eINSTANCE.getTomcatServerTask_HttpsPort(); + + /** + * The meta object literal for the 'Server Version' attribute + * feature. + * + * @generated + */ + EAttribute TOMCAT_SERVER_TASK__SERVER_VERSION = eINSTANCE.getTomcatServerTask_ServerVersion(); + + /** + * The meta object literal for the 'Launch Program Args' + * attribute feature. + * + * @generated + */ + EAttribute TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS = eINSTANCE.getTomcatServerTask_LaunchProgramArgs(); + + /** + * The meta object literal for the 'Launch Vm Args' attribute + * feature. + * + * @generated + */ + EAttribute TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS = eINSTANCE.getTomcatServerTask_LaunchVmArgs(); + + /** + * The meta object literal for the + * '{@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl Weblogic + * Server Task}' class. + * + * @see com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWeblogicServerTask() + * @generated + */ + EClass WEBLOGIC_SERVER_TASK = eINSTANCE.getWeblogicServerTask(); + + /** + * The meta object literal for the 'Jre Version' attribute + * feature. + * + * @generated + */ + EAttribute WEBLOGIC_SERVER_TASK__JRE_VERSION = eINSTANCE.getWeblogicServerTask_JreVersion(); + + /** + * The meta object literal for the 'Port' attribute feature. + * + * + * @generated + */ + EAttribute WEBLOGIC_SERVER_TASK__PORT = eINSTANCE.getWeblogicServerTask_Port(); + + /** + * The meta object literal for the 'Https Port' attribute + * feature. + * + * @generated + */ + EAttribute WEBLOGIC_SERVER_TASK__HTTPS_PORT = eINSTANCE.getWeblogicServerTask_HttpsPort(); + + /** + * The meta object literal for the 'Debug Port' attribute + * feature. + * + * @generated + */ + EAttribute WEBLOGIC_SERVER_TASK__DEBUG_PORT = eINSTANCE.getWeblogicServerTask_DebugPort(); + + /** + * The meta object literal for the 'Username' attribute feature. + * + * + * @generated + */ + EAttribute WEBLOGIC_SERVER_TASK__USERNAME = eINSTANCE.getWeblogicServerTask_Username(); + + /** + * The meta object literal for the 'Password' attribute feature. + * + * + * @generated + */ + EAttribute WEBLOGIC_SERVER_TASK__PASSWORD = eINSTANCE.getWeblogicServerTask_Password(); + + /** + * The meta object literal for the + * '{@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl + * Websphere Server Task}' class. + * + * @see com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWebsphereServerTask() + * @generated + */ + EClass WEBSPHERE_SERVER_TASK = eINSTANCE.getWebsphereServerTask(); + + /** + * The meta object literal for the 'Base Server Name' attribute + * feature. + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME = eINSTANCE.getWebsphereServerTask_BaseServerName(); + + /** + * The meta object literal for the 'Profile Path' attribute + * feature. + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__PROFILE_PATH = eINSTANCE.getWebsphereServerTask_ProfilePath(); + + /** + * The meta object literal for the 'Profile Name' attribute + * feature. + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__PROFILE_NAME = eINSTANCE.getWebsphereServerTask_ProfileName(); + + /** + * The meta object literal for the 'Bootstrap Port' attribute + * feature. + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT = eINSTANCE.getWebsphereServerTask_BootstrapPort(); + + /** + * The meta object literal for the 'Icp Port' attribute feature. + * + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__ICP_PORT = eINSTANCE.getWebsphereServerTask_IcpPort(); + + /** + * The meta object literal for the 'Soap Port' attribute + * feature. + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__SOAP_PORT = eINSTANCE.getWebsphereServerTask_SoapPort(); + + /** + * The meta object literal for the 'Remote Os User' attribute + * feature. + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__REMOTE_OS_USER = eINSTANCE.getWebsphereServerTask_RemoteOsUser(); + + /** + * The meta object literal for the 'Remote Os Password' + * attribute feature. + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD = eINSTANCE.getWebsphereServerTask_RemoteOsPassword(); + + /** + * The meta object literal for the 'Server Version' attribute + * feature. + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__SERVER_VERSION = eINSTANCE.getWebsphereServerTask_ServerVersion(); + + /** + * The meta object literal for the 'Security User Id' attribute + * feature. + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__SECURITY_USER_ID = eINSTANCE.getWebsphereServerTask_SecurityUserId(); + + /** + * The meta object literal for the 'Security User Password' + * attribute feature. + * + * @generated + */ + EAttribute WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD = eINSTANCE + .getWebsphereServerTask_SecurityUserPassword(); + + /** + * The meta object literal for the + * '{@link com.gratex.oomph.task.server.impl.ServerImpl Server}' class. + * + * + * @see com.gratex.oomph.task.server.impl.ServerImpl + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getServer() + * @generated + */ + EClass SERVER = eINSTANCE.getServer(); + + /** + * The meta object literal for the 'Server Name' attribute + * feature. + * + * @generated + */ + EAttribute SERVER__SERVER_NAME = eINSTANCE.getServer_ServerName(); + + /** + * The meta object literal for the 'Location' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__LOCATION = eINSTANCE.getServer_Location(); + + /** + * The meta object literal for the 'Runtime Name' attribute + * feature. + * + * @generated + */ + EAttribute SERVER__RUNTIME_NAME = eINSTANCE.getServer_RuntimeName(); + + /** + * The meta object literal for the 'Hostname' attribute feature. + * + * + * @generated + */ + EAttribute SERVER__HOSTNAME = eINSTANCE.getServer_Hostname(); + + /** + * The meta object literal for the 'Clean Previous Runtimes' + * attribute feature. + * + * @generated + */ + EAttribute SERVER__CLEAN_PREVIOUS_RUNTIMES = eINSTANCE.getServer_CleanPreviousRuntimes(); + + /** + * The meta object literal for the 'Start Timeout' attribute + * feature. + * + * @generated + */ + EAttribute SERVER__START_TIMEOUT = eINSTANCE.getServer_StartTimeout(); + + /** + * The meta object literal for the 'Stop Timeout' attribute + * feature. + * + * @generated + */ + EAttribute SERVER__STOP_TIMEOUT = eINSTANCE.getServer_StopTimeout(); + + /** + * The meta object literal for the + * '{@link com.gratex.oomph.task.server.TomcatServerVersion Tomcat Server + * Version}' enum. + * + * @see com.gratex.oomph.task.server.TomcatServerVersion + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getTomcatServerVersion() + * @generated + */ + EEnum TOMCAT_SERVER_VERSION = eINSTANCE.getTomcatServerVersion(); + + /** + * The meta object literal for the + * '{@link com.gratex.oomph.task.server.WebsphereServerVersion Websphere + * Server Version}' enum. + * + * @see com.gratex.oomph.task.server.WebsphereServerVersion + * @see com.gratex.oomph.task.server.impl.ServerPackageImpl#getWebsphereServerVersion() + * @generated + */ + EEnum WEBSPHERE_SERVER_VERSION = eINSTANCE.getWebsphereServerVersion(); + + } } // ServerPackage diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/TomcatServerTask.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/TomcatServerTask.java index 9ccfc6b..b3946f6 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/TomcatServerTask.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/TomcatServerTask.java @@ -3,194 +3,214 @@ package com.gratex.oomph.task.server; /** - * - * A representation of the model object 'Tomcat Server Task'. - * + * A representation of the model object 'Tomcat + * Server Task'. * *

* The following features are supported: *

*
    - *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getJreVersion Jre Version}
  • - *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getPort Port}
  • - *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getHttpsPort Https Port}
  • - *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getServerVersion Server Version}
  • - *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchProgramArgs Launch Program Args}
  • - *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchVmArgs Launch Vm Args}
  • + *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getJreVersion + * Jre Version}
  • + *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getPort + * Port}
  • + *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getHttpsPort + * Https Port}
  • + *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getServerVersion + * Server Version}
  • + *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchProgramArgs + * Launch Program Args}
  • + *
  • {@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchVmArgs + * Launch Vm Args}
  • *
* * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask() - * @model annotation="http://www.eclipse.org/oomph/setup/Enablement variableName='p2.server' repository='https://gratex.github.io/oomph-task-server/repository/' installableUnits='com.gratex.oomph.task.server.feature.feature.group'" - * annotation="http://www.eclipse.org/oomph/setup/ValidTriggers triggers='STARTUP MANUAL'" + * @model annotation="http://www.eclipse.org/oomph/setup/Enablement + * variableName='p2.server' + * repository='https://gratex.github.io/oomph-task-server/repository/' + * installableUnits='com.gratex.oomph.task.server.feature.feature.group'" + * annotation="http://www.eclipse.org/oomph/setup/ValidTriggers + * triggers='STARTUP MANUAL'" * @generated */ -public interface TomcatServerTask extends Server -{ - /** - * Returns the value of the 'Jre Version' attribute. - * - *

- * If the meaning of the 'Jre Version' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Jre Version' attribute. - * @see #setJreVersion(String) - * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_JreVersion() - * @model required="true" - * @generated - */ - String getJreVersion(); +public interface TomcatServerTask extends Server { + /** + * Returns the value of the 'Jre Version' attribute. + *

+ * If the meaning of the 'Jre Version' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Jre Version' attribute. + * @see #setJreVersion(String) + * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_JreVersion() + * @model required="true" + * @generated + */ + String getJreVersion(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.TomcatServerTask#getJreVersion Jre Version}' attribute. - * - * - * @param value the new value of the 'Jre Version' attribute. - * @see #getJreVersion() - * @generated - */ - void setJreVersion(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getJreVersion Jre + * Version}' attribute. + * + * @param value the new value of the 'Jre Version' attribute. + * @see #getJreVersion() + * @generated + */ + void setJreVersion(String value); - /** - * Returns the value of the 'Port' attribute. - * The default value is "8080". - * - *

- * If the meaning of the 'Port' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Port' attribute. - * @see #setPort(String) - * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_Port() - * @model default="8080" required="true" - * @generated - */ - String getPort(); + /** + * Returns the value of the 'Port' attribute. The default value + * is "8080". + *

+ * If the meaning of the 'Port' attribute isn't clear, there really + * should be more of a description here... + *

+ * + * + * @return the value of the 'Port' attribute. + * @see #setPort(String) + * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_Port() + * @model default="8080" required="true" + * @generated + */ + String getPort(); - Integer port(); + Integer port(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.TomcatServerTask#getPort Port}' attribute. - * - * - * @param value the new value of the 'Port' attribute. - * @see #getPort() - * @generated - */ - void setPort(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getPort Port}' + * attribute. + * + * @param value the new value of the 'Port' attribute. + * @see #getPort() + * @generated + */ + void setPort(String value); - /** - * Returns the value of the 'Https Port' attribute. - * The default value is "8443". - * - *

- * If the meaning of the 'Https Port' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Https Port' attribute. - * @see #setHttpsPort(String) - * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_HttpsPort() - * @model default="8443" required="true" - * @generated - */ - String getHttpsPort(); + /** + * Returns the value of the 'Https Port' attribute. The default + * value is "8443". + *

+ * If the meaning of the 'Https Port' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Https Port' attribute. + * @see #setHttpsPort(String) + * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_HttpsPort() + * @model default="8443" required="true" + * @generated + */ + String getHttpsPort(); - Integer httpsPort(); + Integer httpsPort(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.TomcatServerTask#getHttpsPort Https Port}' attribute. - * - * - * @param value the new value of the 'Https Port' attribute. - * @see #getHttpsPort() - * @generated - */ - void setHttpsPort(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getHttpsPort Https + * Port}' attribute. + * + * @param value the new value of the 'Https Port' attribute. + * @see #getHttpsPort() + * @generated + */ + void setHttpsPort(String value); - /** - * Returns the value of the 'Server Version' attribute. - * The literals are from the enumeration {@link com.gratex.oomph.task.server.TomcatServerVersion}. - * - *

- * If the meaning of the 'Server Version' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Server Version' attribute. - * @see com.gratex.oomph.task.server.TomcatServerVersion - * @see #setServerVersion(TomcatServerVersion) - * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_ServerVersion() - * @model required="true" - * @generated - */ - TomcatServerVersion getServerVersion(); + /** + * Returns the value of the 'Server Version' attribute. The + * literals are from the enumeration + * {@link com.gratex.oomph.task.server.TomcatServerVersion}. + *

+ * If the meaning of the 'Server Version' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Server Version' attribute. + * @see com.gratex.oomph.task.server.TomcatServerVersion + * @see #setServerVersion(TomcatServerVersion) + * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_ServerVersion() + * @model required="true" + * @generated + */ + TomcatServerVersion getServerVersion(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.TomcatServerTask#getServerVersion Server Version}' attribute. - * - * - * @param value the new value of the 'Server Version' attribute. - * @see com.gratex.oomph.task.server.TomcatServerVersion - * @see #getServerVersion() - * @generated - */ - void setServerVersion(TomcatServerVersion value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getServerVersion + * Server Version}' attribute. + * + * @param value the new value of the 'Server Version' attribute. + * @see com.gratex.oomph.task.server.TomcatServerVersion + * @see #getServerVersion() + * @generated + */ + void setServerVersion(TomcatServerVersion value); - /** - * Returns the value of the 'Launch Program Args' attribute. - * The default value is "". - * - *

- * If the meaning of the 'Launch Program Args' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Launch Program Args' attribute. - * @see #setLaunchProgramArgs(String) - * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_LaunchProgramArgs() - * @model default="" - * @generated - */ - String getLaunchProgramArgs(); + /** + * Returns the value of the 'Launch Program Args' attribute. The + * default value is "". + *

+ * If the meaning of the 'Launch Program Args' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * + * @return the value of the 'Launch Program Args' attribute. + * @see #setLaunchProgramArgs(String) + * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_LaunchProgramArgs() + * @model default="" + * @generated + */ + String getLaunchProgramArgs(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchProgramArgs Launch Program Args}' attribute. - * - * - * @param value the new value of the 'Launch Program Args' attribute. - * @see #getLaunchProgramArgs() - * @generated - */ - void setLaunchProgramArgs(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchProgramArgs + * Launch Program Args}' attribute. + * + * @param value the new value of the 'Launch Program Args' attribute. + * @see #getLaunchProgramArgs() + * @generated + */ + void setLaunchProgramArgs(String value); - /** - * Returns the value of the 'Launch Vm Args' attribute. - * The default value is "". - * - *

- * If the meaning of the 'Launch Vm Args' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Launch Vm Args' attribute. - * @see #setLaunchVmArgs(String) - * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_LaunchVmArgs() - * @model default="" - * @generated - */ - String getLaunchVmArgs(); + /** + * Returns the value of the 'Launch Vm Args' attribute. The + * default value is "". + *

+ * If the meaning of the 'Launch Vm Args' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Launch Vm Args' attribute. + * @see #setLaunchVmArgs(String) + * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerTask_LaunchVmArgs() + * @model default="" + * @generated + */ + String getLaunchVmArgs(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchVmArgs Launch Vm Args}' attribute. - * - * - * @param value the new value of the 'Launch Vm Args' attribute. - * @see #getLaunchVmArgs() - * @generated - */ - void setLaunchVmArgs(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.TomcatServerTask#getLaunchVmArgs + * Launch Vm Args}' attribute. + * + * @param value the new value of the 'Launch Vm Args' attribute. + * @see #getLaunchVmArgs() + * @generated + */ + void setLaunchVmArgs(String value); } // TomcatServerTask diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/TomcatServerVersion.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/TomcatServerVersion.java index 5e9c2ac..08679de 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/TomcatServerVersion.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/TomcatServerVersion.java @@ -2,255 +2,284 @@ */ package com.gratex.oomph.task.server; -import org.eclipse.emf.common.util.Enumerator; - import java.util.Arrays; import java.util.Collections; import java.util.List; +import org.eclipse.emf.common.util.Enumerator; + /** - * - * A representation of the literals of the enumeration 'Tomcat Server Version', - * and utility methods for working with them. - * + * A representation of the literals of the enumeration + * 'Tomcat Server Version', and utility methods for working with + * them. + * * @see com.gratex.oomph.task.server.ServerPackage#getTomcatServerVersion() * @model * @generated */ -public enum TomcatServerVersion implements Enumerator -{ - /** - * The 'TOMCAT70' literal object. - * - * - * @see #TOMCAT70_VALUE - * @generated - * @ordered - */ - TOMCAT70(0, "TOMCAT70", "Tomcat 7.0"), +public enum TomcatServerVersion implements Enumerator { + /** + * The 'TOMCAT70' literal object. + * + * @see #TOMCAT70_VALUE + * @generated + * @ordered + */ + TOMCAT70(0, "TOMCAT70", "Tomcat 7.0"), + + /** + * The 'TOMCAT80' literal object. + * + * @see #TOMCAT80_VALUE + * @generated + * @ordered + */ + TOMCAT80(1, "TOMCAT80", "Tomcat 8.0"), + + /** + * The 'TOMCAT85' literal object. + * + * @see #TOMCAT85_VALUE + * @generated + * @ordered + */ + TOMCAT85(2, "TOMCAT85", "Tomcat 8.5"), + /** + * The 'TOMCAT90' literal object. + * + * @see #TOMCAT90_VALUE + * @generated + * @ordered + */ + TOMCAT90(3, "TOMCAT90", "Tomcat 9.0"), + /** + * The 'TOMCAT100' literal object. + * + * @see #TOMCAT100_VALUE + * @generated + * @ordered + */ + TOMCAT100(4, "TOMCAT100", "Tomcat 10.0"); - /** - * The 'TOMCAT80' literal object. - * - * - * @see #TOMCAT80_VALUE - * @generated - * @ordered - */ - TOMCAT80(1, "TOMCAT80", "Tomcat 8.0"), + /** + * The 'TOMCAT70' literal value. + *

+ * If the meaning of 'TOMCAT70' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * + * @see #TOMCAT70 + * @model literal="Tomcat 7.0" + * @generated + * @ordered + */ + public static final int TOMCAT70_VALUE = 0; - /** - * The 'TOMCAT85' literal object. - * - * - * @see #TOMCAT85_VALUE - * @generated - * @ordered - */ - TOMCAT85(2, "TOMCAT85", "Tomcat 8.5"); + /** + * The 'TOMCAT80' literal value. + *

+ * If the meaning of 'TOMCAT80' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * + * @see #TOMCAT80 + * @model literal="Tomcat 8.0" + * @generated + * @ordered + */ + public static final int TOMCAT80_VALUE = 1; - /** - * The 'TOMCAT70' literal value. - * - *

- * If the meaning of 'TOMCAT70' literal object isn't clear, - * there really should be more of a description here... - *

- * - * @see #TOMCAT70 - * @model literal="Tomcat 7.0" - * @generated - * @ordered - */ - public static final int TOMCAT70_VALUE = 0; + /** + * The 'TOMCAT85' literal value. + *

+ * If the meaning of 'TOMCAT85' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * + * @see #TOMCAT85 + * @model literal="Tomcat 8.5" + * @generated + * @ordered + */ + public static final int TOMCAT85_VALUE = 2; - /** - * The 'TOMCAT80' literal value. - * - *

- * If the meaning of 'TOMCAT80' literal object isn't clear, - * there really should be more of a description here... - *

- * - * @see #TOMCAT80 - * @model literal="Tomcat 8.0" - * @generated - * @ordered - */ - public static final int TOMCAT80_VALUE = 1; + /** + * The 'TOMCAT90' literal value. + * + * @see #TOMCAT90 + * @model literal="Tomcat 9.0" + * @generated + * @ordered + */ + public static final int TOMCAT90_VALUE = 3; - /** - * The 'TOMCAT85' literal value. - * - *

- * If the meaning of 'TOMCAT85' literal object isn't clear, - * there really should be more of a description here... - *

- * - * @see #TOMCAT85 - * @model literal="Tomcat 8.5" - * @generated - * @ordered - */ - public static final int TOMCAT85_VALUE = 2; + /** + * The 'TOMCAT100' literal value. + * + * @see #TOMCAT100 + * @model literal="Tomcat 10.0" + * @generated + * @ordered + */ + public static final int TOMCAT100_VALUE = 4; - /** - * An array of all the 'Tomcat Server Version' enumerators. - * - * - * @generated - */ - private static final TomcatServerVersion[] VALUES_ARRAY = new TomcatServerVersion[] { TOMCAT70, TOMCAT80, TOMCAT85, }; + /** + * An array of all the 'Tomcat Server Version' enumerators. + * + * @generated + */ + private static final TomcatServerVersion[] VALUES_ARRAY = new TomcatServerVersion[] { TOMCAT70, TOMCAT80, TOMCAT85, + TOMCAT90, TOMCAT100, }; - /** - * A public read-only list of all the 'Tomcat Server Version' enumerators. - * - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + /** + * A public read-only list of all the 'Tomcat Server Version' + * enumerators. + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - /** - * Returns the 'Tomcat Server Version' literal with the specified literal value. - * - * - * @param literal the literal. - * @return the matching enumerator or null. - * @generated - */ - public static TomcatServerVersion get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - TomcatServerVersion result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { - return result; - } - } - return null; - } + /** + * Returns the 'Tomcat Server Version' literal with the + * specified literal value. + * + * @param literal the literal. + * @return the matching enumerator or null. + * @generated + */ + public static TomcatServerVersion get(String literal) { + for (TomcatServerVersion result : VALUES_ARRAY) { + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } - /** - * Returns the 'Tomcat Server Version' literal with the specified name. - * - * - * @param name the name. - * @return the matching enumerator or null. - * @generated - */ - public static TomcatServerVersion getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - TomcatServerVersion result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { - return result; - } - } - return null; - } + /** + * Returns the 'Tomcat Server Version' literal with the + * specified name. + * + * @param name the name. + * @return the matching enumerator or null. + * @generated + */ + public static TomcatServerVersion getByName(String name) { + for (TomcatServerVersion result : VALUES_ARRAY) { + if (result.getName().equals(name)) { + return result; + } + } + return null; + } - /** - * Returns the 'Tomcat Server Version' literal with the specified integer value. - * - * - * @param value the integer value. - * @return the matching enumerator or null. - * @generated - */ - public static TomcatServerVersion get(int value) - { - switch (value) - { - case TOMCAT70_VALUE: - return TOMCAT70; - case TOMCAT80_VALUE: - return TOMCAT80; - case TOMCAT85_VALUE: - return TOMCAT85; - } - return null; - } + /** + * Returns the 'Tomcat Server Version' literal with the + * specified integer value. + * + * @param value the integer value. + * @return the matching enumerator or null. + * @generated + */ + public static TomcatServerVersion get(int value) { + switch (value) { + case TOMCAT70_VALUE: + return TOMCAT70; + case TOMCAT80_VALUE: + return TOMCAT80; + case TOMCAT85_VALUE: + return TOMCAT85; + case TOMCAT90_VALUE: + return TOMCAT90; + case TOMCAT100_VALUE: + return TOMCAT100; + } + return null; + } - /** - * - * - * @generated - */ - private final int value; + /** + * + * + * @generated + */ + private final int value; - /** - * - * - * @generated - */ - private final String name; + /** + * + * + * @generated + */ + private final String name; - /** - * - * - * @generated - */ - private final String literal; + /** + * + * + * @generated + */ + private final String literal; - /** - * Only this class can construct instances. - * - * - * @generated - */ - private TomcatServerVersion(int value, String name, String literal) - { - this.value = value; - this.name = name; - this.literal = literal; - } + /** + * Only this class can construct instances. + * + * @generated + */ + private TomcatServerVersion(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } - /** - * - * - * @generated - */ - @Override - public int getValue() - { - return value; - } + /** + * + * + * @generated + */ + @Override + public int getValue() { + return value; + } - /** - * - * - * @generated - */ - @Override - public String getName() - { - return name; - } + /** + * + * + * @generated + */ + @Override + public String getName() { + return name; + } - /** - * - * - * @generated - */ - @Override - public String getLiteral() - { - return literal; - } + /** + * + * + * @generated + */ + @Override + public String getLiteral() { + return literal; + } - /** - * Returns the literal value of the enumerator, which is its string representation. - * - * - * @generated - */ - @Override - public String toString() - { - return literal; - } + /** + * Returns the literal value of the enumerator, which is its string + * representation. + * + * @generated + */ + @Override + public String toString() { + return literal; + } } // TomcatServerVersion diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WeblogicServerTask.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WeblogicServerTask.java index 48f8db4..7f083ff 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WeblogicServerTask.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WeblogicServerTask.java @@ -3,192 +3,211 @@ package com.gratex.oomph.task.server; /** - * - * A representation of the model object 'Weblogic Server Task'. - * + * A representation of the model object 'Weblogic + * Server Task'. * *

* The following features are supported: *

*
    - *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getJreVersion Jre Version}
  • - *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getPort Port}
  • - *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getHttpsPort Https Port}
  • - *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getDebugPort Debug Port}
  • - *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getUsername Username}
  • - *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getPassword Password}
  • + *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getJreVersion + * Jre Version}
  • + *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getPort + * Port}
  • + *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getHttpsPort + * Https Port}
  • + *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getDebugPort + * Debug Port}
  • + *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getUsername + * Username}
  • + *
  • {@link com.gratex.oomph.task.server.WeblogicServerTask#getPassword + * Password}
  • *
* * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask() - * @model annotation="http://www.eclipse.org/oomph/setup/Enablement variableName='p2.server' repository='https://gratex.github.io/oomph-task-server/repository/' installableUnits='com.gratex.oomph.task.server.feature.feature.group'" - * annotation="http://www.eclipse.org/oomph/setup/ValidTriggers triggers='STARTUP MANUAL'" + * @model annotation="http://www.eclipse.org/oomph/setup/Enablement + * variableName='p2.server' + * repository='https://gratex.github.io/oomph-task-server/repository/' + * installableUnits='com.gratex.oomph.task.server.feature.feature.group'" + * annotation="http://www.eclipse.org/oomph/setup/ValidTriggers + * triggers='STARTUP MANUAL'" * @generated */ -public interface WeblogicServerTask extends Server -{ - /** - * Returns the value of the 'Jre Version' attribute. - * - *

- * If the meaning of the 'Jre Version' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Jre Version' attribute. - * @see #setJreVersion(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_JreVersion() - * @model required="true" - * @generated - */ - String getJreVersion(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WeblogicServerTask#getJreVersion Jre Version}' attribute. - * - * - * @param value the new value of the 'Jre Version' attribute. - * @see #getJreVersion() - * @generated - */ - void setJreVersion(String value); - - /** - * Returns the value of the 'Port' attribute. - * The default value is "7001". - * - *

- * If the meaning of the 'Port' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Port' attribute. - * @see #setPort(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_Port() - * @model default="7001" required="true" - * @generated - */ - String getPort(); - - Integer port(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WeblogicServerTask#getPort Port}' attribute. - * - * - * @param value the new value of the 'Port' attribute. - * @see #getPort() - * @generated - */ - void setPort(String value); - - /** - * Returns the value of the 'Https Port' attribute. - * The default value is "7002". - * - *

- * If the meaning of the 'Https Port' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Https Port' attribute. - * @see #setHttpsPort(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_HttpsPort() - * @model default="7002" required="true" - * @generated - */ - String getHttpsPort(); - - Integer httpsPort(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WeblogicServerTask#getHttpsPort Https Port}' attribute. - * - * - * @param value the new value of the 'Https Port' attribute. - * @see #getHttpsPort() - * @generated - */ - void setHttpsPort(String value); - - /** - * Returns the value of the 'Debug Port' attribute. - * The default value is "8453". - * - *

- * If the meaning of the 'Debug Port' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Debug Port' attribute. - * @see #setDebugPort(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_DebugPort() - * @model default="8453" - * @generated - */ - String getDebugPort(); - - Integer debugPort(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WeblogicServerTask#getDebugPort Debug Port}' attribute. - * - * - * @param value the new value of the 'Debug Port' attribute. - * @see #getDebugPort() - * @generated - */ - void setDebugPort(String value); - - /** - * Returns the value of the 'Username' attribute. - * - *

- * If the meaning of the 'Username' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Username' attribute. - * @see #setUsername(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_Username() - * @model - * @generated - */ - String getUsername(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WeblogicServerTask#getUsername Username}' attribute. - * - * - * @param value the new value of the 'Username' attribute. - * @see #getUsername() - * @generated - */ - void setUsername(String value); - - /** - * Returns the value of the 'Password' attribute. - * - *

- * If the meaning of the 'Password' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Password' attribute. - * @see #setPassword(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_Password() - * @model - * @generated - */ - String getPassword(); - - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WeblogicServerTask#getPassword Password}' attribute. - * - * - * @param value the new value of the 'Password' attribute. - * @see #getPassword() - * @generated - */ - void setPassword(String value); +public interface WeblogicServerTask extends Server { + /** + * Returns the value of the 'Jre Version' attribute. + *

+ * If the meaning of the 'Jre Version' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Jre Version' attribute. + * @see #setJreVersion(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_JreVersion() + * @model required="true" + * @generated + */ + String getJreVersion(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getJreVersion Jre + * Version}' attribute. + * + * @param value the new value of the 'Jre Version' attribute. + * @see #getJreVersion() + * @generated + */ + void setJreVersion(String value); + + /** + * Returns the value of the 'Port' attribute. The default value + * is "7001". + *

+ * If the meaning of the 'Port' attribute isn't clear, there really + * should be more of a description here... + *

+ * + * + * @return the value of the 'Port' attribute. + * @see #setPort(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_Port() + * @model default="7001" required="true" + * @generated + */ + String getPort(); + + Integer port(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getPort + * Port}' attribute. + * + * @param value the new value of the 'Port' attribute. + * @see #getPort() + * @generated + */ + void setPort(String value); + + /** + * Returns the value of the 'Https Port' attribute. The default + * value is "7002". + *

+ * If the meaning of the 'Https Port' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Https Port' attribute. + * @see #setHttpsPort(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_HttpsPort() + * @model default="7002" required="true" + * @generated + */ + String getHttpsPort(); + + Integer httpsPort(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getHttpsPort + * Https Port}' attribute. + * + * @param value the new value of the 'Https Port' attribute. + * @see #getHttpsPort() + * @generated + */ + void setHttpsPort(String value); + + /** + * Returns the value of the 'Debug Port' attribute. The default + * value is "8453". + *

+ * If the meaning of the 'Debug Port' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Debug Port' attribute. + * @see #setDebugPort(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_DebugPort() + * @model default="8453" + * @generated + */ + String getDebugPort(); + + Integer debugPort(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getDebugPort + * Debug Port}' attribute. + * + * @param value the new value of the 'Debug Port' attribute. + * @see #getDebugPort() + * @generated + */ + void setDebugPort(String value); + + /** + * Returns the value of the 'Username' attribute. + *

+ * If the meaning of the 'Username' attribute isn't clear, there really + * should be more of a description here... + *

+ * + * + * @return the value of the 'Username' attribute. + * @see #setUsername(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_Username() + * @model + * @generated + */ + String getUsername(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getUsername + * Username}' attribute. + * + * @param value the new value of the 'Username' attribute. + * @see #getUsername() + * @generated + */ + void setUsername(String value); + + /** + * Returns the value of the 'Password' attribute. + *

+ * If the meaning of the 'Password' attribute isn't clear, there really + * should be more of a description here... + *

+ * + * + * @return the value of the 'Password' attribute. + * @see #setPassword(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWeblogicServerTask_Password() + * @model + * @generated + */ + String getPassword(); + + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WeblogicServerTask#getPassword + * Password}' attribute. + * + * @param value the new value of the 'Password' attribute. + * @see #getPassword() + * @generated + */ + void setPassword(String value); } // WeblogicServerTask diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WebsphereServerTask.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WebsphereServerTask.java index f4c95bc..99a5d1a 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WebsphereServerTask.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WebsphereServerTask.java @@ -3,338 +3,383 @@ package com.gratex.oomph.task.server; /** - * - * A representation of the model object 'Websphere Server Task'. - * + * A representation of the model object + * 'Websphere Server Task'. * *

* The following features are supported: *

*
    - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getBaseServerName Base Server Name}
  • - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getProfilePath Profile Path}
  • - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getProfileName Profile Name}
  • - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getBootstrapPort Bootstrap Port}
  • - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getIcpPort Icp Port}
  • - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getSoapPort Soap Port}
  • - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsUser Remote Os User}
  • - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsPassword Remote Os Password}
  • - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getServerVersion Server Version}
  • - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserId Security User Id}
  • - *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserPassword Security User Password}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getBaseServerName + * Base Server Name}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getProfilePath + * Profile Path}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getProfileName + * Profile Name}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getBootstrapPort + * Bootstrap Port}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getIcpPort + * Icp Port}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getSoapPort + * Soap Port}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsUser + * Remote Os User}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsPassword + * Remote Os Password}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getServerVersion + * Server Version}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserId + * Security User Id}
  • + *
  • {@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserPassword + * Security User Password}
  • *
* * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask() - * @model annotation="http://www.eclipse.org/oomph/setup/Enablement variableName='p2.server' repository='https://gratex.github.io/oomph-task-server/repository/' installableUnits='com.gratex.oomph.task.server.feature.feature.group'" - * annotation="http://www.eclipse.org/oomph/setup/ValidTriggers triggers='STARTUP MANUAL'" + * @model annotation="http://www.eclipse.org/oomph/setup/Enablement + * variableName='p2.server' + * repository='https://gratex.github.io/oomph-task-server/repository/' + * installableUnits='com.gratex.oomph.task.server.feature.feature.group'" + * annotation="http://www.eclipse.org/oomph/setup/ValidTriggers + * triggers='STARTUP MANUAL'" * @generated */ -public interface WebsphereServerTask extends Server -{ - /** - * Returns the value of the 'Base Server Name' attribute. - * The default value is "server1". - * - *

- * If the meaning of the 'Base Server Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Base Server Name' attribute. - * @see #setBaseServerName(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_BaseServerName() - * @model default="server1" - * @generated - */ - String getBaseServerName(); +public interface WebsphereServerTask extends Server { + /** + * Returns the value of the 'Base Server Name' attribute. The + * default value is "server1". + *

+ * If the meaning of the 'Base Server Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * + * @return the value of the 'Base Server Name' attribute. + * @see #setBaseServerName(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_BaseServerName() + * @model default="server1" + * @generated + */ + String getBaseServerName(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getBaseServerName Base Server Name}' attribute. - * - * - * @param value the new value of the 'Base Server Name' attribute. - * @see #getBaseServerName() - * @generated - */ - void setBaseServerName(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getBaseServerName + * Base Server Name}' attribute. + * + * @param value the new value of the 'Base Server Name' attribute. + * @see #getBaseServerName() + * @generated + */ + void setBaseServerName(String value); - /** - * Returns the value of the 'Profile Path' attribute. - * - *

- * If the meaning of the 'Profile Path' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Profile Path' attribute. - * @see #setProfilePath(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_ProfilePath() - * @model - * @generated - */ - String getProfilePath(); + /** + * Returns the value of the 'Profile Path' attribute. + *

+ * If the meaning of the 'Profile Path' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Profile Path' attribute. + * @see #setProfilePath(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_ProfilePath() + * @model + * @generated + */ + String getProfilePath(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getProfilePath Profile Path}' attribute. - * - * - * @param value the new value of the 'Profile Path' attribute. - * @see #getProfilePath() - * @generated - */ - void setProfilePath(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getProfilePath + * Profile Path}' attribute. + * + * @param value the new value of the 'Profile Path' attribute. + * @see #getProfilePath() + * @generated + */ + void setProfilePath(String value); - /** - * Returns the value of the 'Profile Name' attribute. - * - *

- * If the meaning of the 'Profile Name' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Profile Name' attribute. - * @see #setProfileName(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_ProfileName() - * @model - * @generated - */ - String getProfileName(); + /** + * Returns the value of the 'Profile Name' attribute. + *

+ * If the meaning of the 'Profile Name' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Profile Name' attribute. + * @see #setProfileName(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_ProfileName() + * @model + * @generated + */ + String getProfileName(); - boolean hasProfileName(); + boolean hasProfileName(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getProfileName Profile Name}' attribute. - * - * - * @param value the new value of the 'Profile Name' attribute. - * @see #getProfileName() - * @generated - */ - void setProfileName(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getProfileName + * Profile Name}' attribute. + * + * @param value the new value of the 'Profile Name' attribute. + * @see #getProfileName() + * @generated + */ + void setProfileName(String value); - /** - * Returns the value of the 'Bootstrap Port' attribute. - * - *

- * If the meaning of the 'Bootstrap Port' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Bootstrap Port' attribute. - * @see #setBootstrapPort(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_BootstrapPort() - * @model - * @generated - */ - String getBootstrapPort(); + /** + * Returns the value of the 'Bootstrap Port' attribute. + *

+ * If the meaning of the 'Bootstrap Port' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Bootstrap Port' attribute. + * @see #setBootstrapPort(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_BootstrapPort() + * @model + * @generated + */ + String getBootstrapPort(); - Integer bootstrapPort(); + Integer bootstrapPort(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getBootstrapPort Bootstrap Port}' attribute. - * - * - * @param value the new value of the 'Bootstrap Port' attribute. - * @see #getBootstrapPort() - * @generated - */ - void setBootstrapPort(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getBootstrapPort + * Bootstrap Port}' attribute. + * + * @param value the new value of the 'Bootstrap Port' attribute. + * @see #getBootstrapPort() + * @generated + */ + void setBootstrapPort(String value); - /** - * Returns the value of the 'Icp Port' attribute. - * - *

- * If the meaning of the 'Icp Port' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Icp Port' attribute. - * @see #setIcpPort(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_IcpPort() - * @model - * @generated - */ - String getIcpPort(); + /** + * Returns the value of the 'Icp Port' attribute. + *

+ * If the meaning of the 'Icp Port' attribute isn't clear, there really + * should be more of a description here... + *

+ * + * + * @return the value of the 'Icp Port' attribute. + * @see #setIcpPort(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_IcpPort() + * @model + * @generated + */ + String getIcpPort(); - Integer icpPort(); + Integer icpPort(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getIcpPort Icp Port}' attribute. - * - * - * @param value the new value of the 'Icp Port' attribute. - * @see #getIcpPort() - * @generated - */ - void setIcpPort(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getIcpPort Icp + * Port}' attribute. + * + * @param value the new value of the 'Icp Port' attribute. + * @see #getIcpPort() + * @generated + */ + void setIcpPort(String value); - /** - * Returns the value of the 'Soap Port' attribute. - * - *

- * If the meaning of the 'Soap Port' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Soap Port' attribute. - * @see #setSoapPort(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_SoapPort() - * @model - * @generated - */ - String getSoapPort(); + /** + * Returns the value of the 'Soap Port' attribute. + *

+ * If the meaning of the 'Soap Port' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Soap Port' attribute. + * @see #setSoapPort(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_SoapPort() + * @model + * @generated + */ + String getSoapPort(); - Integer soapPort(); + Integer soapPort(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSoapPort Soap Port}' attribute. - * - * - * @param value the new value of the 'Soap Port' attribute. - * @see #getSoapPort() - * @generated - */ - void setSoapPort(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSoapPort Soap + * Port}' attribute. + * + * @param value the new value of the 'Soap Port' attribute. + * @see #getSoapPort() + * @generated + */ + void setSoapPort(String value); - /** - * Returns the value of the 'Remote Os User' attribute. - * - *

- * If the meaning of the 'Remote Os User' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Remote Os User' attribute. - * @see #setRemoteOsUser(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_RemoteOsUser() - * @model - * @generated - */ - String getRemoteOsUser(); + /** + * Returns the value of the 'Remote Os User' attribute. + *

+ * If the meaning of the 'Remote Os User' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Remote Os User' attribute. + * @see #setRemoteOsUser(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_RemoteOsUser() + * @model + * @generated + */ + String getRemoteOsUser(); - boolean hasRemoteOsUser(); + boolean hasRemoteOsUser(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsUser Remote Os User}' attribute. - * - * - * @param value the new value of the 'Remote Os User' attribute. - * @see #getRemoteOsUser() - * @generated - */ - void setRemoteOsUser(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsUser + * Remote Os User}' attribute. + * + * @param value the new value of the 'Remote Os User' attribute. + * @see #getRemoteOsUser() + * @generated + */ + void setRemoteOsUser(String value); - /** - * Returns the value of the 'Remote Os Password' attribute. - * - *

- * If the meaning of the 'Remote Os Password' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Remote Os Password' attribute. - * @see #setRemoteOsPassword(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_RemoteOsPassword() - * @model - * @generated - */ - String getRemoteOsPassword(); + /** + * Returns the value of the 'Remote Os Password' attribute. + *

+ * If the meaning of the 'Remote Os Password' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * + * @return the value of the 'Remote Os Password' attribute. + * @see #setRemoteOsPassword(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_RemoteOsPassword() + * @model + * @generated + */ + String getRemoteOsPassword(); - boolean hasRemoteOsPassword(); + boolean hasRemoteOsPassword(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsPassword Remote Os Password}' attribute. - * - * - * @param value the new value of the 'Remote Os Password' attribute. - * @see #getRemoteOsPassword() - * @generated - */ - void setRemoteOsPassword(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getRemoteOsPassword + * Remote Os Password}' attribute. + * + * @param value the new value of the 'Remote Os Password' attribute. + * @see #getRemoteOsPassword() + * @generated + */ + void setRemoteOsPassword(String value); - /** - * Returns the value of the 'Server Version' attribute. - * The literals are from the enumeration {@link com.gratex.oomph.task.server.WebsphereServerVersion}. - * - *

- * If the meaning of the 'Server Version' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Server Version' attribute. - * @see com.gratex.oomph.task.server.WebsphereServerVersion - * @see #setServerVersion(WebsphereServerVersion) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_ServerVersion() - * @model required="true" - * @generated - */ - WebsphereServerVersion getServerVersion(); + /** + * Returns the value of the 'Server Version' attribute. The + * literals are from the enumeration + * {@link com.gratex.oomph.task.server.WebsphereServerVersion}. + *

+ * If the meaning of the 'Server Version' attribute isn't clear, there + * really should be more of a description here... + *

+ * + * + * @return the value of the 'Server Version' attribute. + * @see com.gratex.oomph.task.server.WebsphereServerVersion + * @see #setServerVersion(WebsphereServerVersion) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_ServerVersion() + * @model required="true" + * @generated + */ + WebsphereServerVersion getServerVersion(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getServerVersion Server Version}' attribute. - * - * - * @param value the new value of the 'Server Version' attribute. - * @see com.gratex.oomph.task.server.WebsphereServerVersion - * @see #getServerVersion() - * @generated - */ - void setServerVersion(WebsphereServerVersion value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getServerVersion + * Server Version}' attribute. + * + * @param value the new value of the 'Server Version' attribute. + * @see com.gratex.oomph.task.server.WebsphereServerVersion + * @see #getServerVersion() + * @generated + */ + void setServerVersion(WebsphereServerVersion value); - /** - * Returns the value of the 'Security User Id' attribute. - * - *

- * If the meaning of the 'Security User Id' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Security User Id' attribute. - * @see #setSecurityUserId(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_SecurityUserId() - * @model - * @generated - */ - String getSecurityUserId(); + /** + * Returns the value of the 'Security User Id' attribute. + *

+ * If the meaning of the 'Security User Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * + * @return the value of the 'Security User Id' attribute. + * @see #setSecurityUserId(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_SecurityUserId() + * @model + * @generated + */ + String getSecurityUserId(); - boolean hasSecurityUserId(); + boolean hasSecurityUserId(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserId Security User Id}' attribute. - * - * - * @param value the new value of the 'Security User Id' attribute. - * @see #getSecurityUserId() - * @generated - */ - void setSecurityUserId(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserId + * Security User Id}' attribute. + * + * @param value the new value of the 'Security User Id' attribute. + * @see #getSecurityUserId() + * @generated + */ + void setSecurityUserId(String value); - /** - * Returns the value of the 'Security User Password' attribute. - * - *

- * If the meaning of the 'Security User Password' attribute isn't clear, - * there really should be more of a description here... - *

- * - * @return the value of the 'Security User Password' attribute. - * @see #setSecurityUserPassword(String) - * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_SecurityUserPassword() - * @model - * @generated - */ - String getSecurityUserPassword(); + /** + * Returns the value of the 'Security User Password' attribute. + * + *

+ * If the meaning of the 'Security User Password' attribute isn't + * clear, there really should be more of a description here... + *

+ * + * + * @return the value of the 'Security User Password' attribute. + * @see #setSecurityUserPassword(String) + * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerTask_SecurityUserPassword() + * @model + * @generated + */ + String getSecurityUserPassword(); - /** - * Sets the value of the '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserPassword Security User Password}' attribute. - * - * - * @param value the new value of the 'Security User Password' attribute. - * @see #getSecurityUserPassword() - * @generated - */ - void setSecurityUserPassword(String value); + /** + * Sets the value of the + * '{@link com.gratex.oomph.task.server.WebsphereServerTask#getSecurityUserPassword + * Security User Password}' attribute. + * + * @param value the new value of the 'Security User Password' + * attribute. + * @see #getSecurityUserPassword() + * @generated + */ + void setSecurityUserPassword(String value); - boolean hasSecurityUserPassword(); + boolean hasSecurityUserPassword(); } // WebsphereServerTask diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WebsphereServerVersion.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WebsphereServerVersion.java index e14e3cc..8d5689b 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WebsphereServerVersion.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/WebsphereServerVersion.java @@ -2,280 +2,265 @@ */ package com.gratex.oomph.task.server; -import org.eclipse.emf.common.util.Enumerator; - import java.util.Arrays; import java.util.Collections; import java.util.List; +import org.eclipse.emf.common.util.Enumerator; + /** - * - * A representation of the literals of the enumeration 'Websphere Server Version', - * and utility methods for working with them. - * + * A representation of the literals of the enumeration + * 'Websphere Server Version', and utility methods for working + * with them. + * * @see com.gratex.oomph.task.server.ServerPackage#getWebsphereServerVersion() * @model * @generated */ -public enum WebsphereServerVersion implements Enumerator -{ - /** - * The 'WAS70' literal object. - * - * - * @see #WAS70_VALUE - * @generated - * @ordered - */ - WAS70(0, "WAS70", "WebSphere 7.0"), +public enum WebsphereServerVersion implements Enumerator { + /** + * The 'WAS70' literal object. + * + * @see #WAS70_VALUE + * @generated + * @ordered + */ + WAS70(0, "WAS70", "WebSphere 7.0"), - /** - * The 'WAS80' literal object. - * - * - * @see #WAS80_VALUE - * @generated - * @ordered - */ - WAS80(1, "WAS80", "WebSphere 8.0"), - /** - * The 'WAS85' literal object. - * - * - * @see #WAS85_VALUE - * @generated - * @ordered - */ - WAS85(2, "WAS85", "WebSphere 8.5"), - /** - * The 'WAS9' literal object. - * - * - * @see #WAS9_VALUE - * @generated - * @ordered - */ - WAS9(3, "WAS9", "WebSphere 9"); + /** + * The 'WAS80' literal object. + * + * @see #WAS80_VALUE + * @generated + * @ordered + */ + WAS80(1, "WAS80", "WebSphere 8.0"), + /** + * The 'WAS85' literal object. + * + * @see #WAS85_VALUE + * @generated + * @ordered + */ + WAS85(2, "WAS85", "WebSphere 8.5"), + /** + * The 'WAS9' literal object. + * + * @see #WAS9_VALUE + * @generated + * @ordered + */ + WAS9(3, "WAS9", "WebSphere 9"); - /** - * The 'WAS70' literal value. - * - *

- * If the meaning of 'WAS70' literal object isn't clear, - * there really should be more of a description here... - *

- * - * @see #WAS70 - * @model literal="WebSphere 7.0" - * @generated - * @ordered - */ - public static final int WAS70_VALUE = 0; + /** + * The 'WAS70' literal value. + *

+ * If the meaning of 'WAS70' literal object isn't clear, there + * really should be more of a description here... + *

+ * + * + * @see #WAS70 + * @model literal="WebSphere 7.0" + * @generated + * @ordered + */ + public static final int WAS70_VALUE = 0; - /** - * The 'WAS80' literal value. - * - *

- * If the meaning of 'WAS80' literal object isn't clear, - * there really should be more of a description here... - *

- * - * @see #WAS80 - * @model literal="WebSphere 8.0" - * @generated - * @ordered - */ - public static final int WAS80_VALUE = 1; + /** + * The 'WAS80' literal value. + *

+ * If the meaning of 'WAS80' literal object isn't clear, there + * really should be more of a description here... + *

+ * + * + * @see #WAS80 + * @model literal="WebSphere 8.0" + * @generated + * @ordered + */ + public static final int WAS80_VALUE = 1; - /** - * The 'WAS85' literal value. - * - *

- * If the meaning of 'WAS85' literal object isn't clear, - * there really should be more of a description here... - *

- * - * @see #WAS85 - * @model literal="WebSphere 8.5" - * @generated - * @ordered - */ - public static final int WAS85_VALUE = 2; + /** + * The 'WAS85' literal value. + *

+ * If the meaning of 'WAS85' literal object isn't clear, there + * really should be more of a description here... + *

+ * + * + * @see #WAS85 + * @model literal="WebSphere 8.5" + * @generated + * @ordered + */ + public static final int WAS85_VALUE = 2; - /** - * The 'WAS9' literal value. - * - *

- * If the meaning of 'WAS9' literal object isn't clear, - * there really should be more of a description here... - *

- * - * @see #WAS9 - * @model literal="WebSphere 9" - * @generated - * @ordered - */ - public static final int WAS9_VALUE = 3; + /** + * The 'WAS9' literal value. + *

+ * If the meaning of 'WAS9' literal object isn't clear, there + * really should be more of a description here... + *

+ * + * + * @see #WAS9 + * @model literal="WebSphere 9" + * @generated + * @ordered + */ + public static final int WAS9_VALUE = 3; - /** - * An array of all the 'Websphere Server Version' enumerators. - * - * - * @generated - */ - private static final WebsphereServerVersion[] VALUES_ARRAY = new WebsphereServerVersion[] { WAS70, WAS80, WAS85, WAS9, }; + /** + * An array of all the 'Websphere Server Version' enumerators. + * + * + * @generated + */ + private static final WebsphereServerVersion[] VALUES_ARRAY = new WebsphereServerVersion[] { WAS70, WAS80, WAS85, + WAS9, }; - /** - * A public read-only list of all the 'Websphere Server Version' enumerators. - * - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + /** + * A public read-only list of all the 'Websphere Server Version' + * enumerators. + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - /** - * Returns the 'Websphere Server Version' literal with the specified literal value. - * - * - * @param literal the literal. - * @return the matching enumerator or null. - * @generated - */ - public static WebsphereServerVersion get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - WebsphereServerVersion result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { - return result; - } - } - return null; - } + /** + * Returns the 'Websphere Server Version' literal with the + * specified literal value. + * + * @param literal the literal. + * @return the matching enumerator or null. + * @generated + */ + public static WebsphereServerVersion get(String literal) { + for (WebsphereServerVersion result : VALUES_ARRAY) { + if (result.toString().equals(literal)) { + return result; + } + } + return null; + } - /** - * Returns the 'Websphere Server Version' literal with the specified name. - * - * - * @param name the name. - * @return the matching enumerator or null. - * @generated - */ - public static WebsphereServerVersion getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - WebsphereServerVersion result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { - return result; - } - } - return null; - } + /** + * Returns the 'Websphere Server Version' literal with the + * specified name. + * + * @param name the name. + * @return the matching enumerator or null. + * @generated + */ + public static WebsphereServerVersion getByName(String name) { + for (WebsphereServerVersion result : VALUES_ARRAY) { + if (result.getName().equals(name)) { + return result; + } + } + return null; + } - /** - * Returns the 'Websphere Server Version' literal with the specified integer value. - * - * - * @param value the integer value. - * @return the matching enumerator or null. - * @generated - */ - public static WebsphereServerVersion get(int value) - { - switch (value) - { - case WAS70_VALUE: - return WAS70; - case WAS80_VALUE: - return WAS80; - case WAS85_VALUE: - return WAS85; - case WAS9_VALUE: - return WAS9; - } - return null; - } + /** + * Returns the 'Websphere Server Version' literal with the + * specified integer value. + * + * @param value the integer value. + * @return the matching enumerator or null. + * @generated + */ + public static WebsphereServerVersion get(int value) { + switch (value) { + case WAS70_VALUE: + return WAS70; + case WAS80_VALUE: + return WAS80; + case WAS85_VALUE: + return WAS85; + case WAS9_VALUE: + return WAS9; + } + return null; + } - /** - * - * - * @generated - */ - private final int value; + /** + * + * + * @generated + */ + private final int value; - /** - * - * - * @generated - */ - private final String name; + /** + * + * + * @generated + */ + private final String name; - /** - * - * - * @generated - */ - private final String literal; + /** + * + * + * @generated + */ + private final String literal; - /** - * Only this class can construct instances. - * - * - * @generated - */ - private WebsphereServerVersion(int value, String name, String literal) - { - this.value = value; - this.name = name; - this.literal = literal; - } + /** + * Only this class can construct instances. + * + * @generated + */ + private WebsphereServerVersion(int value, String name, String literal) { + this.value = value; + this.name = name; + this.literal = literal; + } - /** - * - * - * @generated - */ - @Override - public int getValue() - { - return value; - } + /** + * + * + * @generated + */ + @Override + public int getValue() { + return value; + } - /** - * - * - * @generated - */ - @Override - public String getName() - { - return name; - } + /** + * + * + * @generated + */ + @Override + public String getName() { + return name; + } - /** - * - * - * @generated - */ - @Override - public String getLiteral() - { - return literal; - } + /** + * + * + * @generated + */ + @Override + public String getLiteral() { + return literal; + } - /** - * Returns the literal value of the enumerator, which is its string representation. - * - * - * @generated - */ - @Override - public String toString() - { - return literal; - } + /** + * Returns the literal value of the enumerator, which is its string + * representation. + * + * @generated + */ + @Override + public String toString() { + return literal; + } } // WebsphereServerVersion diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/creator/impl/TomcatServerCreator.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/creator/impl/TomcatServerCreator.java index 401f467..3d5c107 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/creator/impl/TomcatServerCreator.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/creator/impl/TomcatServerCreator.java @@ -42,12 +42,20 @@ public class TomcatServerCreator extends ServerCreator public static final String SERVER_RUNTIME_ID_80 = "org.eclipse.jst.server.tomcat.runtime.80"; public static final String SERVER_RUNTIME_ID_85 = "org.eclipse.jst.server.tomcat.runtime.85"; + + public static final String SERVER_RUNTIME_ID_90 = "org.eclipse.jst.server.tomcat.runtime.90"; + + public static final String SERVER_RUNTIME_ID_100 = "org.eclipse.jst.server.tomcat.runtime.100"; public static final String SERVER_ID_70 = "org.eclipse.jst.server.tomcat.70"; public static final String SERVER_ID_80 = "org.eclipse.jst.server.tomcat.80"; public static final String SERVER_ID_85 = "org.eclipse.jst.server.tomcat.85"; + + public static final String SERVER_ID_90 = "org.eclipse.jst.server.tomcat.90"; + + public static final String SERVER_ID_100 = "org.eclipse.jst.server.tomcat.100"; private TomcatServerTask serverTask; @@ -67,6 +75,10 @@ private String serverRuntimeId() throws ServerTaskException return SERVER_RUNTIME_ID_80; case TOMCAT85: return SERVER_RUNTIME_ID_85; + case TOMCAT90: + return SERVER_RUNTIME_ID_90; + case TOMCAT100: + return SERVER_RUNTIME_ID_100; default: throw new ServerTaskException("Unsupported tomcat server type" + serverTask.getServerVersion().getName()); @@ -83,6 +95,10 @@ private String serverId() throws ServerTaskException return SERVER_ID_80; case TOMCAT85: return SERVER_ID_85; + case TOMCAT90: + return SERVER_ID_90; + case TOMCAT100: + return SERVER_ID_100; default: throw new ServerTaskException("Unsupported tomcat server type" + serverTask.getServerVersion().getName()); diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerFactoryImpl.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerFactoryImpl.java index 733ee3b..6f2feec 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerFactoryImpl.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerFactoryImpl.java @@ -18,213 +18,190 @@ import com.gratex.oomph.task.server.WebsphereServerVersion; /** - * - * An implementation of the model Factory. - * + * An implementation of the model Factory. + * * @generated */ -public class ServerFactoryImpl extends EFactoryImpl implements ServerFactory -{ - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static ServerFactory init() - { - try - { - ServerFactory theServerFactory = (ServerFactory)EPackage.Registry.INSTANCE.getEFactory(ServerPackage.eNS_URI); - if (theServerFactory != null) - { - return theServerFactory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new ServerFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public ServerFactoryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case ServerPackage.TOMCAT_SERVER_TASK: - return createTomcatServerTask(); - case ServerPackage.WEBLOGIC_SERVER_TASK: - return createWeblogicServerTask(); - case ServerPackage.WEBSPHERE_SERVER_TASK: - return createWebsphereServerTask(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) - { - switch (eDataType.getClassifierID()) - { - case ServerPackage.TOMCAT_SERVER_VERSION: - return createTomcatServerVersionFromString(eDataType, initialValue); - case ServerPackage.WEBSPHERE_SERVER_VERSION: - return createWebsphereServerVersionFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) - { - switch (eDataType.getClassifierID()) - { - case ServerPackage.TOMCAT_SERVER_VERSION: - return convertTomcatServerVersionToString(eDataType, instanceValue); - case ServerPackage.WEBSPHERE_SERVER_VERSION: - return convertWebsphereServerVersionToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public TomcatServerTask createTomcatServerTask() - { - TomcatServerTaskImpl tomcatServerTask = new TomcatServerTaskImpl(); - return tomcatServerTask; - } - - /** - * - * - * @generated - */ - @Override - public WeblogicServerTask createWeblogicServerTask() - { - WeblogicServerTaskImpl weblogicServerTask = new WeblogicServerTaskImpl(); - return weblogicServerTask; - } - - /** - * - * - * @generated - */ - @Override - public WebsphereServerTask createWebsphereServerTask() - { - WebsphereServerTaskImpl websphereServerTask = new WebsphereServerTaskImpl(); - return websphereServerTask; - } - - /** - * - * - * @generated - */ - public TomcatServerVersion createTomcatServerVersionFromString(EDataType eDataType, String initialValue) - { - TomcatServerVersion result = TomcatServerVersion.get(initialValue); - if (result == null) - { - throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - } - return result; - } - - /** - * - * - * @generated - */ - public String convertTomcatServerVersionToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public WebsphereServerVersion createWebsphereServerVersionFromString(EDataType eDataType, String initialValue) - { - WebsphereServerVersion result = WebsphereServerVersion.get(initialValue); - if (result == null) - { - throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - } - return result; - } - - /** - * - * - * @generated - */ - public String convertWebsphereServerVersionToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - @Override - public ServerPackage getServerPackage() - { - return (ServerPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static ServerPackage getPackage() - { - return ServerPackage.eINSTANCE; - } +public class ServerFactoryImpl extends EFactoryImpl implements ServerFactory { + /** + * Creates the default factory implementation. + * + * @generated + */ + public static ServerFactory init() { + try { + ServerFactory theServerFactory = (ServerFactory) EPackage.Registry.INSTANCE + .getEFactory(ServerPackage.eNS_URI); + if (theServerFactory != null) { + return theServerFactory; + } + } catch (Exception exception) { + EcorePlugin.INSTANCE.log(exception); + } + return new ServerFactoryImpl(); + } + + /** + * Creates an instance of the factory. + * + * @generated + */ + public ServerFactoryImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) { + switch (eClass.getClassifierID()) { + case ServerPackage.TOMCAT_SERVER_TASK: + return createTomcatServerTask(); + case ServerPackage.WEBLOGIC_SERVER_TASK: + return createWeblogicServerTask(); + case ServerPackage.WEBSPHERE_SERVER_TASK: + return createWebsphereServerTask(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) { + switch (eDataType.getClassifierID()) { + case ServerPackage.TOMCAT_SERVER_VERSION: + return createTomcatServerVersionFromString(eDataType, initialValue); + case ServerPackage.WEBSPHERE_SERVER_VERSION: + return createWebsphereServerVersionFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) { + switch (eDataType.getClassifierID()) { + case ServerPackage.TOMCAT_SERVER_VERSION: + return convertTomcatServerVersionToString(eDataType, instanceValue); + case ServerPackage.WEBSPHERE_SERVER_VERSION: + return convertWebsphereServerVersionToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public TomcatServerTask createTomcatServerTask() { + TomcatServerTaskImpl tomcatServerTask = new TomcatServerTaskImpl(); + return tomcatServerTask; + } + + /** + * + * + * @generated + */ + @Override + public WeblogicServerTask createWeblogicServerTask() { + WeblogicServerTaskImpl weblogicServerTask = new WeblogicServerTaskImpl(); + return weblogicServerTask; + } + + /** + * + * + * @generated + */ + @Override + public WebsphereServerTask createWebsphereServerTask() { + WebsphereServerTaskImpl websphereServerTask = new WebsphereServerTaskImpl(); + return websphereServerTask; + } + + /** + * + * + * @generated + */ + public TomcatServerVersion createTomcatServerVersionFromString(EDataType eDataType, String initialValue) { + TomcatServerVersion result = TomcatServerVersion.get(initialValue); + if (result == null) + throw new IllegalArgumentException( + "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertTomcatServerVersionToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public WebsphereServerVersion createWebsphereServerVersionFromString(EDataType eDataType, String initialValue) { + WebsphereServerVersion result = WebsphereServerVersion.get(initialValue); + if (result == null) + throw new IllegalArgumentException( + "The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertWebsphereServerVersionToString(EDataType eDataType, Object instanceValue) { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + @Override + public ServerPackage getServerPackage() { + return (ServerPackage) getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static ServerPackage getPackage() { + return ServerPackage.eINSTANCE; + } } // ServerFactoryImpl diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerImpl.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerImpl.java index 5b05cc9..c470123 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerImpl.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerImpl.java @@ -2,563 +2,534 @@ */ package com.gratex.oomph.task.server.impl; -import org.eclipse.oomph.setup.impl.SetupTaskImpl; - import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.oomph.setup.impl.SetupTaskImpl; import com.gratex.oomph.task.server.Server; import com.gratex.oomph.task.server.ServerPackage; import com.gratex.oomph.task.utils.Convert; /** - * - * An implementation of the model object 'Server'. - * + * An implementation of the model object + * 'Server'. *

* The following features are implemented: *

*
    - *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getServerName Server Name}
  • - *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getLocation Location}
  • - *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getRuntimeName Runtime Name}
  • - *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getHostname Hostname}
  • - *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#isCleanPreviousRuntimes Clean Previous Runtimes}
  • - *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getStartTimeout Start Timeout}
  • - *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getStopTimeout Stop Timeout}
  • + *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getServerName + * Server Name}
  • + *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getLocation + * Location}
  • + *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getRuntimeName + * Runtime Name}
  • + *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getHostname + * Hostname}
  • + *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#isCleanPreviousRuntimes + * Clean Previous Runtimes}
  • + *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getStartTimeout + * Start Timeout}
  • + *
  • {@link com.gratex.oomph.task.server.impl.ServerImpl#getStopTimeout + * Stop Timeout}
  • *
* * @generated */ -public abstract class ServerImpl extends SetupTaskImpl implements Server -{ - /** - * The default value of the '{@link #getServerName() Server Name}' attribute. - * - * - * @see #getServerName() - * @generated - * @ordered - */ - protected static final String SERVER_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getServerName() Server Name}' attribute. - * - * - * @see #getServerName() - * @generated - * @ordered - */ - protected String serverName = SERVER_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getLocation() Location}' attribute. - * - * - * @see #getLocation() - * @generated - * @ordered - */ - protected static final String LOCATION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLocation() Location}' attribute. - * - * - * @see #getLocation() - * @generated - * @ordered - */ - protected String location = LOCATION_EDEFAULT; - - /** - * The default value of the '{@link #getRuntimeName() Runtime Name}' attribute. - * - * - * @see #getRuntimeName() - * @generated - * @ordered - */ - protected static final String RUNTIME_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getRuntimeName() Runtime Name}' attribute. - * - * - * @see #getRuntimeName() - * @generated - * @ordered - */ - protected String runtimeName = RUNTIME_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getHostname() Hostname}' attribute. - * - * - * @see #getHostname() - * @generated - * @ordered - */ - protected static final String HOSTNAME_EDEFAULT = "localhost"; - - /** - * The cached value of the '{@link #getHostname() Hostname}' attribute. - * - * - * @see #getHostname() - * @generated - * @ordered - */ - protected String hostname = HOSTNAME_EDEFAULT; - - /** - * The default value of the '{@link #isCleanPreviousRuntimes() Clean Previous Runtimes}' attribute. - * - * - * @see #isCleanPreviousRuntimes() - * @generated - * @ordered - */ - protected static final boolean CLEAN_PREVIOUS_RUNTIMES_EDEFAULT = false; - - /** - * The cached value of the '{@link #isCleanPreviousRuntimes() Clean Previous Runtimes}' attribute. - * - * - * @see #isCleanPreviousRuntimes() - * @generated - * @ordered - */ - protected boolean cleanPreviousRuntimes = CLEAN_PREVIOUS_RUNTIMES_EDEFAULT; - - /** - * The default value of the '{@link #getStartTimeout() Start Timeout}' attribute. - * - * - * @see #getStartTimeout() - * @generated - * @ordered - */ - protected static final String START_TIMEOUT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getStartTimeout() Start Timeout}' attribute. - * - * - * @see #getStartTimeout() - * @generated - * @ordered - */ - protected String startTimeout = START_TIMEOUT_EDEFAULT; - - /** - * The default value of the '{@link #getStopTimeout() Stop Timeout}' attribute. - * - * - * @see #getStopTimeout() - * @generated - * @ordered - */ - protected static final String STOP_TIMEOUT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getStopTimeout() Stop Timeout}' attribute. - * - * - * @see #getStopTimeout() - * @generated - * @ordered - */ - protected String stopTimeout = STOP_TIMEOUT_EDEFAULT; - - /** - * - * - * @generated - */ - protected ServerImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ServerPackage.Literals.SERVER; - } - - /** - * - * - * @generated - */ - @Override - public String getServerName() - { - return serverName; - } - - /** - * - * - * @generated - */ - @Override - public void setServerName(String newServerName) - { - String oldServerName = serverName; - serverName = newServerName; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__SERVER_NAME, oldServerName, serverName)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getLocation() - { - return location; - } - - /** - * - * - * @generated - */ - @Override - public void setLocation(String newLocation) - { - String oldLocation = location; - location = newLocation; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__LOCATION, oldLocation, location)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getRuntimeName() - { - return runtimeName; - } - - /** - * - * - * @generated - */ - @Override - public void setRuntimeName(String newRuntimeName) - { - String oldRuntimeName = runtimeName; - runtimeName = newRuntimeName; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__RUNTIME_NAME, oldRuntimeName, runtimeName)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getHostname() - { - return hostname; - } - - /** - * - * - * @generated - */ - @Override - public void setHostname(String newHostname) - { - String oldHostname = hostname; - hostname = newHostname; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__HOSTNAME, oldHostname, hostname)); - } - } - - /** - * - * - * @generated - */ - @Override - public boolean isCleanPreviousRuntimes() - { - return cleanPreviousRuntimes; - } - - /** - * - * - * @generated - */ - @Override - public void setCleanPreviousRuntimes(boolean newCleanPreviousRuntimes) - { - boolean oldCleanPreviousRuntimes = cleanPreviousRuntimes; - cleanPreviousRuntimes = newCleanPreviousRuntimes; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES, oldCleanPreviousRuntimes, cleanPreviousRuntimes)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getStartTimeout() - { - return startTimeout; - } - - /** - * - * - * @generated - */ - @Override - public void setStartTimeout(String newStartTimeout) - { - String oldStartTimeout = startTimeout; - startTimeout = newStartTimeout; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__START_TIMEOUT, oldStartTimeout, startTimeout)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.Server#startTimeout() - */ - @Override - public Integer startTimeout() - { - return Convert.toInteger(getStartTimeout()); - } - - /** - * - * - * @generated - */ - @Override - public String getStopTimeout() - { - return stopTimeout; - } - - /** - * - * - * @generated - */ - @Override - public void setStopTimeout(String newStopTimeout) - { - String oldStopTimeout = stopTimeout; - stopTimeout = newStopTimeout; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__STOP_TIMEOUT, oldStopTimeout, stopTimeout)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.Server#stopTimeout() - */ - @Override - public Integer stopTimeout() - { - return Convert.toInteger(getStopTimeout()); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ServerPackage.SERVER__SERVER_NAME: - return getServerName(); - case ServerPackage.SERVER__LOCATION: - return getLocation(); - case ServerPackage.SERVER__RUNTIME_NAME: - return getRuntimeName(); - case ServerPackage.SERVER__HOSTNAME: - return getHostname(); - case ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES: - return isCleanPreviousRuntimes(); - case ServerPackage.SERVER__START_TIMEOUT: - return getStartTimeout(); - case ServerPackage.SERVER__STOP_TIMEOUT: - return getStopTimeout(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ServerPackage.SERVER__SERVER_NAME: - setServerName((String)newValue); - return; - case ServerPackage.SERVER__LOCATION: - setLocation((String)newValue); - return; - case ServerPackage.SERVER__RUNTIME_NAME: - setRuntimeName((String)newValue); - return; - case ServerPackage.SERVER__HOSTNAME: - setHostname((String)newValue); - return; - case ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES: - setCleanPreviousRuntimes((Boolean)newValue); - return; - case ServerPackage.SERVER__START_TIMEOUT: - setStartTimeout((String)newValue); - return; - case ServerPackage.SERVER__STOP_TIMEOUT: - setStopTimeout((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ServerPackage.SERVER__SERVER_NAME: - setServerName(SERVER_NAME_EDEFAULT); - return; - case ServerPackage.SERVER__LOCATION: - setLocation(LOCATION_EDEFAULT); - return; - case ServerPackage.SERVER__RUNTIME_NAME: - setRuntimeName(RUNTIME_NAME_EDEFAULT); - return; - case ServerPackage.SERVER__HOSTNAME: - setHostname(HOSTNAME_EDEFAULT); - return; - case ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES: - setCleanPreviousRuntimes(CLEAN_PREVIOUS_RUNTIMES_EDEFAULT); - return; - case ServerPackage.SERVER__START_TIMEOUT: - setStartTimeout(START_TIMEOUT_EDEFAULT); - return; - case ServerPackage.SERVER__STOP_TIMEOUT: - setStopTimeout(STOP_TIMEOUT_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ServerPackage.SERVER__SERVER_NAME: - return SERVER_NAME_EDEFAULT == null ? serverName != null : !SERVER_NAME_EDEFAULT.equals(serverName); - case ServerPackage.SERVER__LOCATION: - return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); - case ServerPackage.SERVER__RUNTIME_NAME: - return RUNTIME_NAME_EDEFAULT == null ? runtimeName != null : !RUNTIME_NAME_EDEFAULT.equals(runtimeName); - case ServerPackage.SERVER__HOSTNAME: - return HOSTNAME_EDEFAULT == null ? hostname != null : !HOSTNAME_EDEFAULT.equals(hostname); - case ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES: - return cleanPreviousRuntimes != CLEAN_PREVIOUS_RUNTIMES_EDEFAULT; - case ServerPackage.SERVER__START_TIMEOUT: - return START_TIMEOUT_EDEFAULT == null ? startTimeout != null : !START_TIMEOUT_EDEFAULT.equals(startTimeout); - case ServerPackage.SERVER__STOP_TIMEOUT: - return STOP_TIMEOUT_EDEFAULT == null ? stopTimeout != null : !STOP_TIMEOUT_EDEFAULT.equals(stopTimeout); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - { - return super.toString(); - } - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (serverName: "); - result.append(serverName); - result.append(", location: "); - result.append(location); - result.append(", runtimeName: "); - result.append(runtimeName); - result.append(", hostname: "); - result.append(hostname); - result.append(", cleanPreviousRuntimes: "); - result.append(cleanPreviousRuntimes); - result.append(", startTimeout: "); - result.append(startTimeout); - result.append(", stopTimeout: "); - result.append(stopTimeout); - result.append(')'); - return result.toString(); - } +public abstract class ServerImpl extends SetupTaskImpl implements Server { + /** + * The default value of the '{@link #getServerName() Server Name}' + * attribute. + * + * @see #getServerName() + * @generated + * @ordered + */ + protected static final String SERVER_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getServerName() Server Name}' + * attribute. + * + * @see #getServerName() + * @generated + * @ordered + */ + protected String serverName = SERVER_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getLocation() Location}' + * attribute. + * + * @see #getLocation() + * @generated + * @ordered + */ + protected static final String LOCATION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getLocation() Location}' attribute. + * + * + * @see #getLocation() + * @generated + * @ordered + */ + protected String location = LOCATION_EDEFAULT; + + /** + * The default value of the '{@link #getRuntimeName() Runtime Name}' + * attribute. + * + * @see #getRuntimeName() + * @generated + * @ordered + */ + protected static final String RUNTIME_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRuntimeName() Runtime Name}' + * attribute. + * + * @see #getRuntimeName() + * @generated + * @ordered + */ + protected String runtimeName = RUNTIME_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getHostname() Hostname}' + * attribute. + * + * @see #getHostname() + * @generated + * @ordered + */ + protected static final String HOSTNAME_EDEFAULT = "localhost"; + + /** + * The cached value of the '{@link #getHostname() Hostname}' attribute. + * + * + * @see #getHostname() + * @generated + * @ordered + */ + protected String hostname = HOSTNAME_EDEFAULT; + + /** + * The default value of the '{@link #isCleanPreviousRuntimes() Clean + * Previous Runtimes}' attribute. + * + * @see #isCleanPreviousRuntimes() + * @generated + * @ordered + */ + protected static final boolean CLEAN_PREVIOUS_RUNTIMES_EDEFAULT = false; + + /** + * The cached value of the '{@link #isCleanPreviousRuntimes() Clean Previous + * Runtimes}' attribute. + * + * @see #isCleanPreviousRuntimes() + * @generated + * @ordered + */ + protected boolean cleanPreviousRuntimes = CLEAN_PREVIOUS_RUNTIMES_EDEFAULT; + + /** + * The default value of the '{@link #getStartTimeout() Start Timeout}' + * attribute. + * + * @see #getStartTimeout() + * @generated + * @ordered + */ + protected static final String START_TIMEOUT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStartTimeout() Start Timeout}' + * attribute. + * + * @see #getStartTimeout() + * @generated + * @ordered + */ + protected String startTimeout = START_TIMEOUT_EDEFAULT; + + /** + * The default value of the '{@link #getStopTimeout() Stop Timeout}' + * attribute. + * + * @see #getStopTimeout() + * @generated + * @ordered + */ + protected static final String STOP_TIMEOUT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getStopTimeout() Stop Timeout}' + * attribute. + * + * @see #getStopTimeout() + * @generated + * @ordered + */ + protected String stopTimeout = STOP_TIMEOUT_EDEFAULT; + + /** + * + * + * @generated + */ + protected ServerImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.SERVER; + } + + /** + * + * + * @generated + */ + @Override + public String getServerName() { + return serverName; + } + + /** + * + * + * @generated + */ + @Override + public void setServerName(String newServerName) { + String oldServerName = serverName; + serverName = newServerName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__SERVER_NAME, oldServerName, + serverName)); + } + + /** + * + * + * @generated + */ + @Override + public String getLocation() { + return location; + } + + /** + * + * + * @generated + */ + @Override + public void setLocation(String newLocation) { + String oldLocation = location; + location = newLocation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__LOCATION, oldLocation, + location)); + } + + /** + * + * + * @generated + */ + @Override + public String getRuntimeName() { + return runtimeName; + } + + /** + * + * + * @generated + */ + @Override + public void setRuntimeName(String newRuntimeName) { + String oldRuntimeName = runtimeName; + runtimeName = newRuntimeName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__RUNTIME_NAME, oldRuntimeName, + runtimeName)); + } + + /** + * + * + * @generated + */ + @Override + public String getHostname() { + return hostname; + } + + /** + * + * + * @generated + */ + @Override + public void setHostname(String newHostname) { + String oldHostname = hostname; + hostname = newHostname; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__HOSTNAME, oldHostname, + hostname)); + } + + /** + * + * + * @generated + */ + @Override + public boolean isCleanPreviousRuntimes() { + return cleanPreviousRuntimes; + } + + /** + * + * + * @generated + */ + @Override + public void setCleanPreviousRuntimes(boolean newCleanPreviousRuntimes) { + boolean oldCleanPreviousRuntimes = cleanPreviousRuntimes; + cleanPreviousRuntimes = newCleanPreviousRuntimes; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES, + oldCleanPreviousRuntimes, cleanPreviousRuntimes)); + } + + /** + * + * + * @generated + */ + @Override + public String getStartTimeout() { + return startTimeout; + } + + /** + * + * + * @generated + */ + @Override + public void setStartTimeout(String newStartTimeout) { + String oldStartTimeout = startTimeout; + startTimeout = newStartTimeout; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__START_TIMEOUT, oldStartTimeout, + startTimeout)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.Server#startTimeout() + */ + @Override + public Integer startTimeout() { + return Convert.toInteger(getStartTimeout()); + } + + /** + * + * + * @generated + */ + @Override + public String getStopTimeout() { + return stopTimeout; + } + + /** + * + * + * @generated + */ + @Override + public void setStopTimeout(String newStopTimeout) { + String oldStopTimeout = stopTimeout; + stopTimeout = newStopTimeout; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.SERVER__STOP_TIMEOUT, oldStopTimeout, + stopTimeout)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.Server#stopTimeout() + */ + @Override + public Integer stopTimeout() { + return Convert.toInteger(getStopTimeout()); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ServerPackage.SERVER__SERVER_NAME: + return getServerName(); + case ServerPackage.SERVER__LOCATION: + return getLocation(); + case ServerPackage.SERVER__RUNTIME_NAME: + return getRuntimeName(); + case ServerPackage.SERVER__HOSTNAME: + return getHostname(); + case ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES: + return isCleanPreviousRuntimes(); + case ServerPackage.SERVER__START_TIMEOUT: + return getStartTimeout(); + case ServerPackage.SERVER__STOP_TIMEOUT: + return getStopTimeout(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ServerPackage.SERVER__SERVER_NAME: + setServerName((String) newValue); + return; + case ServerPackage.SERVER__LOCATION: + setLocation((String) newValue); + return; + case ServerPackage.SERVER__RUNTIME_NAME: + setRuntimeName((String) newValue); + return; + case ServerPackage.SERVER__HOSTNAME: + setHostname((String) newValue); + return; + case ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES: + setCleanPreviousRuntimes((Boolean) newValue); + return; + case ServerPackage.SERVER__START_TIMEOUT: + setStartTimeout((String) newValue); + return; + case ServerPackage.SERVER__STOP_TIMEOUT: + setStopTimeout((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ServerPackage.SERVER__SERVER_NAME: + setServerName(SERVER_NAME_EDEFAULT); + return; + case ServerPackage.SERVER__LOCATION: + setLocation(LOCATION_EDEFAULT); + return; + case ServerPackage.SERVER__RUNTIME_NAME: + setRuntimeName(RUNTIME_NAME_EDEFAULT); + return; + case ServerPackage.SERVER__HOSTNAME: + setHostname(HOSTNAME_EDEFAULT); + return; + case ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES: + setCleanPreviousRuntimes(CLEAN_PREVIOUS_RUNTIMES_EDEFAULT); + return; + case ServerPackage.SERVER__START_TIMEOUT: + setStartTimeout(START_TIMEOUT_EDEFAULT); + return; + case ServerPackage.SERVER__STOP_TIMEOUT: + setStopTimeout(STOP_TIMEOUT_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ServerPackage.SERVER__SERVER_NAME: + return SERVER_NAME_EDEFAULT == null ? serverName != null : !SERVER_NAME_EDEFAULT.equals(serverName); + case ServerPackage.SERVER__LOCATION: + return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); + case ServerPackage.SERVER__RUNTIME_NAME: + return RUNTIME_NAME_EDEFAULT == null ? runtimeName != null : !RUNTIME_NAME_EDEFAULT.equals(runtimeName); + case ServerPackage.SERVER__HOSTNAME: + return HOSTNAME_EDEFAULT == null ? hostname != null : !HOSTNAME_EDEFAULT.equals(hostname); + case ServerPackage.SERVER__CLEAN_PREVIOUS_RUNTIMES: + return cleanPreviousRuntimes != CLEAN_PREVIOUS_RUNTIMES_EDEFAULT; + case ServerPackage.SERVER__START_TIMEOUT: + return START_TIMEOUT_EDEFAULT == null ? startTimeout != null : !START_TIMEOUT_EDEFAULT.equals(startTimeout); + case ServerPackage.SERVER__STOP_TIMEOUT: + return STOP_TIMEOUT_EDEFAULT == null ? stopTimeout != null : !STOP_TIMEOUT_EDEFAULT.equals(stopTimeout); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (serverName: "); + result.append(serverName); + result.append(", location: "); + result.append(location); + result.append(", runtimeName: "); + result.append(runtimeName); + result.append(", hostname: "); + result.append(hostname); + result.append(", cleanPreviousRuntimes: "); + result.append(cleanPreviousRuntimes); + result.append(", startTimeout: "); + result.append(startTimeout); + result.append(", stopTimeout: "); + result.append(stopTimeout); + result.append(')'); + return result.toString(); + } } // ServerImpl diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerPackageImpl.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerPackageImpl.java index 459e025..c2755a1 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerPackageImpl.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/ServerPackageImpl.java @@ -2,14 +2,13 @@ */ package com.gratex.oomph.task.server.impl; -import org.eclipse.oomph.base.BasePackage; -import org.eclipse.oomph.setup.SetupPackage; - import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.oomph.base.BasePackage; +import org.eclipse.oomph.setup.SetupPackage; import com.gratex.oomph.task.server.Server; import com.gratex.oomph.task.server.ServerFactory; @@ -21,774 +20,765 @@ import com.gratex.oomph.task.server.WebsphereServerVersion; /** - * - * An implementation of the model Package. - * + * An implementation of the model Package. + * * @generated */ -public class ServerPackageImpl extends EPackageImpl implements ServerPackage -{ - /** - * - * - * @generated - */ - private EClass tomcatServerTaskEClass = null; - - /** - * - * - * @generated - */ - private EClass weblogicServerTaskEClass = null; - - /** - * - * - * @generated - */ - private EClass websphereServerTaskEClass = null; - - /** - * - * - * @generated - */ - private EClass serverEClass = null; - - /** - * - * - * @generated - */ - private EEnum tomcatServerVersionEEnum = null; - - /** - * - * - * @generated - */ - private EEnum websphereServerVersionEEnum = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

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. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see com.gratex.oomph.task.server.ServerPackage#eNS_URI - * @see #init() - * @generated - */ - private ServerPackageImpl() - { - super(eNS_URI, ServerFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link ServerPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static ServerPackage init() - { - if (isInited) - { - return (ServerPackage)EPackage.Registry.INSTANCE.getEPackage(ServerPackage.eNS_URI); - } - - // Obtain or create and register package - Object registeredServerPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - ServerPackageImpl theServerPackage = registeredServerPackage instanceof ServerPackageImpl ? (ServerPackageImpl)registeredServerPackage - : new ServerPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - BasePackage.eINSTANCE.eClass(); - SetupPackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theServerPackage.createPackageContents(); - - // Initialize created meta-data - theServerPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theServerPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(ServerPackage.eNS_URI, theServerPackage); - return theServerPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getTomcatServerTask() - { - return tomcatServerTaskEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getTomcatServerTask_JreVersion() - { - return (EAttribute)tomcatServerTaskEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getTomcatServerTask_Port() - { - return (EAttribute)tomcatServerTaskEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getTomcatServerTask_HttpsPort() - { - return (EAttribute)tomcatServerTaskEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getTomcatServerTask_ServerVersion() - { - return (EAttribute)tomcatServerTaskEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getTomcatServerTask_LaunchProgramArgs() - { - return (EAttribute)tomcatServerTaskEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getTomcatServerTask_LaunchVmArgs() - { - return (EAttribute)tomcatServerTaskEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - @Override - public EClass getWeblogicServerTask() - { - return weblogicServerTaskEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWeblogicServerTask_JreVersion() - { - return (EAttribute)weblogicServerTaskEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWeblogicServerTask_Port() - { - return (EAttribute)weblogicServerTaskEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWeblogicServerTask_HttpsPort() - { - return (EAttribute)weblogicServerTaskEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWeblogicServerTask_DebugPort() - { - return (EAttribute)weblogicServerTaskEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWeblogicServerTask_Username() - { - return (EAttribute)weblogicServerTaskEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWeblogicServerTask_Password() - { - return (EAttribute)weblogicServerTaskEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - @Override - public EClass getWebsphereServerTask() - { - return websphereServerTaskEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_BaseServerName() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_ProfilePath() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_ProfileName() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_BootstrapPort() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_IcpPort() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_SoapPort() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_RemoteOsUser() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_RemoteOsPassword() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(7); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_ServerVersion() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(8); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_SecurityUserId() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(9); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getWebsphereServerTask_SecurityUserPassword() - { - return (EAttribute)websphereServerTaskEClass.getEStructuralFeatures().get(10); - } - - /** - * - * - * @generated - */ - @Override - public EClass getServer() - { - return serverEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getServer_ServerName() - { - return (EAttribute)serverEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getServer_Location() - { - return (EAttribute)serverEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getServer_RuntimeName() - { - return (EAttribute)serverEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getServer_Hostname() - { - return (EAttribute)serverEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getServer_CleanPreviousRuntimes() - { - return (EAttribute)serverEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getServer_StartTimeout() - { - return (EAttribute)serverEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getServer_StopTimeout() - { - return (EAttribute)serverEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - @Override - public EEnum getTomcatServerVersion() - { - return tomcatServerVersionEEnum; - } - - /** - * - * - * @generated - */ - @Override - public EEnum getWebsphereServerVersion() - { - return websphereServerVersionEEnum; - } - - /** - * - * - * @generated - */ - @Override - public ServerFactory getServerFactory() - { - return (ServerFactory)getEFactoryInstance(); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) - { - return; - } - isCreated = true; - - // Create classes and their features - tomcatServerTaskEClass = createEClass(TOMCAT_SERVER_TASK); - createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__JRE_VERSION); - createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__PORT); - createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__HTTPS_PORT); - createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__SERVER_VERSION); - createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS); - createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS); - - weblogicServerTaskEClass = createEClass(WEBLOGIC_SERVER_TASK); - createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__JRE_VERSION); - createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__PORT); - createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__HTTPS_PORT); - createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__DEBUG_PORT); - createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__USERNAME); - createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__PASSWORD); - - websphereServerTaskEClass = createEClass(WEBSPHERE_SERVER_TASK); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__PROFILE_PATH); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__PROFILE_NAME); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__ICP_PORT); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__SOAP_PORT); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__REMOTE_OS_USER); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__SERVER_VERSION); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__SECURITY_USER_ID); - createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD); - - serverEClass = createEClass(SERVER); - createEAttribute(serverEClass, SERVER__SERVER_NAME); - createEAttribute(serverEClass, SERVER__LOCATION); - createEAttribute(serverEClass, SERVER__RUNTIME_NAME); - createEAttribute(serverEClass, SERVER__HOSTNAME); - createEAttribute(serverEClass, SERVER__CLEAN_PREVIOUS_RUNTIMES); - createEAttribute(serverEClass, SERVER__START_TIMEOUT); - createEAttribute(serverEClass, SERVER__STOP_TIMEOUT); - - // Create enums - tomcatServerVersionEEnum = createEEnum(TOMCAT_SERVER_VERSION); - websphereServerVersionEEnum = createEEnum(WEBSPHERE_SERVER_VERSION); - } - - /** - * - * - * @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. - * - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) - { - return; - } - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - SetupPackage theSetupPackage = (SetupPackage)EPackage.Registry.INSTANCE.getEPackage(SetupPackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - tomcatServerTaskEClass.getESuperTypes().add(getServer()); - weblogicServerTaskEClass.getESuperTypes().add(getServer()); - websphereServerTaskEClass.getESuperTypes().add(getServer()); - serverEClass.getESuperTypes().add(theSetupPackage.getSetupTask()); - - // Initialize classes and features; add operations and parameters - initEClass(tomcatServerTaskEClass, TomcatServerTask.class, "TomcatServerTask", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getTomcatServerTask_JreVersion(), ecorePackage.getEString(), "jreVersion", null, 1, 1, TomcatServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTomcatServerTask_Port(), ecorePackage.getEString(), "port", "8080", 1, 1, TomcatServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTomcatServerTask_HttpsPort(), ecorePackage.getEString(), "httpsPort", "8443", 1, 1, TomcatServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTomcatServerTask_ServerVersion(), getTomcatServerVersion(), "serverVersion", null, 1, 1, TomcatServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTomcatServerTask_LaunchProgramArgs(), ecorePackage.getEString(), "launchProgramArgs", "", 0, 1, TomcatServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getTomcatServerTask_LaunchVmArgs(), ecorePackage.getEString(), "launchVmArgs", "", 0, 1, TomcatServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(weblogicServerTaskEClass, WeblogicServerTask.class, "WeblogicServerTask", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWeblogicServerTask_JreVersion(), ecorePackage.getEString(), "jreVersion", null, 1, 1, WeblogicServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWeblogicServerTask_Port(), ecorePackage.getEString(), "port", "7001", 1, 1, WeblogicServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWeblogicServerTask_HttpsPort(), ecorePackage.getEString(), "httpsPort", "7002", 1, 1, WeblogicServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWeblogicServerTask_DebugPort(), ecorePackage.getEString(), "debugPort", "8453", 0, 1, WeblogicServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWeblogicServerTask_Username(), ecorePackage.getEString(), "username", null, 0, 1, WeblogicServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWeblogicServerTask_Password(), ecorePackage.getEString(), "password", null, 0, 1, WeblogicServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(websphereServerTaskEClass, WebsphereServerTask.class, "WebsphereServerTask", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getWebsphereServerTask_BaseServerName(), ecorePackage.getEString(), "baseServerName", "server1", 0, 1, WebsphereServerTask.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebsphereServerTask_ProfilePath(), ecorePackage.getEString(), "profilePath", null, 0, 1, WebsphereServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebsphereServerTask_ProfileName(), ecorePackage.getEString(), "profileName", null, 0, 1, WebsphereServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebsphereServerTask_BootstrapPort(), ecorePackage.getEString(), "bootstrapPort", null, 0, 1, WebsphereServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebsphereServerTask_IcpPort(), ecorePackage.getEString(), "icpPort", null, 0, 1, WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebsphereServerTask_SoapPort(), ecorePackage.getEString(), "soapPort", null, 0, 1, WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebsphereServerTask_RemoteOsUser(), ecorePackage.getEString(), "remoteOsUser", null, 0, 1, WebsphereServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebsphereServerTask_RemoteOsPassword(), ecorePackage.getEString(), "remoteOsPassword", null, 0, 1, WebsphereServerTask.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebsphereServerTask_ServerVersion(), getWebsphereServerVersion(), "serverVersion", null, 1, 1, WebsphereServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebsphereServerTask_SecurityUserId(), ecorePackage.getEString(), "securityUserId", null, 0, 1, WebsphereServerTask.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getWebsphereServerTask_SecurityUserPassword(), ecorePackage.getEString(), "securityUserPassword", null, 0, 1, WebsphereServerTask.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(serverEClass, Server.class, "Server", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getServer_ServerName(), ecorePackage.getEString(), "serverName", null, 1, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServer_Location(), ecorePackage.getEString(), "location", null, 1, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServer_RuntimeName(), ecorePackage.getEString(), "runtimeName", null, 1, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServer_Hostname(), ecorePackage.getEString(), "hostname", "localhost", 1, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServer_CleanPreviousRuntimes(), ecorePackage.getEBoolean(), "cleanPreviousRuntimes", "false", 0, 1, Server.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServer_StartTimeout(), ecorePackage.getEString(), "startTimeout", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getServer_StopTimeout(), ecorePackage.getEString(), "stopTimeout", null, 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, - !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(tomcatServerVersionEEnum, TomcatServerVersion.class, "TomcatServerVersion"); - addEEnumLiteral(tomcatServerVersionEEnum, TomcatServerVersion.TOMCAT70); - addEEnumLiteral(tomcatServerVersionEEnum, TomcatServerVersion.TOMCAT80); - addEEnumLiteral(tomcatServerVersionEEnum, TomcatServerVersion.TOMCAT85); - - initEEnum(websphereServerVersionEEnum, WebsphereServerVersion.class, "WebsphereServerVersion"); - addEEnumLiteral(websphereServerVersionEEnum, WebsphereServerVersion.WAS70); - addEEnumLiteral(websphereServerVersionEEnum, WebsphereServerVersion.WAS80); - addEEnumLiteral(websphereServerVersionEEnum, WebsphereServerVersion.WAS85); - addEEnumLiteral(websphereServerVersionEEnum, WebsphereServerVersion.WAS9); - - // Create resource - createResource("https://raw.githubusercontent.com/gratex/oomph-task-server/master/com.gratex.oomph.task.server/model/Server-1.0.ecore"); - - // Create annotations - // http://www.eclipse.org/emf/2002/Ecore - createEcoreAnnotations(); - // http://www.eclipse.org/oomph/setup/Enablement - createEnablementAnnotations(); - // http://www.eclipse.org/oomph/setup/ValidTriggers - createValidTriggersAnnotations(); - } - - /** - * Initializes the annotations for http://www.eclipse.org/emf/2002/Ecore. - * - * - * @generated - */ - protected void createEcoreAnnotations() - { - String source = "http://www.eclipse.org/emf/2002/Ecore"; - addAnnotation(this, source, new String[] { "schemaLocation", - "https://raw.githubusercontent.com/gratex/oomph-task-server/master/com.gratex.oomph.task.server/model/Server-1.0.ecore" }); - } - - /** - * Initializes the annotations for http://www.eclipse.org/oomph/setup/Enablement. - * - * - * @generated - */ - protected void createEnablementAnnotations() - { - String source = "http://www.eclipse.org/oomph/setup/Enablement"; - addAnnotation(tomcatServerTaskEClass, source, new String[] { "variableName", "p2.server", "repository", - "https://gratex.github.io/oomph-task-server/repository/", "installableUnits", "com.gratex.oomph.task.server.feature.feature.group" }); - addAnnotation(weblogicServerTaskEClass, source, new String[] { "variableName", "p2.server", "repository", - "https://gratex.github.io/oomph-task-server/repository/", "installableUnits", "com.gratex.oomph.task.server.feature.feature.group" }); - addAnnotation(websphereServerTaskEClass, source, new String[] { "variableName", "p2.server", "repository", - "https://gratex.github.io/oomph-task-server/repository/", "installableUnits", "com.gratex.oomph.task.server.feature.feature.group" }); - } - - /** - * Initializes the annotations for http://www.eclipse.org/oomph/setup/ValidTriggers. - * - * - * @generated - */ - protected void createValidTriggersAnnotations() - { - String source = "http://www.eclipse.org/oomph/setup/ValidTriggers"; - addAnnotation(tomcatServerTaskEClass, source, new String[] { "triggers", "STARTUP MANUAL" }); - addAnnotation(weblogicServerTaskEClass, source, new String[] { "triggers", "STARTUP MANUAL" }); - addAnnotation(websphereServerTaskEClass, source, new String[] { "triggers", "STARTUP MANUAL" }); - } +public class ServerPackageImpl extends EPackageImpl implements ServerPackage { + /** + * + * + * @generated + */ + private EClass tomcatServerTaskEClass = null; + + /** + * + * + * @generated + */ + private EClass weblogicServerTaskEClass = null; + + /** + * + * + * @generated + */ + private EClass websphereServerTaskEClass = null; + + /** + * + * + * @generated + */ + private EClass serverEClass = null; + + /** + * + * + * @generated + */ + private EEnum tomcatServerVersionEEnum = null; + + /** + * + * + * @generated + */ + private EEnum websphereServerVersionEEnum = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the + * package package URI value. + *

+ * 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. + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see com.gratex.oomph.task.server.ServerPackage#eNS_URI + * @see #init() + * @generated + */ + private ServerPackageImpl() { + super(eNS_URI, ServerFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and + * for any others upon which it depends. + * + *

+ * This method is used to initialize {@link ServerPackage#eINSTANCE} when that + * field is accessed. Clients should not invoke it directly. Instead, they + * should simply access that field to obtain the package. + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static ServerPackage init() { + if (isInited) + return (ServerPackage) EPackage.Registry.INSTANCE.getEPackage(ServerPackage.eNS_URI); + + // Obtain or create and register package + Object registeredServerPackage = EPackage.Registry.INSTANCE.get(eNS_URI); + ServerPackageImpl theServerPackage = registeredServerPackage instanceof ServerPackageImpl + ? (ServerPackageImpl) registeredServerPackage + : new ServerPackageImpl(); + + isInited = true; + + // Initialize simple dependencies + BasePackage.eINSTANCE.eClass(); + SetupPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theServerPackage.createPackageContents(); + + // Initialize created meta-data + theServerPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theServerPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(ServerPackage.eNS_URI, theServerPackage); + return theServerPackage; + } + + /** + * + * + * @generated + */ + @Override + public EClass getTomcatServerTask() { + return tomcatServerTaskEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getTomcatServerTask_JreVersion() { + return (EAttribute) tomcatServerTaskEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getTomcatServerTask_Port() { + return (EAttribute) tomcatServerTaskEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getTomcatServerTask_HttpsPort() { + return (EAttribute) tomcatServerTaskEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getTomcatServerTask_ServerVersion() { + return (EAttribute) tomcatServerTaskEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getTomcatServerTask_LaunchProgramArgs() { + return (EAttribute) tomcatServerTaskEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getTomcatServerTask_LaunchVmArgs() { + return (EAttribute) tomcatServerTaskEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + @Override + public EClass getWeblogicServerTask() { + return weblogicServerTaskEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWeblogicServerTask_JreVersion() { + return (EAttribute) weblogicServerTaskEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWeblogicServerTask_Port() { + return (EAttribute) weblogicServerTaskEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWeblogicServerTask_HttpsPort() { + return (EAttribute) weblogicServerTaskEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWeblogicServerTask_DebugPort() { + return (EAttribute) weblogicServerTaskEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWeblogicServerTask_Username() { + return (EAttribute) weblogicServerTaskEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWeblogicServerTask_Password() { + return (EAttribute) weblogicServerTaskEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + @Override + public EClass getWebsphereServerTask() { + return websphereServerTaskEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_BaseServerName() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_ProfilePath() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_ProfileName() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_BootstrapPort() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_IcpPort() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_SoapPort() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_RemoteOsUser() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_RemoteOsPassword() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(7); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_ServerVersion() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(8); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_SecurityUserId() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(9); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getWebsphereServerTask_SecurityUserPassword() { + return (EAttribute) websphereServerTaskEClass.getEStructuralFeatures().get(10); + } + + /** + * + * + * @generated + */ + @Override + public EClass getServer() { + return serverEClass; + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getServer_ServerName() { + return (EAttribute) serverEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getServer_Location() { + return (EAttribute) serverEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getServer_RuntimeName() { + return (EAttribute) serverEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getServer_Hostname() { + return (EAttribute) serverEClass.getEStructuralFeatures().get(3); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getServer_CleanPreviousRuntimes() { + return (EAttribute) serverEClass.getEStructuralFeatures().get(4); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getServer_StartTimeout() { + return (EAttribute) serverEClass.getEStructuralFeatures().get(5); + } + + /** + * + * + * @generated + */ + @Override + public EAttribute getServer_StopTimeout() { + return (EAttribute) serverEClass.getEStructuralFeatures().get(6); + } + + /** + * + * + * @generated + */ + @Override + public EEnum getTomcatServerVersion() { + return tomcatServerVersionEEnum; + } + + /** + * + * + * @generated + */ + @Override + public EEnum getWebsphereServerVersion() { + return websphereServerVersionEEnum; + } + + /** + * + * + * @generated + */ + @Override + public ServerFactory getServerFactory() { + return (ServerFactory) getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * @generated + */ + public void createPackageContents() { + if (isCreated) + return; + isCreated = true; + + // Create classes and their features + tomcatServerTaskEClass = createEClass(TOMCAT_SERVER_TASK); + createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__JRE_VERSION); + createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__PORT); + createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__HTTPS_PORT); + createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__SERVER_VERSION); + createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS); + createEAttribute(tomcatServerTaskEClass, TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS); + + weblogicServerTaskEClass = createEClass(WEBLOGIC_SERVER_TASK); + createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__JRE_VERSION); + createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__PORT); + createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__HTTPS_PORT); + createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__DEBUG_PORT); + createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__USERNAME); + createEAttribute(weblogicServerTaskEClass, WEBLOGIC_SERVER_TASK__PASSWORD); + + websphereServerTaskEClass = createEClass(WEBSPHERE_SERVER_TASK); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__PROFILE_PATH); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__PROFILE_NAME); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__ICP_PORT); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__SOAP_PORT); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__REMOTE_OS_USER); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__SERVER_VERSION); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__SECURITY_USER_ID); + createEAttribute(websphereServerTaskEClass, WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD); + + serverEClass = createEClass(SERVER); + createEAttribute(serverEClass, SERVER__SERVER_NAME); + createEAttribute(serverEClass, SERVER__LOCATION); + createEAttribute(serverEClass, SERVER__RUNTIME_NAME); + createEAttribute(serverEClass, SERVER__HOSTNAME); + createEAttribute(serverEClass, SERVER__CLEAN_PREVIOUS_RUNTIMES); + createEAttribute(serverEClass, SERVER__START_TIMEOUT); + createEAttribute(serverEClass, SERVER__STOP_TIMEOUT); + + // Create enums + tomcatServerVersionEEnum = createEEnum(TOMCAT_SERVER_VERSION); + websphereServerVersionEEnum = createEEnum(WEBSPHERE_SERVER_VERSION); + } + + /** + * + * + * @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. + * + * @generated + */ + public void initializePackageContents() { + if (isInitialized) + return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + SetupPackage theSetupPackage = (SetupPackage) EPackage.Registry.INSTANCE.getEPackage(SetupPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + tomcatServerTaskEClass.getESuperTypes().add(this.getServer()); + weblogicServerTaskEClass.getESuperTypes().add(this.getServer()); + websphereServerTaskEClass.getESuperTypes().add(this.getServer()); + serverEClass.getESuperTypes().add(theSetupPackage.getSetupTask()); + + // Initialize classes and features; add operations and parameters + initEClass(tomcatServerTaskEClass, TomcatServerTask.class, "TomcatServerTask", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getTomcatServerTask_JreVersion(), ecorePackage.getEString(), "jreVersion", null, 1, 1, + TomcatServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getTomcatServerTask_Port(), ecorePackage.getEString(), "port", "8080", 1, 1, + TomcatServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getTomcatServerTask_HttpsPort(), ecorePackage.getEString(), "httpsPort", "8443", 1, 1, + TomcatServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getTomcatServerTask_ServerVersion(), this.getTomcatServerVersion(), "serverVersion", null, 1, 1, + TomcatServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getTomcatServerTask_LaunchProgramArgs(), ecorePackage.getEString(), "launchProgramArgs", "", 0, + 1, TomcatServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getTomcatServerTask_LaunchVmArgs(), ecorePackage.getEString(), "launchVmArgs", "", 0, 1, + TomcatServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(weblogicServerTaskEClass, WeblogicServerTask.class, "WeblogicServerTask", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getWeblogicServerTask_JreVersion(), ecorePackage.getEString(), "jreVersion", null, 1, 1, + WeblogicServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getWeblogicServerTask_Port(), ecorePackage.getEString(), "port", "7001", 1, 1, + WeblogicServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getWeblogicServerTask_HttpsPort(), ecorePackage.getEString(), "httpsPort", "7002", 1, 1, + WeblogicServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getWeblogicServerTask_DebugPort(), ecorePackage.getEString(), "debugPort", "8453", 0, 1, + WeblogicServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getWeblogicServerTask_Username(), ecorePackage.getEString(), "username", null, 0, 1, + WeblogicServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getWeblogicServerTask_Password(), ecorePackage.getEString(), "password", null, 0, 1, + WeblogicServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(websphereServerTaskEClass, WebsphereServerTask.class, "WebsphereServerTask", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getWebsphereServerTask_BaseServerName(), ecorePackage.getEString(), "baseServerName", "server1", + 0, 1, WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWebsphereServerTask_ProfilePath(), ecorePackage.getEString(), "profilePath", null, 0, 1, + WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWebsphereServerTask_ProfileName(), ecorePackage.getEString(), "profileName", null, 0, 1, + WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWebsphereServerTask_BootstrapPort(), ecorePackage.getEString(), "bootstrapPort", null, 0, 1, + WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWebsphereServerTask_IcpPort(), ecorePackage.getEString(), "icpPort", null, 0, 1, + WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWebsphereServerTask_SoapPort(), ecorePackage.getEString(), "soapPort", null, 0, 1, + WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWebsphereServerTask_RemoteOsUser(), ecorePackage.getEString(), "remoteOsUser", null, 0, 1, + WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWebsphereServerTask_RemoteOsPassword(), ecorePackage.getEString(), "remoteOsPassword", null, + 0, 1, WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWebsphereServerTask_ServerVersion(), this.getWebsphereServerVersion(), "serverVersion", null, + 1, 1, WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWebsphereServerTask_SecurityUserId(), ecorePackage.getEString(), "securityUserId", null, 0, 1, + WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getWebsphereServerTask_SecurityUserPassword(), ecorePackage.getEString(), "securityUserPassword", + null, 0, 1, WebsphereServerTask.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, + !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(serverEClass, Server.class, "Server", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getServer_ServerName(), ecorePackage.getEString(), "serverName", null, 1, 1, Server.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Location(), ecorePackage.getEString(), "location", null, 1, 1, Server.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_RuntimeName(), ecorePackage.getEString(), "runtimeName", null, 1, 1, Server.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_Hostname(), ecorePackage.getEString(), "hostname", "localhost", 1, 1, Server.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_CleanPreviousRuntimes(), ecorePackage.getEBoolean(), "cleanPreviousRuntimes", "false", + 0, 1, Server.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_StartTimeout(), ecorePackage.getEString(), "startTimeout", null, 0, 1, Server.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getServer_StopTimeout(), ecorePackage.getEString(), "stopTimeout", null, 0, 1, Server.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(tomcatServerVersionEEnum, TomcatServerVersion.class, "TomcatServerVersion"); + addEEnumLiteral(tomcatServerVersionEEnum, TomcatServerVersion.TOMCAT70); + addEEnumLiteral(tomcatServerVersionEEnum, TomcatServerVersion.TOMCAT80); + addEEnumLiteral(tomcatServerVersionEEnum, TomcatServerVersion.TOMCAT85); + addEEnumLiteral(tomcatServerVersionEEnum, TomcatServerVersion.TOMCAT90); + addEEnumLiteral(tomcatServerVersionEEnum, TomcatServerVersion.TOMCAT100); + + initEEnum(websphereServerVersionEEnum, WebsphereServerVersion.class, "WebsphereServerVersion"); + addEEnumLiteral(websphereServerVersionEEnum, WebsphereServerVersion.WAS70); + addEEnumLiteral(websphereServerVersionEEnum, WebsphereServerVersion.WAS80); + addEEnumLiteral(websphereServerVersionEEnum, WebsphereServerVersion.WAS85); + addEEnumLiteral(websphereServerVersionEEnum, WebsphereServerVersion.WAS9); + + // Create resource + createResource( + "https://raw.githubusercontent.com/gratex/oomph-task-server/master/com.gratex.oomph.task.server/model/Server-1.0.ecore"); + + // Create annotations + // http://www.eclipse.org/emf/2002/Ecore + createEcoreAnnotations(); + // http://www.eclipse.org/oomph/setup/Enablement + createEnablementAnnotations(); + // http://www.eclipse.org/oomph/setup/ValidTriggers + createValidTriggersAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/2002/Ecore. + * + * + * @generated + */ + protected void createEcoreAnnotations() { + String source = "http://www.eclipse.org/emf/2002/Ecore"; + addAnnotation(this, source, new String[] { "schemaLocation", + "https://raw.githubusercontent.com/gratex/oomph-task-server/master/com.gratex.oomph.task.server/model/Server-1.0.ecore" }); + } + + /** + * Initializes the annotations for + * http://www.eclipse.org/oomph/setup/Enablement. + * + * + * @generated + */ + protected void createEnablementAnnotations() { + String source = "http://www.eclipse.org/oomph/setup/Enablement"; + addAnnotation(tomcatServerTaskEClass, source, + new String[] { "variableName", "p2.server", "repository", + "https://gratex.github.io/oomph-task-server/repository/", "installableUnits", + "com.gratex.oomph.task.server.feature.feature.group" }); + addAnnotation(weblogicServerTaskEClass, source, + new String[] { "variableName", "p2.server", "repository", + "https://gratex.github.io/oomph-task-server/repository/", "installableUnits", + "com.gratex.oomph.task.server.feature.feature.group" }); + addAnnotation(websphereServerTaskEClass, source, + new String[] { "variableName", "p2.server", "repository", + "https://gratex.github.io/oomph-task-server/repository/", "installableUnits", + "com.gratex.oomph.task.server.feature.feature.group" }); + } + + /** + * Initializes the annotations for + * http://www.eclipse.org/oomph/setup/ValidTriggers. + * + * @generated + */ + protected void createValidTriggersAnnotations() { + String source = "http://www.eclipse.org/oomph/setup/ValidTriggers"; + addAnnotation(tomcatServerTaskEClass, source, new String[] { "triggers", "STARTUP MANUAL" }); + addAnnotation(weblogicServerTaskEClass, source, new String[] { "triggers", "STARTUP MANUAL" }); + addAnnotation(websphereServerTaskEClass, source, new String[] { "triggers", "STARTUP MANUAL" }); + } } // ServerPackageImpl diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/TomcatServerTaskImpl.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/TomcatServerTaskImpl.java index 6845089..a48774a 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/TomcatServerTaskImpl.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/TomcatServerTaskImpl.java @@ -2,11 +2,10 @@ */ package com.gratex.oomph.task.server.impl; -import org.eclipse.oomph.setup.SetupTaskContext; - import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.oomph.setup.SetupTaskContext; import com.gratex.oomph.task.server.ServerPackage; import com.gratex.oomph.task.server.TomcatServerTask; @@ -15,512 +14,484 @@ import com.gratex.oomph.task.utils.Convert; /** - * - * An implementation of the model object 'Tomcat Server Task'. - * + * An implementation of the model object 'Tomcat + * Server Task'. *

* The following features are implemented: *

*
    - *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getJreVersion Jre Version}
  • - *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getPort Port}
  • - *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getHttpsPort Https Port}
  • - *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getServerVersion Server Version}
  • - *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getLaunchProgramArgs Launch Program Args}
  • - *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getLaunchVmArgs Launch Vm Args}
  • + *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getJreVersion + * Jre Version}
  • + *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getPort + * Port}
  • + *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getHttpsPort + * Https Port}
  • + *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getServerVersion + * Server Version}
  • + *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getLaunchProgramArgs + * Launch Program Args}
  • + *
  • {@link com.gratex.oomph.task.server.impl.TomcatServerTaskImpl#getLaunchVmArgs + * Launch Vm Args}
  • *
* * @generated */ -public class TomcatServerTaskImpl extends ServerImpl implements TomcatServerTask -{ - /** - * The default value of the '{@link #getJreVersion() Jre Version}' attribute. - * - * - * @see #getJreVersion() - * @generated - * @ordered - */ - protected static final String JRE_VERSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getJreVersion() Jre Version}' attribute. - * - * - * @see #getJreVersion() - * @generated - * @ordered - */ - protected String jreVersion = JRE_VERSION_EDEFAULT; - - /** - * The default value of the '{@link #getPort() Port}' attribute. - * - * - * @see #getPort() - * @generated - * @ordered - */ - protected static final String PORT_EDEFAULT = "8080"; - - /** - * The cached value of the '{@link #getPort() Port}' attribute. - * - * - * @see #getPort() - * @generated - * @ordered - */ - protected String port = PORT_EDEFAULT; - - /** - * The default value of the '{@link #getHttpsPort() Https Port}' attribute. - * - * - * @see #getHttpsPort() - * @generated - * @ordered - */ - protected static final String HTTPS_PORT_EDEFAULT = "8443"; - - /** - * The cached value of the '{@link #getHttpsPort() Https Port}' attribute. - * - * - * @see #getHttpsPort() - * @generated - * @ordered - */ - protected String httpsPort = HTTPS_PORT_EDEFAULT; - - /** - * The default value of the '{@link #getServerVersion() Server Version}' attribute. - * - * - * @see #getServerVersion() - * @generated - * @ordered - */ - protected static final TomcatServerVersion SERVER_VERSION_EDEFAULT = TomcatServerVersion.TOMCAT70; - - /** - * The cached value of the '{@link #getServerVersion() Server Version}' attribute. - * - * - * @see #getServerVersion() - * @generated - * @ordered - */ - protected TomcatServerVersion serverVersion = SERVER_VERSION_EDEFAULT; - - /** - * The default value of the '{@link #getLaunchProgramArgs() Launch Program Args}' attribute. - * - * - * @see #getLaunchProgramArgs() - * @generated - * @ordered - */ - protected static final String LAUNCH_PROGRAM_ARGS_EDEFAULT = ""; - - /** - * The cached value of the '{@link #getLaunchProgramArgs() Launch Program Args}' attribute. - * - * - * @see #getLaunchProgramArgs() - * @generated - * @ordered - */ - protected String launchProgramArgs = LAUNCH_PROGRAM_ARGS_EDEFAULT; - - /** - * The default value of the '{@link #getLaunchVmArgs() Launch Vm Args}' attribute. - * - * - * @see #getLaunchVmArgs() - * @generated - * @ordered - */ - protected static final String LAUNCH_VM_ARGS_EDEFAULT = ""; - - /** - * The cached value of the '{@link #getLaunchVmArgs() Launch Vm Args}' attribute. - * - * - * @see #getLaunchVmArgs() - * @generated - * @ordered - */ - protected String launchVmArgs = LAUNCH_VM_ARGS_EDEFAULT; - - private TomcatServerCreator serverCreator; - - /** - * - * - * @generated - */ - protected TomcatServerTaskImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ServerPackage.Literals.TOMCAT_SERVER_TASK; - } - - /** - * - * - * @generated - */ - @Override - public String getJreVersion() - { - return jreVersion; - } - - /** - * - * - * @generated - */ - @Override - public void setJreVersion(String newJreVersion) - { - String oldJreVersion = jreVersion; - jreVersion = newJreVersion; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION, oldJreVersion, jreVersion)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getPort() - { - return port; - } - - /** - * - * - * @generated - */ - @Override - public void setPort(String newPort) - { - String oldPort = port; - port = newPort; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__PORT, oldPort, port)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.TomcatServerTask#port() - */ - @Override - public Integer port() - { - return Convert.toInteger(getPort()); - } - - /** - * - * - * @generated - */ - @Override - public String getHttpsPort() - { - return httpsPort; - } - - /** - * - * - * @generated - */ - @Override - public void setHttpsPort(String newHttpsPort) - { - String oldHttpsPort = httpsPort; - httpsPort = newHttpsPort; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT, oldHttpsPort, httpsPort)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.TomcatServerTask#httpsPort() - */ - @Override - public Integer httpsPort() - { - return Convert.toInteger(getHttpsPort()); - } - - /** - * - * - * @generated - */ - @Override - public TomcatServerVersion getServerVersion() - { - return serverVersion; - } - - /** - * - * - * @generated - */ - @Override - public void setServerVersion(TomcatServerVersion newServerVersion) - { - TomcatServerVersion oldServerVersion = serverVersion; - serverVersion = newServerVersion == null ? SERVER_VERSION_EDEFAULT : newServerVersion; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION, oldServerVersion, serverVersion)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getLaunchProgramArgs() - { - return launchProgramArgs; - } - - /** - * - * - * @generated - */ - @Override - public void setLaunchProgramArgs(String newLaunchProgramArgs) - { - String oldLaunchProgramArgs = launchProgramArgs; - launchProgramArgs = newLaunchProgramArgs; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS, oldLaunchProgramArgs, launchProgramArgs)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getLaunchVmArgs() - { - return launchVmArgs; - } - - /** - * - * - * @generated - */ - @Override - public void setLaunchVmArgs(String newLaunchVmArgs) - { - String oldLaunchVmArgs = launchVmArgs; - launchVmArgs = newLaunchVmArgs; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS, oldLaunchVmArgs, launchVmArgs)); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION: - return getJreVersion(); - case ServerPackage.TOMCAT_SERVER_TASK__PORT: - return getPort(); - case ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT: - return getHttpsPort(); - case ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION: - return getServerVersion(); - case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS: - return getLaunchProgramArgs(); - case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS: - return getLaunchVmArgs(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION: - setJreVersion((String)newValue); - return; - case ServerPackage.TOMCAT_SERVER_TASK__PORT: - setPort((String)newValue); - return; - case ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT: - setHttpsPort((String)newValue); - return; - case ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION: - setServerVersion((TomcatServerVersion)newValue); - return; - case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS: - setLaunchProgramArgs((String)newValue); - return; - case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS: - setLaunchVmArgs((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION: - setJreVersion(JRE_VERSION_EDEFAULT); - return; - case ServerPackage.TOMCAT_SERVER_TASK__PORT: - setPort(PORT_EDEFAULT); - return; - case ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT: - setHttpsPort(HTTPS_PORT_EDEFAULT); - return; - case ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION: - setServerVersion(SERVER_VERSION_EDEFAULT); - return; - case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS: - setLaunchProgramArgs(LAUNCH_PROGRAM_ARGS_EDEFAULT); - return; - case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS: - setLaunchVmArgs(LAUNCH_VM_ARGS_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION: - return JRE_VERSION_EDEFAULT == null ? jreVersion != null : !JRE_VERSION_EDEFAULT.equals(jreVersion); - case ServerPackage.TOMCAT_SERVER_TASK__PORT: - return PORT_EDEFAULT == null ? port != null : !PORT_EDEFAULT.equals(port); - case ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT: - return HTTPS_PORT_EDEFAULT == null ? httpsPort != null : !HTTPS_PORT_EDEFAULT.equals(httpsPort); - case ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION: - return serverVersion != SERVER_VERSION_EDEFAULT; - case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS: - return LAUNCH_PROGRAM_ARGS_EDEFAULT == null ? launchProgramArgs != null : !LAUNCH_PROGRAM_ARGS_EDEFAULT.equals(launchProgramArgs); - case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS: - return LAUNCH_VM_ARGS_EDEFAULT == null ? launchVmArgs != null : !LAUNCH_VM_ARGS_EDEFAULT.equals(launchVmArgs); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - { - return super.toString(); - } - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (jreVersion: "); - result.append(jreVersion); - result.append(", port: "); - result.append(port); - result.append(", httpsPort: "); - result.append(httpsPort); - result.append(", serverVersion: "); - result.append(serverVersion); - result.append(", launchProgramArgs: "); - result.append(launchProgramArgs); - result.append(", launchVmArgs: "); - result.append(launchVmArgs); - result.append(')'); - return result.toString(); - } - - @Override - public boolean isNeeded(SetupTaskContext context) throws Exception - { - serverCreator = new TomcatServerCreator(context, this); - return !serverCreator.exists(); - } - - @Override - public void perform(SetupTaskContext context) throws Exception - { - serverCreator.createServerInstance(); - } - - @Override - public void dispose() - { - } +public class TomcatServerTaskImpl extends ServerImpl implements TomcatServerTask { + /** + * The default value of the '{@link #getJreVersion() Jre Version}' + * attribute. + * + * @see #getJreVersion() + * @generated + * @ordered + */ + protected static final String JRE_VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getJreVersion() Jre Version}' + * attribute. + * + * @see #getJreVersion() + * @generated + * @ordered + */ + protected String jreVersion = JRE_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getPort() Port}' attribute. + * + * @see #getPort() + * @generated + * @ordered + */ + protected static final String PORT_EDEFAULT = "8080"; + + /** + * The cached value of the '{@link #getPort() Port}' attribute. + * + * @see #getPort() + * @generated + * @ordered + */ + protected String port = PORT_EDEFAULT; + + /** + * The default value of the '{@link #getHttpsPort() Https Port}' + * attribute. + * + * @see #getHttpsPort() + * @generated + * @ordered + */ + protected static final String HTTPS_PORT_EDEFAULT = "8443"; + + /** + * The cached value of the '{@link #getHttpsPort() Https Port}' + * attribute. + * + * @see #getHttpsPort() + * @generated + * @ordered + */ + protected String httpsPort = HTTPS_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getServerVersion() Server + * Version}' attribute. + * + * @see #getServerVersion() + * @generated + * @ordered + */ + protected static final TomcatServerVersion SERVER_VERSION_EDEFAULT = TomcatServerVersion.TOMCAT70; + + /** + * The cached value of the '{@link #getServerVersion() Server Version}' + * attribute. + * + * @see #getServerVersion() + * @generated + * @ordered + */ + protected TomcatServerVersion serverVersion = SERVER_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getLaunchProgramArgs() Launch Program + * Args}' attribute. + * + * @see #getLaunchProgramArgs() + * @generated + * @ordered + */ + protected static final String LAUNCH_PROGRAM_ARGS_EDEFAULT = ""; + + /** + * The cached value of the '{@link #getLaunchProgramArgs() Launch Program + * Args}' attribute. + * + * @see #getLaunchProgramArgs() + * @generated + * @ordered + */ + protected String launchProgramArgs = LAUNCH_PROGRAM_ARGS_EDEFAULT; + + /** + * The default value of the '{@link #getLaunchVmArgs() Launch Vm Args}' + * attribute. + * + * @see #getLaunchVmArgs() + * @generated + * @ordered + */ + protected static final String LAUNCH_VM_ARGS_EDEFAULT = ""; + + /** + * The cached value of the '{@link #getLaunchVmArgs() Launch Vm Args}' + * attribute. + * + * @see #getLaunchVmArgs() + * @generated + * @ordered + */ + protected String launchVmArgs = LAUNCH_VM_ARGS_EDEFAULT; + + private TomcatServerCreator serverCreator; + + /** + * + * + * @generated + */ + protected TomcatServerTaskImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.TOMCAT_SERVER_TASK; + } + + /** + * + * + * @generated + */ + @Override + public String getJreVersion() { + return jreVersion; + } + + /** + * + * + * @generated + */ + @Override + public void setJreVersion(String newJreVersion) { + String oldJreVersion = jreVersion; + jreVersion = newJreVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION, + oldJreVersion, jreVersion)); + } + + /** + * + * + * @generated + */ + @Override + public String getPort() { + return port; + } + + /** + * + * + * @generated + */ + @Override + public void setPort(String newPort) { + String oldPort = port; + port = newPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__PORT, oldPort, + port)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.TomcatServerTask#port() + */ + @Override + public Integer port() { + return Convert.toInteger(getPort()); + } + + /** + * + * + * @generated + */ + @Override + public String getHttpsPort() { + return httpsPort; + } + + /** + * + * + * @generated + */ + @Override + public void setHttpsPort(String newHttpsPort) { + String oldHttpsPort = httpsPort; + httpsPort = newHttpsPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT, + oldHttpsPort, httpsPort)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.TomcatServerTask#httpsPort() + */ + @Override + public Integer httpsPort() { + return Convert.toInteger(getHttpsPort()); + } + + /** + * + * + * @generated + */ + @Override + public TomcatServerVersion getServerVersion() { + return serverVersion; + } + + /** + * + * + * @generated + */ + @Override + public void setServerVersion(TomcatServerVersion newServerVersion) { + TomcatServerVersion oldServerVersion = serverVersion; + serverVersion = newServerVersion == null ? SERVER_VERSION_EDEFAULT : newServerVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION, + oldServerVersion, serverVersion)); + } + + /** + * + * + * @generated + */ + @Override + public String getLaunchProgramArgs() { + return launchProgramArgs; + } + + /** + * + * + * @generated + */ + @Override + public void setLaunchProgramArgs(String newLaunchProgramArgs) { + String oldLaunchProgramArgs = launchProgramArgs; + launchProgramArgs = newLaunchProgramArgs; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS, + oldLaunchProgramArgs, launchProgramArgs)); + } + + /** + * + * + * @generated + */ + @Override + public String getLaunchVmArgs() { + return launchVmArgs; + } + + /** + * + * + * @generated + */ + @Override + public void setLaunchVmArgs(String newLaunchVmArgs) { + String oldLaunchVmArgs = launchVmArgs; + launchVmArgs = newLaunchVmArgs; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS, + oldLaunchVmArgs, launchVmArgs)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION: + return getJreVersion(); + case ServerPackage.TOMCAT_SERVER_TASK__PORT: + return getPort(); + case ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT: + return getHttpsPort(); + case ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION: + return getServerVersion(); + case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS: + return getLaunchProgramArgs(); + case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS: + return getLaunchVmArgs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION: + setJreVersion((String) newValue); + return; + case ServerPackage.TOMCAT_SERVER_TASK__PORT: + setPort((String) newValue); + return; + case ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT: + setHttpsPort((String) newValue); + return; + case ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION: + setServerVersion((TomcatServerVersion) newValue); + return; + case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS: + setLaunchProgramArgs((String) newValue); + return; + case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS: + setLaunchVmArgs((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION: + setJreVersion(JRE_VERSION_EDEFAULT); + return; + case ServerPackage.TOMCAT_SERVER_TASK__PORT: + setPort(PORT_EDEFAULT); + return; + case ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT: + setHttpsPort(HTTPS_PORT_EDEFAULT); + return; + case ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION: + setServerVersion(SERVER_VERSION_EDEFAULT); + return; + case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS: + setLaunchProgramArgs(LAUNCH_PROGRAM_ARGS_EDEFAULT); + return; + case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS: + setLaunchVmArgs(LAUNCH_VM_ARGS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ServerPackage.TOMCAT_SERVER_TASK__JRE_VERSION: + return JRE_VERSION_EDEFAULT == null ? jreVersion != null : !JRE_VERSION_EDEFAULT.equals(jreVersion); + case ServerPackage.TOMCAT_SERVER_TASK__PORT: + return PORT_EDEFAULT == null ? port != null : !PORT_EDEFAULT.equals(port); + case ServerPackage.TOMCAT_SERVER_TASK__HTTPS_PORT: + return HTTPS_PORT_EDEFAULT == null ? httpsPort != null : !HTTPS_PORT_EDEFAULT.equals(httpsPort); + case ServerPackage.TOMCAT_SERVER_TASK__SERVER_VERSION: + return serverVersion != SERVER_VERSION_EDEFAULT; + case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_PROGRAM_ARGS: + return LAUNCH_PROGRAM_ARGS_EDEFAULT == null ? launchProgramArgs != null + : !LAUNCH_PROGRAM_ARGS_EDEFAULT.equals(launchProgramArgs); + case ServerPackage.TOMCAT_SERVER_TASK__LAUNCH_VM_ARGS: + return LAUNCH_VM_ARGS_EDEFAULT == null ? launchVmArgs != null + : !LAUNCH_VM_ARGS_EDEFAULT.equals(launchVmArgs); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (jreVersion: "); + result.append(jreVersion); + result.append(", port: "); + result.append(port); + result.append(", httpsPort: "); + result.append(httpsPort); + result.append(", serverVersion: "); + result.append(serverVersion); + result.append(", launchProgramArgs: "); + result.append(launchProgramArgs); + result.append(", launchVmArgs: "); + result.append(launchVmArgs); + result.append(')'); + return result.toString(); + } + + @Override + public boolean isNeeded(SetupTaskContext context) throws Exception { + serverCreator = new TomcatServerCreator(context, this); + return !serverCreator.exists(); + } + + @Override + public void perform(SetupTaskContext context) throws Exception { + serverCreator.createServerInstance(); + } + + @Override + public void dispose() { + } } // TomcatServerTaskImpl diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/WeblogicServerTaskImpl.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/WeblogicServerTaskImpl.java index 5957f5e..c830104 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/WeblogicServerTaskImpl.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/WeblogicServerTaskImpl.java @@ -2,11 +2,10 @@ */ package com.gratex.oomph.task.server.impl; -import org.eclipse.oomph.setup.SetupTaskContext; - import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.oomph.setup.SetupTaskContext; import com.gratex.oomph.task.server.ServerPackage; import com.gratex.oomph.task.server.WeblogicServerTask; @@ -14,522 +13,492 @@ import com.gratex.oomph.task.utils.Convert; /** - * - * An implementation of the model object 'Weblogic Server Task'. - * + * An implementation of the model object + * 'Weblogic Server Task'. *

* The following features are implemented: *

*
    - *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getJreVersion Jre Version}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getPort Port}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getHttpsPort Https Port}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getDebugPort Debug Port}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getUsername Username}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getPassword Password}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getJreVersion + * Jre Version}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getPort + * Port}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getHttpsPort + * Https Port}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getDebugPort + * Debug Port}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getUsername + * Username}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WeblogicServerTaskImpl#getPassword + * Password}
  • *
* * @generated */ -public class WeblogicServerTaskImpl extends ServerImpl implements WeblogicServerTask -{ - /** - * The default value of the '{@link #getJreVersion() Jre Version}' attribute. - * - * - * @see #getJreVersion() - * @generated - * @ordered - */ - protected static final String JRE_VERSION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getJreVersion() Jre Version}' attribute. - * - * - * @see #getJreVersion() - * @generated - * @ordered - */ - protected String jreVersion = JRE_VERSION_EDEFAULT; - - /** - * The default value of the '{@link #getPort() Port}' attribute. - * - * - * @see #getPort() - * @generated - * @ordered - */ - protected static final String PORT_EDEFAULT = "7001"; - - /** - * The cached value of the '{@link #getPort() Port}' attribute. - * - * - * @see #getPort() - * @generated - * @ordered - */ - protected String port = PORT_EDEFAULT; - - /** - * The default value of the '{@link #getHttpsPort() Https Port}' attribute. - * - * - * @see #getHttpsPort() - * @generated - * @ordered - */ - protected static final String HTTPS_PORT_EDEFAULT = "7002"; - - /** - * The cached value of the '{@link #getHttpsPort() Https Port}' attribute. - * - * - * @see #getHttpsPort() - * @generated - * @ordered - */ - protected String httpsPort = HTTPS_PORT_EDEFAULT; - - /** - * The default value of the '{@link #getDebugPort() Debug Port}' attribute. - * - * - * @see #getDebugPort() - * @generated - * @ordered - */ - protected static final String DEBUG_PORT_EDEFAULT = "8453"; - - /** - * The cached value of the '{@link #getDebugPort() Debug Port}' attribute. - * - * - * @see #getDebugPort() - * @generated - * @ordered - */ - protected String debugPort = DEBUG_PORT_EDEFAULT; - - /** - * The default value of the '{@link #getUsername() Username}' attribute. - * - * - * @see #getUsername() - * @generated - * @ordered - */ - protected static final String USERNAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getUsername() Username}' attribute. - * - * - * @see #getUsername() - * @generated - * @ordered - */ - protected String username = USERNAME_EDEFAULT; - - /** - * The default value of the '{@link #getPassword() Password}' attribute. - * - * - * @see #getPassword() - * @generated - * @ordered - */ - protected static final String PASSWORD_EDEFAULT = null; - - /** - * The cached value of the '{@link #getPassword() Password}' attribute. - * - * - * @see #getPassword() - * @generated - * @ordered - */ - protected String password = PASSWORD_EDEFAULT; - - private Weblogic12c13ServerCreator serverCreator; - - /** - * - * - * @generated - */ - protected WeblogicServerTaskImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ServerPackage.Literals.WEBLOGIC_SERVER_TASK; - } - - /** - * - * - * @generated - */ - @Override - public String getJreVersion() - { - return jreVersion; - } - - /** - * - * - * @generated - */ - @Override - public void setJreVersion(String newJreVersion) - { - String oldJreVersion = jreVersion; - jreVersion = newJreVersion; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION, oldJreVersion, jreVersion)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getPort() - { - return port; - } - - /** - * - * - * @generated - */ - @Override - public void setPort(String newPort) - { - String oldPort = port; - port = newPort; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__PORT, oldPort, port)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WeblogicServerTask#port() - */ - @Override - public Integer port() - { - return Convert.toInteger(getPort()); - } - - /** - * - * - * @generated - */ - @Override - public String getHttpsPort() - { - return httpsPort; - } - - /** - * - * - * @generated - */ - @Override - public void setHttpsPort(String newHttpsPort) - { - String oldHttpsPort = httpsPort; - httpsPort = newHttpsPort; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT, oldHttpsPort, httpsPort)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WeblogicServerTask#httpsPort() - */ - @Override - public Integer httpsPort() - { - return Convert.toInteger(getHttpsPort()); - } - - /** - * - * - * @generated - */ - @Override - public String getDebugPort() - { - return debugPort; - } - - /** - * - * - * @generated - */ - @Override - public void setDebugPort(String newDebugPort) - { - String oldDebugPort = debugPort; - debugPort = newDebugPort; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT, oldDebugPort, debugPort)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WeblogicServerTask#debugPort() - */ - @Override - public Integer debugPort() - { - return Convert.toInteger(getDebugPort()); - } - - /** - * - * - * @generated - */ - @Override - public String getUsername() - { - return username; - } - - /** - * - * - * @generated - */ - @Override - public void setUsername(String newUsername) - { - String oldUsername = username; - username = newUsername; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME, oldUsername, username)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getPassword() - { - return password; - } - - /** - * - * - * @generated - */ - @Override - public void setPassword(String newPassword) - { - String oldPassword = password; - password = newPassword; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD, oldPassword, password)); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION: - return getJreVersion(); - case ServerPackage.WEBLOGIC_SERVER_TASK__PORT: - return getPort(); - case ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT: - return getHttpsPort(); - case ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT: - return getDebugPort(); - case ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME: - return getUsername(); - case ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD: - return getPassword(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION: - setJreVersion((String)newValue); - return; - case ServerPackage.WEBLOGIC_SERVER_TASK__PORT: - setPort((String)newValue); - return; - case ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT: - setHttpsPort((String)newValue); - return; - case ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT: - setDebugPort((String)newValue); - return; - case ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME: - setUsername((String)newValue); - return; - case ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD: - setPassword((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION: - setJreVersion(JRE_VERSION_EDEFAULT); - return; - case ServerPackage.WEBLOGIC_SERVER_TASK__PORT: - setPort(PORT_EDEFAULT); - return; - case ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT: - setHttpsPort(HTTPS_PORT_EDEFAULT); - return; - case ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT: - setDebugPort(DEBUG_PORT_EDEFAULT); - return; - case ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME: - setUsername(USERNAME_EDEFAULT); - return; - case ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD: - setPassword(PASSWORD_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION: - return JRE_VERSION_EDEFAULT == null ? jreVersion != null : !JRE_VERSION_EDEFAULT.equals(jreVersion); - case ServerPackage.WEBLOGIC_SERVER_TASK__PORT: - return PORT_EDEFAULT == null ? port != null : !PORT_EDEFAULT.equals(port); - case ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT: - return HTTPS_PORT_EDEFAULT == null ? httpsPort != null : !HTTPS_PORT_EDEFAULT.equals(httpsPort); - case ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT: - return DEBUG_PORT_EDEFAULT == null ? debugPort != null : !DEBUG_PORT_EDEFAULT.equals(debugPort); - case ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME: - return USERNAME_EDEFAULT == null ? username != null : !USERNAME_EDEFAULT.equals(username); - case ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD: - return PASSWORD_EDEFAULT == null ? password != null : !PASSWORD_EDEFAULT.equals(password); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - { - return super.toString(); - } - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (jreVersion: "); - result.append(jreVersion); - result.append(", port: "); - result.append(port); - result.append(", httpsPort: "); - result.append(httpsPort); - result.append(", debugPort: "); - result.append(debugPort); - result.append(", username: "); - result.append(username); - result.append(", password: "); - result.append(password); - result.append(')'); - return result.toString(); - } - - @Override - public boolean isNeeded(SetupTaskContext context) throws Exception - { - serverCreator = new Weblogic12c13ServerCreator(context, this); - return !serverCreator.exists(); - } - - @Override - public void perform(SetupTaskContext context) throws Exception - { - serverCreator.createServerInstance(); - } - - @Override - public void dispose() - { - } +public class WeblogicServerTaskImpl extends ServerImpl implements WeblogicServerTask { + /** + * The default value of the '{@link #getJreVersion() Jre Version}' + * attribute. + * + * @see #getJreVersion() + * @generated + * @ordered + */ + protected static final String JRE_VERSION_EDEFAULT = null; + + /** + * The cached value of the '{@link #getJreVersion() Jre Version}' + * attribute. + * + * @see #getJreVersion() + * @generated + * @ordered + */ + protected String jreVersion = JRE_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getPort() Port}' attribute. + * + * @see #getPort() + * @generated + * @ordered + */ + protected static final String PORT_EDEFAULT = "7001"; + + /** + * The cached value of the '{@link #getPort() Port}' attribute. + * + * @see #getPort() + * @generated + * @ordered + */ + protected String port = PORT_EDEFAULT; + + /** + * The default value of the '{@link #getHttpsPort() Https Port}' + * attribute. + * + * @see #getHttpsPort() + * @generated + * @ordered + */ + protected static final String HTTPS_PORT_EDEFAULT = "7002"; + + /** + * The cached value of the '{@link #getHttpsPort() Https Port}' + * attribute. + * + * @see #getHttpsPort() + * @generated + * @ordered + */ + protected String httpsPort = HTTPS_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getDebugPort() Debug Port}' + * attribute. + * + * @see #getDebugPort() + * @generated + * @ordered + */ + protected static final String DEBUG_PORT_EDEFAULT = "8453"; + + /** + * The cached value of the '{@link #getDebugPort() Debug Port}' + * attribute. + * + * @see #getDebugPort() + * @generated + * @ordered + */ + protected String debugPort = DEBUG_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getUsername() Username}' + * attribute. + * + * @see #getUsername() + * @generated + * @ordered + */ + protected static final String USERNAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getUsername() Username}' attribute. + * + * + * @see #getUsername() + * @generated + * @ordered + */ + protected String username = USERNAME_EDEFAULT; + + /** + * The default value of the '{@link #getPassword() Password}' + * attribute. + * + * @see #getPassword() + * @generated + * @ordered + */ + protected static final String PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPassword() Password}' attribute. + * + * + * @see #getPassword() + * @generated + * @ordered + */ + protected String password = PASSWORD_EDEFAULT; + + private Weblogic12c13ServerCreator serverCreator; + + /** + * + * + * @generated + */ + protected WeblogicServerTaskImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.WEBLOGIC_SERVER_TASK; + } + + /** + * + * + * @generated + */ + @Override + public String getJreVersion() { + return jreVersion; + } + + /** + * + * + * @generated + */ + @Override + public void setJreVersion(String newJreVersion) { + String oldJreVersion = jreVersion; + jreVersion = newJreVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION, + oldJreVersion, jreVersion)); + } + + /** + * + * + * @generated + */ + @Override + public String getPort() { + return port; + } + + /** + * + * + * @generated + */ + @Override + public void setPort(String newPort) { + String oldPort = port; + port = newPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__PORT, oldPort, + port)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.WeblogicServerTask#port() + */ + @Override + public Integer port() { + return Convert.toInteger(getPort()); + } + + /** + * + * + * @generated + */ + @Override + public String getHttpsPort() { + return httpsPort; + } + + /** + * + * + * @generated + */ + @Override + public void setHttpsPort(String newHttpsPort) { + String oldHttpsPort = httpsPort; + httpsPort = newHttpsPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT, + oldHttpsPort, httpsPort)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.WeblogicServerTask#httpsPort() + */ + @Override + public Integer httpsPort() { + return Convert.toInteger(getHttpsPort()); + } + + /** + * + * + * @generated + */ + @Override + public String getDebugPort() { + return debugPort; + } + + /** + * + * + * @generated + */ + @Override + public void setDebugPort(String newDebugPort) { + String oldDebugPort = debugPort; + debugPort = newDebugPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT, + oldDebugPort, debugPort)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.WeblogicServerTask#debugPort() + */ + @Override + public Integer debugPort() { + return Convert.toInteger(getDebugPort()); + } + + /** + * + * + * @generated + */ + @Override + public String getUsername() { + return username; + } + + /** + * + * + * @generated + */ + @Override + public void setUsername(String newUsername) { + String oldUsername = username; + username = newUsername; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME, + oldUsername, username)); + } + + /** + * + * + * @generated + */ + @Override + public String getPassword() { + return password; + } + + /** + * + * + * @generated + */ + @Override + public void setPassword(String newPassword) { + String oldPassword = password; + password = newPassword; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD, + oldPassword, password)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION: + return getJreVersion(); + case ServerPackage.WEBLOGIC_SERVER_TASK__PORT: + return getPort(); + case ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT: + return getHttpsPort(); + case ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT: + return getDebugPort(); + case ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME: + return getUsername(); + case ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD: + return getPassword(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION: + setJreVersion((String) newValue); + return; + case ServerPackage.WEBLOGIC_SERVER_TASK__PORT: + setPort((String) newValue); + return; + case ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT: + setHttpsPort((String) newValue); + return; + case ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT: + setDebugPort((String) newValue); + return; + case ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME: + setUsername((String) newValue); + return; + case ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD: + setPassword((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION: + setJreVersion(JRE_VERSION_EDEFAULT); + return; + case ServerPackage.WEBLOGIC_SERVER_TASK__PORT: + setPort(PORT_EDEFAULT); + return; + case ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT: + setHttpsPort(HTTPS_PORT_EDEFAULT); + return; + case ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT: + setDebugPort(DEBUG_PORT_EDEFAULT); + return; + case ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME: + setUsername(USERNAME_EDEFAULT); + return; + case ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD: + setPassword(PASSWORD_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ServerPackage.WEBLOGIC_SERVER_TASK__JRE_VERSION: + return JRE_VERSION_EDEFAULT == null ? jreVersion != null : !JRE_VERSION_EDEFAULT.equals(jreVersion); + case ServerPackage.WEBLOGIC_SERVER_TASK__PORT: + return PORT_EDEFAULT == null ? port != null : !PORT_EDEFAULT.equals(port); + case ServerPackage.WEBLOGIC_SERVER_TASK__HTTPS_PORT: + return HTTPS_PORT_EDEFAULT == null ? httpsPort != null : !HTTPS_PORT_EDEFAULT.equals(httpsPort); + case ServerPackage.WEBLOGIC_SERVER_TASK__DEBUG_PORT: + return DEBUG_PORT_EDEFAULT == null ? debugPort != null : !DEBUG_PORT_EDEFAULT.equals(debugPort); + case ServerPackage.WEBLOGIC_SERVER_TASK__USERNAME: + return USERNAME_EDEFAULT == null ? username != null : !USERNAME_EDEFAULT.equals(username); + case ServerPackage.WEBLOGIC_SERVER_TASK__PASSWORD: + return PASSWORD_EDEFAULT == null ? password != null : !PASSWORD_EDEFAULT.equals(password); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (jreVersion: "); + result.append(jreVersion); + result.append(", port: "); + result.append(port); + result.append(", httpsPort: "); + result.append(httpsPort); + result.append(", debugPort: "); + result.append(debugPort); + result.append(", username: "); + result.append(username); + result.append(", password: "); + result.append(password); + result.append(')'); + return result.toString(); + } + + @Override + public boolean isNeeded(SetupTaskContext context) throws Exception { + serverCreator = new Weblogic12c13ServerCreator(context, this); + return !serverCreator.exists(); + } + + @Override + public void perform(SetupTaskContext context) throws Exception { + serverCreator.createServerInstance(); + } + + @Override + public void dispose() { + } } // WeblogicServerTaskImpl diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/WebsphereServerTaskImpl.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/WebsphereServerTaskImpl.java index c6fec54..bd2ab93 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/WebsphereServerTaskImpl.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/impl/WebsphereServerTaskImpl.java @@ -2,11 +2,10 @@ */ package com.gratex.oomph.task.server.impl; -import org.eclipse.oomph.setup.SetupTaskContext; - import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.oomph.setup.SetupTaskContext; import com.google.common.base.Strings; import com.gratex.oomph.task.server.ServerPackage; @@ -16,873 +15,840 @@ import com.gratex.oomph.task.utils.Convert; /** - * - * An implementation of the model object 'Websphere Server Task'. - * + * An implementation of the model object + * 'Websphere Server Task'. *

* The following features are implemented: *

*
    - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getBaseServerName Base Server Name}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getProfilePath Profile Path}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getProfileName Profile Name}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getBootstrapPort Bootstrap Port}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getIcpPort Icp Port}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getSoapPort Soap Port}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getRemoteOsUser Remote Os User}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getRemoteOsPassword Remote Os Password}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getServerVersion Server Version}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getSecurityUserId Security User Id}
  • - *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getSecurityUserPassword Security User Password}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getBaseServerName + * Base Server Name}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getProfilePath + * Profile Path}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getProfileName + * Profile Name}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getBootstrapPort + * Bootstrap Port}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getIcpPort + * Icp Port}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getSoapPort + * Soap Port}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getRemoteOsUser + * Remote Os User}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getRemoteOsPassword + * Remote Os Password}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getServerVersion + * Server Version}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getSecurityUserId + * Security User Id}
  • + *
  • {@link com.gratex.oomph.task.server.impl.WebsphereServerTaskImpl#getSecurityUserPassword + * Security User Password}
  • *
* * @generated */ -public class WebsphereServerTaskImpl extends ServerImpl implements WebsphereServerTask -{ - /** - * The default value of the '{@link #getBaseServerName() Base Server Name}' attribute. - * - * - * @see #getBaseServerName() - * @generated - * @ordered - */ - protected static final String BASE_SERVER_NAME_EDEFAULT = "server1"; - - /** - * The cached value of the '{@link #getBaseServerName() Base Server Name}' attribute. - * - * - * @see #getBaseServerName() - * @generated - * @ordered - */ - protected String baseServerName = BASE_SERVER_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getProfilePath() Profile Path}' attribute. - * - * - * @see #getProfilePath() - * @generated - * @ordered - */ - protected static final String PROFILE_PATH_EDEFAULT = null; - - /** - * The cached value of the '{@link #getProfilePath() Profile Path}' attribute. - * - * - * @see #getProfilePath() - * @generated - * @ordered - */ - protected String profilePath = PROFILE_PATH_EDEFAULT; - - /** - * The default value of the '{@link #getProfileName() Profile Name}' attribute. - * - * - * @see #getProfileName() - * @generated - * @ordered - */ - protected static final String PROFILE_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getProfileName() Profile Name}' attribute. - * - * - * @see #getProfileName() - * @generated - * @ordered - */ - protected String profileName = PROFILE_NAME_EDEFAULT; - - /** - * The default value of the '{@link #getBootstrapPort() Bootstrap Port}' attribute. - * - * - * @see #getBootstrapPort() - * @generated - * @ordered - */ - protected static final String BOOTSTRAP_PORT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getBootstrapPort() Bootstrap Port}' attribute. - * - * - * @see #getBootstrapPort() - * @generated - * @ordered - */ - protected String bootstrapPort = BOOTSTRAP_PORT_EDEFAULT; - - /** - * The default value of the '{@link #getIcpPort() Icp Port}' attribute. - * - * - * @see #getIcpPort() - * @generated - * @ordered - */ - protected static final String ICP_PORT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getIcpPort() Icp Port}' attribute. - * - * - * @see #getIcpPort() - * @generated - * @ordered - */ - protected String icpPort = ICP_PORT_EDEFAULT; - - /** - * The default value of the '{@link #getSoapPort() Soap Port}' attribute. - * - * - * @see #getSoapPort() - * @generated - * @ordered - */ - protected static final String SOAP_PORT_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSoapPort() Soap Port}' attribute. - * - * - * @see #getSoapPort() - * @generated - * @ordered - */ - protected String soapPort = SOAP_PORT_EDEFAULT; - - /** - * The default value of the '{@link #getRemoteOsUser() Remote Os User}' attribute. - * - * - * @see #getRemoteOsUser() - * @generated - * @ordered - */ - protected static final String REMOTE_OS_USER_EDEFAULT = null; - - /** - * The cached value of the '{@link #getRemoteOsUser() Remote Os User}' attribute. - * - * - * @see #getRemoteOsUser() - * @generated - * @ordered - */ - protected String remoteOsUser = REMOTE_OS_USER_EDEFAULT; - - /** - * The default value of the '{@link #getRemoteOsPassword() Remote Os Password}' attribute. - * - * - * @see #getRemoteOsPassword() - * @generated - * @ordered - */ - protected static final String REMOTE_OS_PASSWORD_EDEFAULT = null; - - /** - * The cached value of the '{@link #getRemoteOsPassword() Remote Os Password}' attribute. - * - * - * @see #getRemoteOsPassword() - * @generated - * @ordered - */ - protected String remoteOsPassword = REMOTE_OS_PASSWORD_EDEFAULT; - - /** - * The default value of the '{@link #getServerVersion() Server Version}' attribute. - * - * - * @see #getServerVersion() - * @generated - * @ordered - */ - protected static final WebsphereServerVersion SERVER_VERSION_EDEFAULT = WebsphereServerVersion.WAS70; - - /** - * The cached value of the '{@link #getServerVersion() Server Version}' attribute. - * - * - * @see #getServerVersion() - * @generated - * @ordered - */ - protected WebsphereServerVersion serverVersion = SERVER_VERSION_EDEFAULT; - - /** - * The default value of the '{@link #getSecurityUserId() Security User Id}' attribute. - * - * - * @see #getSecurityUserId() - * @generated - * @ordered - */ - protected static final String SECURITY_USER_ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSecurityUserId() Security User Id}' attribute. - * - * - * @see #getSecurityUserId() - * @generated - * @ordered - */ - protected String securityUserId = SECURITY_USER_ID_EDEFAULT; - - /** - * The default value of the '{@link #getSecurityUserPassword() Security User Password}' attribute. - * - * - * @see #getSecurityUserPassword() - * @generated - * @ordered - */ - protected static final String SECURITY_USER_PASSWORD_EDEFAULT = null; - - /** - * The cached value of the '{@link #getSecurityUserPassword() Security User Password}' attribute. - * - * - * @see #getSecurityUserPassword() - * @generated - * @ordered - */ - protected String securityUserPassword = SECURITY_USER_PASSWORD_EDEFAULT; - - private WebsphereServerCreator serverCreator; - - /** - * - * - * @generated - */ - protected WebsphereServerTaskImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ServerPackage.Literals.WEBSPHERE_SERVER_TASK; - } - - /** - * - * - * @generated - */ - @Override - public String getBaseServerName() - { - return baseServerName; - } - - /** - * - * - * @generated - */ - @Override - public void setBaseServerName(String newBaseServerName) - { - String oldBaseServerName = baseServerName; - baseServerName = newBaseServerName; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME, oldBaseServerName, baseServerName)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getProfilePath() - { - return profilePath; - } - - /** - * - * - * @generated - */ - @Override - public void setProfilePath(String newProfilePath) - { - String oldProfilePath = profilePath; - profilePath = newProfilePath; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH, oldProfilePath, profilePath)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getProfileName() - { - return profileName; - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WebsphereServerTask#hasProfileName() - */ - @Override - public boolean hasProfileName() - { - return !Strings.isNullOrEmpty(profileName); - } - - /** - * - * - * @generated - */ - @Override - public void setProfileName(String newProfileName) - { - String oldProfileName = profileName; - profileName = newProfileName; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME, oldProfileName, profileName)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getBootstrapPort() - { - return bootstrapPort; - } - - /** - * - * - * @generated - */ - @Override - public void setBootstrapPort(String newBootstrapPort) - { - String oldBootstrapPort = bootstrapPort; - bootstrapPort = newBootstrapPort; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT, oldBootstrapPort, bootstrapPort)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WebsphereServerTask#bootstrapPort() - */ - @Override - public Integer bootstrapPort() - { - return Convert.toInteger(getBootstrapPort()); - } - - /** - * - * - * @generated - */ - @Override - public String getIcpPort() - { - return icpPort; - } - - /** - * - * - * @generated - */ - @Override - public void setIcpPort(String newIcpPort) - { - String oldIcpPort = icpPort; - icpPort = newIcpPort; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT, oldIcpPort, icpPort)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WebsphereServerTask#icpPort() - */ - @Override - public Integer icpPort() - { - return Convert.toInteger(getIcpPort()); - } - - /** - * - * - * @generated - */ - @Override - public String getSoapPort() - { - return soapPort; - } - - /** - * - * - * @generated - */ - @Override - public void setSoapPort(String newSoapPort) - { - String oldSoapPort = soapPort; - soapPort = newSoapPort; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT, oldSoapPort, soapPort)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WebsphereServerTask#soapPort() - */ - @Override - public Integer soapPort() - { - return Convert.toInteger(getSoapPort()); - } - - /** - * - * - * @generated - */ - @Override - public String getRemoteOsUser() - { - return remoteOsUser; - } - - /** - * - * - * @generated - */ - @Override - public void setRemoteOsUser(String newRemoteOsUser) - { - String oldRemoteOsUser = remoteOsUser; - remoteOsUser = newRemoteOsUser; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER, oldRemoteOsUser, remoteOsUser)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WebsphereServerTask#hasRemoteOsUser() - */ - @Override - public boolean hasRemoteOsUser() - { - return !Strings.isNullOrEmpty(remoteOsUser); - } - - /** - * - * - * @generated - */ - @Override - public String getRemoteOsPassword() - { - return remoteOsPassword; - } - - /** - * - * - * @generated - */ - @Override - public void setRemoteOsPassword(String newRemoteOsPassword) - { - String oldRemoteOsPassword = remoteOsPassword; - remoteOsPassword = newRemoteOsPassword; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD, oldRemoteOsPassword, remoteOsPassword)); - } - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WebsphereServerTask#hasRemoteOsPassword() - */ - @Override - public boolean hasRemoteOsPassword() - { - return !Strings.isNullOrEmpty(remoteOsPassword); - } - - /** - * - * - * @generated - */ - @Override - public WebsphereServerVersion getServerVersion() - { - return serverVersion; - } - - /** - * - * - * @generated - */ - @Override - public void setServerVersion(WebsphereServerVersion newServerVersion) - { - WebsphereServerVersion oldServerVersion = serverVersion; - serverVersion = newServerVersion == null ? SERVER_VERSION_EDEFAULT : newServerVersion; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION, oldServerVersion, serverVersion)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getSecurityUserId() - { - return securityUserId; - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WebsphereServerTask#hasSecurityUserId() - */ - @Override - public boolean hasSecurityUserId() - { - return !Strings.isNullOrEmpty(securityUserId); - } - - /** - * - * - * @generated - */ - @Override - public void setSecurityUserId(String newSecurityUserId) - { - String oldSecurityUserId = securityUserId; - securityUserId = newSecurityUserId; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID, oldSecurityUserId, securityUserId)); - } - } - - /** - * - * - * @generated - */ - @Override - public String getSecurityUserPassword() - { - return securityUserPassword; - } - - /* - * (non-Javadoc) - * @see com.gratex.oomph.task.server.WebsphereServerTask#hasSecurityUserPassword() - */ - @Override - public boolean hasSecurityUserPassword() - { - return !Strings.isNullOrEmpty(securityUserPassword); - } - - /** - * - * - * @generated - */ - @Override - public void setSecurityUserPassword(String newSecurityUserPassword) - { - String oldSecurityUserPassword = securityUserPassword; - securityUserPassword = newSecurityUserPassword; - if (eNotificationRequired()) - { - eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD, oldSecurityUserPassword, - securityUserPassword)); - } - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME: - return getBaseServerName(); - case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH: - return getProfilePath(); - case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME: - return getProfileName(); - case ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT: - return getBootstrapPort(); - case ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT: - return getIcpPort(); - case ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT: - return getSoapPort(); - case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER: - return getRemoteOsUser(); - case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD: - return getRemoteOsPassword(); - case ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION: - return getServerVersion(); - case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID: - return getSecurityUserId(); - case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD: - return getSecurityUserPassword(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME: - setBaseServerName((String)newValue); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH: - setProfilePath((String)newValue); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME: - setProfileName((String)newValue); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT: - setBootstrapPort((String)newValue); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT: - setIcpPort((String)newValue); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT: - setSoapPort((String)newValue); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER: - setRemoteOsUser((String)newValue); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD: - setRemoteOsPassword((String)newValue); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION: - setServerVersion((WebsphereServerVersion)newValue); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID: - setSecurityUserId((String)newValue); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD: - setSecurityUserPassword((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME: - setBaseServerName(BASE_SERVER_NAME_EDEFAULT); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH: - setProfilePath(PROFILE_PATH_EDEFAULT); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME: - setProfileName(PROFILE_NAME_EDEFAULT); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT: - setBootstrapPort(BOOTSTRAP_PORT_EDEFAULT); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT: - setIcpPort(ICP_PORT_EDEFAULT); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT: - setSoapPort(SOAP_PORT_EDEFAULT); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER: - setRemoteOsUser(REMOTE_OS_USER_EDEFAULT); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD: - setRemoteOsPassword(REMOTE_OS_PASSWORD_EDEFAULT); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION: - setServerVersion(SERVER_VERSION_EDEFAULT); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID: - setSecurityUserId(SECURITY_USER_ID_EDEFAULT); - return; - case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD: - setSecurityUserPassword(SECURITY_USER_PASSWORD_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME: - return BASE_SERVER_NAME_EDEFAULT == null ? baseServerName != null : !BASE_SERVER_NAME_EDEFAULT.equals(baseServerName); - case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH: - return PROFILE_PATH_EDEFAULT == null ? profilePath != null : !PROFILE_PATH_EDEFAULT.equals(profilePath); - case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME: - return PROFILE_NAME_EDEFAULT == null ? profileName != null : !PROFILE_NAME_EDEFAULT.equals(profileName); - case ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT: - return BOOTSTRAP_PORT_EDEFAULT == null ? bootstrapPort != null : !BOOTSTRAP_PORT_EDEFAULT.equals(bootstrapPort); - case ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT: - return ICP_PORT_EDEFAULT == null ? icpPort != null : !ICP_PORT_EDEFAULT.equals(icpPort); - case ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT: - return SOAP_PORT_EDEFAULT == null ? soapPort != null : !SOAP_PORT_EDEFAULT.equals(soapPort); - case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER: - return REMOTE_OS_USER_EDEFAULT == null ? remoteOsUser != null : !REMOTE_OS_USER_EDEFAULT.equals(remoteOsUser); - case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD: - return REMOTE_OS_PASSWORD_EDEFAULT == null ? remoteOsPassword != null : !REMOTE_OS_PASSWORD_EDEFAULT.equals(remoteOsPassword); - case ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION: - return serverVersion != SERVER_VERSION_EDEFAULT; - case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID: - return SECURITY_USER_ID_EDEFAULT == null ? securityUserId != null : !SECURITY_USER_ID_EDEFAULT.equals(securityUserId); - case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD: - return SECURITY_USER_PASSWORD_EDEFAULT == null ? securityUserPassword != null : !SECURITY_USER_PASSWORD_EDEFAULT.equals(securityUserPassword); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) - { - return super.toString(); - } - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (baseServerName: "); - result.append(baseServerName); - result.append(", profilePath: "); - result.append(profilePath); - result.append(", profileName: "); - result.append(profileName); - result.append(", bootstrapPort: "); - result.append(bootstrapPort); - result.append(", icpPort: "); - result.append(icpPort); - result.append(", soapPort: "); - result.append(soapPort); - result.append(", remoteOsUser: "); - result.append(remoteOsUser); - result.append(", remoteOsPassword: "); - result.append(remoteOsPassword); - result.append(", serverVersion: "); - result.append(serverVersion); - result.append(", securityUserId: "); - result.append(securityUserId); - result.append(", securityUserPassword: "); - result.append(securityUserPassword); - result.append(')'); - return result.toString(); - } - - @Override - public boolean isNeeded(SetupTaskContext context) throws Exception - { - serverCreator = new WebsphereServerCreator(context, this); - return !serverCreator.exists(); - } - - @Override - public void perform(SetupTaskContext context) throws Exception - { - serverCreator.createServerInstance(); - } - - @Override - public void dispose() - { - } +public class WebsphereServerTaskImpl extends ServerImpl implements WebsphereServerTask { + /** + * The default value of the '{@link #getBaseServerName() Base Server + * Name}' attribute. + * + * @see #getBaseServerName() + * @generated + * @ordered + */ + protected static final String BASE_SERVER_NAME_EDEFAULT = "server1"; + + /** + * The cached value of the '{@link #getBaseServerName() Base Server + * Name}' attribute. + * + * @see #getBaseServerName() + * @generated + * @ordered + */ + protected String baseServerName = BASE_SERVER_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getProfilePath() Profile Path}' + * attribute. + * + * @see #getProfilePath() + * @generated + * @ordered + */ + protected static final String PROFILE_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProfilePath() Profile Path}' + * attribute. + * + * @see #getProfilePath() + * @generated + * @ordered + */ + protected String profilePath = PROFILE_PATH_EDEFAULT; + + /** + * The default value of the '{@link #getProfileName() Profile Name}' + * attribute. + * + * @see #getProfileName() + * @generated + * @ordered + */ + protected static final String PROFILE_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getProfileName() Profile Name}' + * attribute. + * + * @see #getProfileName() + * @generated + * @ordered + */ + protected String profileName = PROFILE_NAME_EDEFAULT; + + /** + * The default value of the '{@link #getBootstrapPort() Bootstrap + * Port}' attribute. + * + * @see #getBootstrapPort() + * @generated + * @ordered + */ + protected static final String BOOTSTRAP_PORT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getBootstrapPort() Bootstrap Port}' + * attribute. + * + * @see #getBootstrapPort() + * @generated + * @ordered + */ + protected String bootstrapPort = BOOTSTRAP_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getIcpPort() Icp Port}' attribute. + * + * + * @see #getIcpPort() + * @generated + * @ordered + */ + protected static final String ICP_PORT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getIcpPort() Icp Port}' attribute. + * + * + * @see #getIcpPort() + * @generated + * @ordered + */ + protected String icpPort = ICP_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getSoapPort() Soap Port}' + * attribute. + * + * @see #getSoapPort() + * @generated + * @ordered + */ + protected static final String SOAP_PORT_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSoapPort() Soap Port}' + * attribute. + * + * @see #getSoapPort() + * @generated + * @ordered + */ + protected String soapPort = SOAP_PORT_EDEFAULT; + + /** + * The default value of the '{@link #getRemoteOsUser() Remote Os User}' + * attribute. + * + * @see #getRemoteOsUser() + * @generated + * @ordered + */ + protected static final String REMOTE_OS_USER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRemoteOsUser() Remote Os User}' + * attribute. + * + * @see #getRemoteOsUser() + * @generated + * @ordered + */ + protected String remoteOsUser = REMOTE_OS_USER_EDEFAULT; + + /** + * The default value of the '{@link #getRemoteOsPassword() Remote Os + * Password}' attribute. + * + * @see #getRemoteOsPassword() + * @generated + * @ordered + */ + protected static final String REMOTE_OS_PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getRemoteOsPassword() Remote Os + * Password}' attribute. + * + * @see #getRemoteOsPassword() + * @generated + * @ordered + */ + protected String remoteOsPassword = REMOTE_OS_PASSWORD_EDEFAULT; + + /** + * The default value of the '{@link #getServerVersion() Server + * Version}' attribute. + * + * @see #getServerVersion() + * @generated + * @ordered + */ + protected static final WebsphereServerVersion SERVER_VERSION_EDEFAULT = WebsphereServerVersion.WAS70; + + /** + * The cached value of the '{@link #getServerVersion() Server Version}' + * attribute. + * + * @see #getServerVersion() + * @generated + * @ordered + */ + protected WebsphereServerVersion serverVersion = SERVER_VERSION_EDEFAULT; + + /** + * The default value of the '{@link #getSecurityUserId() Security User + * Id}' attribute. + * + * @see #getSecurityUserId() + * @generated + * @ordered + */ + protected static final String SECURITY_USER_ID_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSecurityUserId() Security User + * Id}' attribute. + * + * @see #getSecurityUserId() + * @generated + * @ordered + */ + protected String securityUserId = SECURITY_USER_ID_EDEFAULT; + + /** + * The default value of the '{@link #getSecurityUserPassword() Security User + * Password}' attribute. + * + * @see #getSecurityUserPassword() + * @generated + * @ordered + */ + protected static final String SECURITY_USER_PASSWORD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSecurityUserPassword() Security User + * Password}' attribute. + * + * @see #getSecurityUserPassword() + * @generated + * @ordered + */ + protected String securityUserPassword = SECURITY_USER_PASSWORD_EDEFAULT; + + private WebsphereServerCreator serverCreator; + + /** + * + * + * @generated + */ + protected WebsphereServerTaskImpl() { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() { + return ServerPackage.Literals.WEBSPHERE_SERVER_TASK; + } + + /** + * + * + * @generated + */ + @Override + public String getBaseServerName() { + return baseServerName; + } + + /** + * + * + * @generated + */ + @Override + public void setBaseServerName(String newBaseServerName) { + String oldBaseServerName = baseServerName; + baseServerName = newBaseServerName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME, + oldBaseServerName, baseServerName)); + } + + /** + * + * + * @generated + */ + @Override + public String getProfilePath() { + return profilePath; + } + + /** + * + * + * @generated + */ + @Override + public void setProfilePath(String newProfilePath) { + String oldProfilePath = profilePath; + profilePath = newProfilePath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH, + oldProfilePath, profilePath)); + } + + /** + * + * + * @generated + */ + @Override + public String getProfileName() { + return profileName; + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.WebsphereServerTask#hasProfileName() + */ + @Override + public boolean hasProfileName() { + return !Strings.isNullOrEmpty(profileName); + } + + /** + * + * + * @generated + */ + @Override + public void setProfileName(String newProfileName) { + String oldProfileName = profileName; + profileName = newProfileName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME, + oldProfileName, profileName)); + } + + /** + * + * + * @generated + */ + @Override + public String getBootstrapPort() { + return bootstrapPort; + } + + /** + * + * + * @generated + */ + @Override + public void setBootstrapPort(String newBootstrapPort) { + String oldBootstrapPort = bootstrapPort; + bootstrapPort = newBootstrapPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT, + oldBootstrapPort, bootstrapPort)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.WebsphereServerTask#bootstrapPort() + */ + @Override + public Integer bootstrapPort() { + return Convert.toInteger(getBootstrapPort()); + } + + /** + * + * + * @generated + */ + @Override + public String getIcpPort() { + return icpPort; + } + + /** + * + * + * @generated + */ + @Override + public void setIcpPort(String newIcpPort) { + String oldIcpPort = icpPort; + icpPort = newIcpPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT, + oldIcpPort, icpPort)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.WebsphereServerTask#icpPort() + */ + @Override + public Integer icpPort() { + return Convert.toInteger(getIcpPort()); + } + + /** + * + * + * @generated + */ + @Override + public String getSoapPort() { + return soapPort; + } + + /** + * + * + * @generated + */ + @Override + public void setSoapPort(String newSoapPort) { + String oldSoapPort = soapPort; + soapPort = newSoapPort; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT, + oldSoapPort, soapPort)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.WebsphereServerTask#soapPort() + */ + @Override + public Integer soapPort() { + return Convert.toInteger(getSoapPort()); + } + + /** + * + * + * @generated + */ + @Override + public String getRemoteOsUser() { + return remoteOsUser; + } + + /** + * + * + * @generated + */ + @Override + public void setRemoteOsUser(String newRemoteOsUser) { + String oldRemoteOsUser = remoteOsUser; + remoteOsUser = newRemoteOsUser; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER, + oldRemoteOsUser, remoteOsUser)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.WebsphereServerTask#hasRemoteOsUser() + */ + @Override + public boolean hasRemoteOsUser() { + return !Strings.isNullOrEmpty(remoteOsUser); + } + + /** + * + * + * @generated + */ + @Override + public String getRemoteOsPassword() { + return remoteOsPassword; + } + + /** + * + * + * @generated + */ + @Override + public void setRemoteOsPassword(String newRemoteOsPassword) { + String oldRemoteOsPassword = remoteOsPassword; + remoteOsPassword = newRemoteOsPassword; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD, oldRemoteOsPassword, remoteOsPassword)); + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.WebsphereServerTask#hasRemoteOsPassword() + */ + @Override + public boolean hasRemoteOsPassword() { + return !Strings.isNullOrEmpty(remoteOsPassword); + } + + /** + * + * + * @generated + */ + @Override + public WebsphereServerVersion getServerVersion() { + return serverVersion; + } + + /** + * + * + * @generated + */ + @Override + public void setServerVersion(WebsphereServerVersion newServerVersion) { + WebsphereServerVersion oldServerVersion = serverVersion; + serverVersion = newServerVersion == null ? SERVER_VERSION_EDEFAULT : newServerVersion; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION, + oldServerVersion, serverVersion)); + } + + /** + * + * + * @generated + */ + @Override + public String getSecurityUserId() { + return securityUserId; + } + + /* + * (non-Javadoc) + * + * @see com.gratex.oomph.task.server.WebsphereServerTask#hasSecurityUserId() + */ + @Override + public boolean hasSecurityUserId() { + return !Strings.isNullOrEmpty(securityUserId); + } + + /** + * + * + * @generated + */ + @Override + public void setSecurityUserId(String newSecurityUserId) { + String oldSecurityUserId = securityUserId; + securityUserId = newSecurityUserId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID, + oldSecurityUserId, securityUserId)); + } + + /** + * + * + * @generated + */ + @Override + public String getSecurityUserPassword() { + return securityUserPassword; + } + + /* + * (non-Javadoc) + * + * @see + * com.gratex.oomph.task.server.WebsphereServerTask#hasSecurityUserPassword() + */ + @Override + public boolean hasSecurityUserPassword() { + return !Strings.isNullOrEmpty(securityUserPassword); + } + + /** + * + * + * @generated + */ + @Override + public void setSecurityUserPassword(String newSecurityUserPassword) { + String oldSecurityUserPassword = securityUserPassword; + securityUserPassword = newSecurityUserPassword; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, + ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD, oldSecurityUserPassword, + securityUserPassword)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME: + return getBaseServerName(); + case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH: + return getProfilePath(); + case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME: + return getProfileName(); + case ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT: + return getBootstrapPort(); + case ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT: + return getIcpPort(); + case ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT: + return getSoapPort(); + case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER: + return getRemoteOsUser(); + case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD: + return getRemoteOsPassword(); + case ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION: + return getServerVersion(); + case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID: + return getSecurityUserId(); + case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD: + return getSecurityUserPassword(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME: + setBaseServerName((String) newValue); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH: + setProfilePath((String) newValue); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME: + setProfileName((String) newValue); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT: + setBootstrapPort((String) newValue); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT: + setIcpPort((String) newValue); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT: + setSoapPort((String) newValue); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER: + setRemoteOsUser((String) newValue); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD: + setRemoteOsPassword((String) newValue); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION: + setServerVersion((WebsphereServerVersion) newValue); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID: + setSecurityUserId((String) newValue); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD: + setSecurityUserPassword((String) newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME: + setBaseServerName(BASE_SERVER_NAME_EDEFAULT); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH: + setProfilePath(PROFILE_PATH_EDEFAULT); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME: + setProfileName(PROFILE_NAME_EDEFAULT); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT: + setBootstrapPort(BOOTSTRAP_PORT_EDEFAULT); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT: + setIcpPort(ICP_PORT_EDEFAULT); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT: + setSoapPort(SOAP_PORT_EDEFAULT); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER: + setRemoteOsUser(REMOTE_OS_USER_EDEFAULT); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD: + setRemoteOsPassword(REMOTE_OS_PASSWORD_EDEFAULT); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION: + setServerVersion(SERVER_VERSION_EDEFAULT); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID: + setSecurityUserId(SECURITY_USER_ID_EDEFAULT); + return; + case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD: + setSecurityUserPassword(SECURITY_USER_PASSWORD_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case ServerPackage.WEBSPHERE_SERVER_TASK__BASE_SERVER_NAME: + return BASE_SERVER_NAME_EDEFAULT == null ? baseServerName != null + : !BASE_SERVER_NAME_EDEFAULT.equals(baseServerName); + case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_PATH: + return PROFILE_PATH_EDEFAULT == null ? profilePath != null : !PROFILE_PATH_EDEFAULT.equals(profilePath); + case ServerPackage.WEBSPHERE_SERVER_TASK__PROFILE_NAME: + return PROFILE_NAME_EDEFAULT == null ? profileName != null : !PROFILE_NAME_EDEFAULT.equals(profileName); + case ServerPackage.WEBSPHERE_SERVER_TASK__BOOTSTRAP_PORT: + return BOOTSTRAP_PORT_EDEFAULT == null ? bootstrapPort != null + : !BOOTSTRAP_PORT_EDEFAULT.equals(bootstrapPort); + case ServerPackage.WEBSPHERE_SERVER_TASK__ICP_PORT: + return ICP_PORT_EDEFAULT == null ? icpPort != null : !ICP_PORT_EDEFAULT.equals(icpPort); + case ServerPackage.WEBSPHERE_SERVER_TASK__SOAP_PORT: + return SOAP_PORT_EDEFAULT == null ? soapPort != null : !SOAP_PORT_EDEFAULT.equals(soapPort); + case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_USER: + return REMOTE_OS_USER_EDEFAULT == null ? remoteOsUser != null + : !REMOTE_OS_USER_EDEFAULT.equals(remoteOsUser); + case ServerPackage.WEBSPHERE_SERVER_TASK__REMOTE_OS_PASSWORD: + return REMOTE_OS_PASSWORD_EDEFAULT == null ? remoteOsPassword != null + : !REMOTE_OS_PASSWORD_EDEFAULT.equals(remoteOsPassword); + case ServerPackage.WEBSPHERE_SERVER_TASK__SERVER_VERSION: + return serverVersion != SERVER_VERSION_EDEFAULT; + case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_ID: + return SECURITY_USER_ID_EDEFAULT == null ? securityUserId != null + : !SECURITY_USER_ID_EDEFAULT.equals(securityUserId); + case ServerPackage.WEBSPHERE_SERVER_TASK__SECURITY_USER_PASSWORD: + return SECURITY_USER_PASSWORD_EDEFAULT == null ? securityUserPassword != null + : !SECURITY_USER_PASSWORD_EDEFAULT.equals(securityUserPassword); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() { + if (eIsProxy()) + return super.toString(); + + StringBuilder result = new StringBuilder(super.toString()); + result.append(" (baseServerName: "); + result.append(baseServerName); + result.append(", profilePath: "); + result.append(profilePath); + result.append(", profileName: "); + result.append(profileName); + result.append(", bootstrapPort: "); + result.append(bootstrapPort); + result.append(", icpPort: "); + result.append(icpPort); + result.append(", soapPort: "); + result.append(soapPort); + result.append(", remoteOsUser: "); + result.append(remoteOsUser); + result.append(", remoteOsPassword: "); + result.append(remoteOsPassword); + result.append(", serverVersion: "); + result.append(serverVersion); + result.append(", securityUserId: "); + result.append(securityUserId); + result.append(", securityUserPassword: "); + result.append(securityUserPassword); + result.append(')'); + return result.toString(); + } + + @Override + public boolean isNeeded(SetupTaskContext context) throws Exception { + serverCreator = new WebsphereServerCreator(context, this); + return !serverCreator.exists(); + } + + @Override + public void perform(SetupTaskContext context) throws Exception { + serverCreator.createServerInstance(); + } + + @Override + public void dispose() { + } } // WebsphereServerTaskImpl diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/util/ServerAdapterFactory.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/util/ServerAdapterFactory.java index 591a005..21a2c00 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/util/ServerAdapterFactory.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/util/ServerAdapterFactory.java @@ -2,13 +2,12 @@ */ package com.gratex.oomph.task.server.util; -import org.eclipse.oomph.base.ModelElement; -import org.eclipse.oomph.setup.SetupTask; - 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.oomph.base.ModelElement; +import org.eclipse.oomph.setup.SetupTask; import com.gratex.oomph.task.server.Server; import com.gratex.oomph.task.server.ServerPackage; @@ -17,225 +16,208 @@ import com.gratex.oomph.task.server.WebsphereServerTask; /** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * + * The Adapter Factory for the model. It provides + * an adapter createXXX method for each class of the model. + * * @see com.gratex.oomph.task.server.ServerPackage * @generated */ -public class ServerAdapterFactory extends AdapterFactoryImpl -{ - /** - * The cached model package. - * - * - * @generated - */ - protected static ServerPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public ServerAdapterFactory() - { - if (modelPackage == null) - { - modelPackage = ServerPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @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 createXXX methods. - * - * - * @generated - */ - protected ServerSwitch modelSwitch = new ServerSwitch() - { - @Override - public Adapter caseTomcatServerTask(TomcatServerTask object) - { - return createTomcatServerTaskAdapter(); - } - - @Override - public Adapter caseWeblogicServerTask(WeblogicServerTask object) - { - return createWeblogicServerTaskAdapter(); - } - - @Override - public Adapter caseWebsphereServerTask(WebsphereServerTask object) - { - return createWebsphereServerTaskAdapter(); - } - - @Override - public Adapter caseServer(Server object) - { - return createServerAdapter(); - } - - @Override - public Adapter caseModelElement(ModelElement object) - { - return createModelElementAdapter(); - } - - @Override - public Adapter caseSetupTask(SetupTask object) - { - return createSetupTaskAdapter(); - } - - @Override - public Adapter defaultCase(EObject object) - { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) - { - return modelSwitch.doSwitch((EObject)target); - } - - /** - * Creates a new adapter for an object of class '{@link com.gratex.oomph.task.server.TomcatServerTask Tomcat Server Task}'. - * - * 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. - * - * @return the new adapter. - * @see com.gratex.oomph.task.server.TomcatServerTask - * @generated - */ - public Adapter createTomcatServerTaskAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.gratex.oomph.task.server.WeblogicServerTask Weblogic Server Task}'. - * - * 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. - * - * @return the new adapter. - * @see com.gratex.oomph.task.server.WeblogicServerTask - * @generated - */ - public Adapter createWeblogicServerTaskAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.gratex.oomph.task.server.WebsphereServerTask Websphere Server Task}'. - * - * 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. - * - * @return the new adapter. - * @see com.gratex.oomph.task.server.WebsphereServerTask - * @generated - */ - public Adapter createWebsphereServerTaskAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.gratex.oomph.task.server.Server Server}'. - * - * 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. - * - * @return the new adapter. - * @see com.gratex.oomph.task.server.Server - * @generated - */ - public Adapter createServerAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.oomph.base.ModelElement Model Element}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.oomph.base.ModelElement - * @generated - */ - public Adapter createModelElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.oomph.setup.SetupTask Task}'. - * - * 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. - * - * @return the new adapter. - * @see org.eclipse.oomph.setup.SetupTask - * @generated - */ - public Adapter createSetupTaskAdapter() - { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() - { - return null; - } +public class ServerAdapterFactory extends AdapterFactoryImpl { + /** + * The cached model package. + * + * @generated + */ + protected static ServerPackage modelPackage; + + /** + * Creates an instance of the adapter factory. + * + * @generated + */ + public ServerAdapterFactory() { + if (modelPackage == null) { + modelPackage = ServerPackage.eINSTANCE; + } + } + + /** + * Returns whether this factory is applicable for the type of the object. This implementation returns true if the + * object is either the model's package or is an instance object of the model. + * + * + * @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 createXXX methods. + * + * @generated + */ + protected ServerSwitch modelSwitch = new ServerSwitch() { + @Override + public Adapter caseTomcatServerTask(TomcatServerTask object) { + return createTomcatServerTaskAdapter(); + } + + @Override + public Adapter caseWeblogicServerTask(WeblogicServerTask object) { + return createWeblogicServerTaskAdapter(); + } + + @Override + public Adapter caseWebsphereServerTask(WebsphereServerTask object) { + return createWebsphereServerTaskAdapter(); + } + + @Override + public Adapter caseServer(Server object) { + return createServerAdapter(); + } + + @Override + public Adapter caseModelElement(ModelElement object) { + return createModelElementAdapter(); + } + + @Override + public Adapter caseSetupTask(SetupTask object) { + return createSetupTaskAdapter(); + } + + @Override + public Adapter defaultCase(EObject object) { + return createEObjectAdapter(); + } + }; + + /** + * Creates an adapter for the target. + * + * @param target the object to adapt. + * @return the adapter for the target. + * @generated + */ + @Override + public Adapter createAdapter(Notifier target) { + return modelSwitch.doSwitch((EObject) target); + } + + /** + * Creates a new adapter for an object of class + * '{@link com.gratex.oomph.task.server.TomcatServerTask Tomcat Server + * Task}'. 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. + * + * @return the new adapter. + * @see com.gratex.oomph.task.server.TomcatServerTask + * @generated + */ + public Adapter createTomcatServerTaskAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class + * '{@link com.gratex.oomph.task.server.WeblogicServerTask Weblogic Server + * Task}'. 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. + * + * @return the new adapter. + * @see com.gratex.oomph.task.server.WeblogicServerTask + * @generated + */ + public Adapter createWeblogicServerTaskAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class + * '{@link com.gratex.oomph.task.server.WebsphereServerTask Websphere Server + * Task}'. 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. + * + * @return the new adapter. + * @see com.gratex.oomph.task.server.WebsphereServerTask + * @generated + */ + public Adapter createWebsphereServerTaskAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class + * '{@link com.gratex.oomph.task.server.Server Server}'. 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. + * + * @return the new adapter. + * @see com.gratex.oomph.task.server.Server + * @generated + */ + public Adapter createServerAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class + * '{@link org.eclipse.oomph.base.ModelElement Model Element}'. 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. + * + * @return the new adapter. + * @see org.eclipse.oomph.base.ModelElement + * @generated + */ + public Adapter createModelElementAdapter() { + return null; + } + + /** + * Creates a new adapter for an object of class + * '{@link org.eclipse.oomph.setup.SetupTask Task}'. 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. + * + * @return the new adapter. + * @see org.eclipse.oomph.setup.SetupTask + * @generated + */ + public Adapter createSetupTaskAdapter() { + return null; + } + + /** + * Creates a new adapter for the default case. This + * default implementation returns null. + * + * @return the new adapter. + * @generated + */ + public Adapter createEObjectAdapter() { + return null; + } } // ServerAdapterFactory diff --git a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/util/ServerSwitch.java b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/util/ServerSwitch.java index ecccced..2ab9714 100644 --- a/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/util/ServerSwitch.java +++ b/com.gratex.oomph.task.server/src/com/gratex/oomph/task/server/util/ServerSwitch.java @@ -2,12 +2,11 @@ */ package com.gratex.oomph.task.server.util; -import org.eclipse.oomph.base.ModelElement; -import org.eclipse.oomph.setup.SetupTask; - import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.util.Switch; +import org.eclipse.oomph.base.ModelElement; +import org.eclipse.oomph.setup.SetupTask; import com.gratex.oomph.task.server.Server; import com.gratex.oomph.task.server.ServerPackage; @@ -16,268 +15,221 @@ import com.gratex.oomph.task.server.WebsphereServerTask; /** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} + * The Switch for the model's inheritance + * hierarchy. It supports the call {@link #doSwitch(EObject) doSwitch(object)} * to invoke the caseXXX 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. - * + * 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. + * * @see com.gratex.oomph.task.server.ServerPackage * @generated */ -public class ServerSwitch extends Switch -{ - /** - * The cached model package - * - * - * @generated - */ - protected static ServerPackage modelPackage; +public class ServerSwitch extends Switch { + /** + * The cached model package + * + * @generated + */ + protected static ServerPackage modelPackage; - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public ServerSwitch() - { - if (modelPackage == null) - { - modelPackage = ServerPackage.eINSTANCE; - } - } + /** + * Creates an instance of the switch. + * + * @generated + */ + public ServerSwitch() { + if (modelPackage == null) { + modelPackage = ServerPackage.eINSTANCE; + } + } - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) - { - return ePackage == modelPackage; - } + /** + * Checks whether this is a switch for the given package. + * + * @param ePackage the package in question. + * @return whether this is a switch for the given package. + * @generated + */ + @Override + protected boolean isSwitchFor(EPackage ePackage) { + return ePackage == modelPackage; + } - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) - { - switch (classifierID) - { - case ServerPackage.TOMCAT_SERVER_TASK: - { - TomcatServerTask tomcatServerTask = (TomcatServerTask)theEObject; - T result = caseTomcatServerTask(tomcatServerTask); - if (result == null) - { - result = caseServer(tomcatServerTask); - } - if (result == null) - { - result = caseSetupTask(tomcatServerTask); - } - if (result == null) - { - result = caseModelElement(tomcatServerTask); - } - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case ServerPackage.WEBLOGIC_SERVER_TASK: - { - WeblogicServerTask weblogicServerTask = (WeblogicServerTask)theEObject; - T result = caseWeblogicServerTask(weblogicServerTask); - if (result == null) - { - result = caseServer(weblogicServerTask); - } - if (result == null) - { - result = caseSetupTask(weblogicServerTask); - } - if (result == null) - { - result = caseModelElement(weblogicServerTask); - } - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case ServerPackage.WEBSPHERE_SERVER_TASK: - { - WebsphereServerTask websphereServerTask = (WebsphereServerTask)theEObject; - T result = caseWebsphereServerTask(websphereServerTask); - if (result == null) - { - result = caseServer(websphereServerTask); - } - if (result == null) - { - result = caseSetupTask(websphereServerTask); - } - if (result == null) - { - result = caseModelElement(websphereServerTask); - } - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - case ServerPackage.SERVER: - { - Server server = (Server)theEObject; - T result = caseServer(server); - if (result == null) - { - result = caseSetupTask(server); - } - if (result == null) - { - result = caseModelElement(server); - } - if (result == null) - { - result = defaultCase(theEObject); - } - return result; - } - default: - return defaultCase(theEObject); - } - } + /** + * Calls caseXXX for each class of the model until one returns a + * non null result; it yields that result. + * + * @return the first non-null result returned by a caseXXX call. + * @generated + */ + @Override + protected T doSwitch(int classifierID, EObject theEObject) { + switch (classifierID) { + case ServerPackage.TOMCAT_SERVER_TASK: { + TomcatServerTask tomcatServerTask = (TomcatServerTask) theEObject; + T result = caseTomcatServerTask(tomcatServerTask); + if (result == null) + result = caseServer(tomcatServerTask); + if (result == null) + result = caseSetupTask(tomcatServerTask); + if (result == null) + result = caseModelElement(tomcatServerTask); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case ServerPackage.WEBLOGIC_SERVER_TASK: { + WeblogicServerTask weblogicServerTask = (WeblogicServerTask) theEObject; + T result = caseWeblogicServerTask(weblogicServerTask); + if (result == null) + result = caseServer(weblogicServerTask); + if (result == null) + result = caseSetupTask(weblogicServerTask); + if (result == null) + result = caseModelElement(weblogicServerTask); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case ServerPackage.WEBSPHERE_SERVER_TASK: { + WebsphereServerTask websphereServerTask = (WebsphereServerTask) theEObject; + T result = caseWebsphereServerTask(websphereServerTask); + if (result == null) + result = caseServer(websphereServerTask); + if (result == null) + result = caseSetupTask(websphereServerTask); + if (result == null) + result = caseModelElement(websphereServerTask); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case ServerPackage.SERVER: { + Server server = (Server) theEObject; + T result = caseServer(server); + if (result == null) + result = caseSetupTask(server); + if (result == null) + result = caseModelElement(server); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); + } + } - /** - * Returns the result of interpreting the object as an instance of 'Tomcat Server Task'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Tomcat Server Task'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseTomcatServerTask(TomcatServerTask object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of 'Tomcat + * Server Task'. This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Tomcat + * Server Task'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTomcatServerTask(TomcatServerTask object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of 'Weblogic Server Task'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Weblogic Server Task'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseWeblogicServerTask(WeblogicServerTask object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of 'Weblogic + * Server Task'. This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Weblogic + * Server Task'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseWeblogicServerTask(WeblogicServerTask object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of 'Websphere Server Task'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Websphere Server Task'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseWebsphereServerTask(WebsphereServerTask object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of + * 'Websphere Server Task'. This implementation + * returns null; returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of + * 'Websphere Server Task'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseWebsphereServerTask(WebsphereServerTask object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of 'Server'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Server'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseServer(Server object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of + * 'Server'. This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of + * 'Server'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseServer(Server object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of 'Model Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Model Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseModelElement(ModelElement object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of 'Model + * Element'. This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of 'Model + * Element'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseModelElement(ModelElement object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of 'Task'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Task'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSetupTask(SetupTask object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of + * 'Task'. This implementation returns null; + * returning a non-null result will terminate the switch. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of + * 'Task'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseSetupTask(SetupTask object) { + return null; + } - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) - { - return null; - } + /** + * Returns the result of interpreting the object as an instance of + * 'EObject'. This implementation returns null; + * returning a non-null result will terminate the switch, but this is the last + * case anyway. + * + * @param object the target of the switch. + * @return the result of interpreting the object as an instance of + * 'EObject'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) + * @generated + */ + @Override + public T defaultCase(EObject object) { + return null; + } } // ServerSwitch diff --git a/installer.sh b/installer.sh index 211039b..d9f0895 100755 --- a/installer.sh +++ b/installer.sh @@ -3,7 +3,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [[ ! -d $HOME/opt/eclipse/installer ]]; then mkdir -p "$HOME/opt/eclipse/installer" - wget -O "$HOME/opt/eclipse/installer/installer.tar.gz" "https://www.eclipse.org/downloads/download.php?file=/oomph/products/eclipse-inst-linux64.tar.gz&mirror_id=1253" + wget -O "$HOME/opt/eclipse/installer/installer.tar.gz" "https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2022-09/R/eclipse-inst-jre-linux64.tar.gz" cd "$HOME/opt/eclipse/installer" tar xf installer.tar.gz fi