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