You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by da...@apache.org on 2005/08/16 21:47:05 UTC
svn commit: r233044 [23/33] - in /geronimo/trunk/sandbox/eclipse-plugin: ./
org.apache.geronimo.core/ org.apache.geronimo.core/META-INF/
org.apache.geronimo.core/serverdef/ org.apache.geronimo.core/src/
org.apache.geronimo.core/src/org/ org.apache.gero...
Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/NamingPackageImpl.java
------------------------------------------------------------------------------
svn:executable = *
Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortCompletionTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortCompletionTypeImpl.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortCompletionTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortCompletionTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,237 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.naming.impl;
+
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.naming.PortCompletionType;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Port Completion Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.PortCompletionTypeImpl#getBindingName <em>Binding Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class PortCompletionTypeImpl extends PortTypeImpl implements PortCompletionType {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The default value of the '{@link #getBindingName() <em>Binding Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBindingName()
+ * @generated
+ * @ordered
+ */
+ protected static final String BINDING_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getBindingName() <em>Binding Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getBindingName()
+ * @generated
+ * @ordered
+ */
+ protected String bindingName = BINDING_NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected PortCompletionTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return NamingPackage.eINSTANCE.getPortCompletionType();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getBindingName() {
+ return bindingName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setBindingName(String newBindingName) {
+ String oldBindingName = bindingName;
+ bindingName = newBindingName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.PORT_COMPLETION_TYPE__BINDING_NAME, oldBindingName, bindingName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.PORT_COMPLETION_TYPE__PORT_NAME:
+ return getPortName();
+ case NamingPackage.PORT_COMPLETION_TYPE__PROTOCOL:
+ return getProtocol();
+ case NamingPackage.PORT_COMPLETION_TYPE__HOST:
+ return getHost();
+ case NamingPackage.PORT_COMPLETION_TYPE__PORT:
+ return new Integer(getPort());
+ case NamingPackage.PORT_COMPLETION_TYPE__URI:
+ return getUri();
+ case NamingPackage.PORT_COMPLETION_TYPE__CREDENTIALS_NAME:
+ return getCredentialsName();
+ case NamingPackage.PORT_COMPLETION_TYPE__BINDING_NAME:
+ return getBindingName();
+ }
+ return eDynamicGet(eFeature, resolve);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eSet(EStructuralFeature eFeature, Object newValue) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.PORT_COMPLETION_TYPE__PORT_NAME:
+ setPortName((String)newValue);
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__PROTOCOL:
+ setProtocol((String)newValue);
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__HOST:
+ setHost((String)newValue);
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__PORT:
+ setPort(((Integer)newValue).intValue());
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__URI:
+ setUri((String)newValue);
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__CREDENTIALS_NAME:
+ setCredentialsName((String)newValue);
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__BINDING_NAME:
+ setBindingName((String)newValue);
+ return;
+ }
+ eDynamicSet(eFeature, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eUnset(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.PORT_COMPLETION_TYPE__PORT_NAME:
+ setPortName(PORT_NAME_EDEFAULT);
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__PROTOCOL:
+ setProtocol(PROTOCOL_EDEFAULT);
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__HOST:
+ setHost(HOST_EDEFAULT);
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__PORT:
+ unsetPort();
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__URI:
+ setUri(URI_EDEFAULT);
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__CREDENTIALS_NAME:
+ setCredentialsName(CREDENTIALS_NAME_EDEFAULT);
+ return;
+ case NamingPackage.PORT_COMPLETION_TYPE__BINDING_NAME:
+ setBindingName(BINDING_NAME_EDEFAULT);
+ return;
+ }
+ eDynamicUnset(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean eIsSet(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.PORT_COMPLETION_TYPE__PORT_NAME:
+ return PORT_NAME_EDEFAULT == null ? portName != null : !PORT_NAME_EDEFAULT.equals(portName);
+ case NamingPackage.PORT_COMPLETION_TYPE__PROTOCOL:
+ return PROTOCOL_EDEFAULT == null ? protocol != null : !PROTOCOL_EDEFAULT.equals(protocol);
+ case NamingPackage.PORT_COMPLETION_TYPE__HOST:
+ return HOST_EDEFAULT == null ? host != null : !HOST_EDEFAULT.equals(host);
+ case NamingPackage.PORT_COMPLETION_TYPE__PORT:
+ return isSetPort();
+ case NamingPackage.PORT_COMPLETION_TYPE__URI:
+ return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
+ case NamingPackage.PORT_COMPLETION_TYPE__CREDENTIALS_NAME:
+ return CREDENTIALS_NAME_EDEFAULT == null ? credentialsName != null : !CREDENTIALS_NAME_EDEFAULT.equals(credentialsName);
+ case NamingPackage.PORT_COMPLETION_TYPE__BINDING_NAME:
+ return BINDING_NAME_EDEFAULT == null ? bindingName != null : !BINDING_NAME_EDEFAULT.equals(bindingName);
+ }
+ return eDynamicIsSet(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (bindingName: ");
+ result.append(bindingName);
+ result.append(')');
+ return result.toString();
+ }
+
+} //PortCompletionTypeImpl
Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortCompletionTypeImpl.java
------------------------------------------------------------------------------
svn:executable = *
Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortTypeImpl.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,482 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.naming.impl;
+
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.naming.PortType;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Port Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.PortTypeImpl#getPortName <em>Port Name</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.PortTypeImpl#getProtocol <em>Protocol</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.PortTypeImpl#getHost <em>Host</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.PortTypeImpl#getPort <em>Port</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.PortTypeImpl#getUri <em>Uri</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.PortTypeImpl#getCredentialsName <em>Credentials Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class PortTypeImpl extends EObjectImpl implements PortType {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The default value of the '{@link #getPortName() <em>Port Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPortName()
+ * @generated
+ * @ordered
+ */
+ protected static final String PORT_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getPortName() <em>Port Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPortName()
+ * @generated
+ * @ordered
+ */
+ protected String portName = PORT_NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getProtocol() <em>Protocol</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProtocol()
+ * @generated
+ * @ordered
+ */
+ protected static final String PROTOCOL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getProtocol() <em>Protocol</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getProtocol()
+ * @generated
+ * @ordered
+ */
+ protected String protocol = PROTOCOL_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getHost() <em>Host</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getHost()
+ * @generated
+ * @ordered
+ */
+ protected static final String HOST_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getHost() <em>Host</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getHost()
+ * @generated
+ * @ordered
+ */
+ protected String host = HOST_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getPort() <em>Port</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort()
+ * @generated
+ * @ordered
+ */
+ protected static final int PORT_EDEFAULT = 0;
+
+ /**
+ * The cached value of the '{@link #getPort() <em>Port</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPort()
+ * @generated
+ * @ordered
+ */
+ protected int port = PORT_EDEFAULT;
+
+ /**
+ * This is true if the Port attribute has been set.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ protected boolean portESet = false;
+
+ /**
+ * The default value of the '{@link #getUri() <em>Uri</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUri()
+ * @generated
+ * @ordered
+ */
+ protected static final String URI_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUri() <em>Uri</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUri()
+ * @generated
+ * @ordered
+ */
+ protected String uri = URI_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getCredentialsName() <em>Credentials Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCredentialsName()
+ * @generated
+ * @ordered
+ */
+ protected static final String CREDENTIALS_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getCredentialsName() <em>Credentials Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getCredentialsName()
+ * @generated
+ * @ordered
+ */
+ protected String credentialsName = CREDENTIALS_NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected PortTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return NamingPackage.eINSTANCE.getPortType();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getPortName() {
+ return portName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPortName(String newPortName) {
+ String oldPortName = portName;
+ portName = newPortName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.PORT_TYPE__PORT_NAME, oldPortName, portName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getProtocol() {
+ return protocol;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setProtocol(String newProtocol) {
+ String oldProtocol = protocol;
+ protocol = newProtocol;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.PORT_TYPE__PROTOCOL, oldProtocol, protocol));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getHost() {
+ return host;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setHost(String newHost) {
+ String oldHost = host;
+ host = newHost;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.PORT_TYPE__HOST, oldHost, host));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public int getPort() {
+ return port;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPort(int newPort) {
+ int oldPort = port;
+ port = newPort;
+ boolean oldPortESet = portESet;
+ portESet = true;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.PORT_TYPE__PORT, oldPort, port, !oldPortESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void unsetPort() {
+ int oldPort = port;
+ boolean oldPortESet = portESet;
+ port = PORT_EDEFAULT;
+ portESet = false;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.UNSET, NamingPackage.PORT_TYPE__PORT, oldPort, PORT_EDEFAULT, oldPortESet));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isSetPort() {
+ return portESet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getUri() {
+ return uri;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUri(String newUri) {
+ String oldUri = uri;
+ uri = newUri;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.PORT_TYPE__URI, oldUri, uri));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getCredentialsName() {
+ return credentialsName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setCredentialsName(String newCredentialsName) {
+ String oldCredentialsName = credentialsName;
+ credentialsName = newCredentialsName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.PORT_TYPE__CREDENTIALS_NAME, oldCredentialsName, credentialsName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.PORT_TYPE__PORT_NAME:
+ return getPortName();
+ case NamingPackage.PORT_TYPE__PROTOCOL:
+ return getProtocol();
+ case NamingPackage.PORT_TYPE__HOST:
+ return getHost();
+ case NamingPackage.PORT_TYPE__PORT:
+ return new Integer(getPort());
+ case NamingPackage.PORT_TYPE__URI:
+ return getUri();
+ case NamingPackage.PORT_TYPE__CREDENTIALS_NAME:
+ return getCredentialsName();
+ }
+ return eDynamicGet(eFeature, resolve);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eSet(EStructuralFeature eFeature, Object newValue) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.PORT_TYPE__PORT_NAME:
+ setPortName((String)newValue);
+ return;
+ case NamingPackage.PORT_TYPE__PROTOCOL:
+ setProtocol((String)newValue);
+ return;
+ case NamingPackage.PORT_TYPE__HOST:
+ setHost((String)newValue);
+ return;
+ case NamingPackage.PORT_TYPE__PORT:
+ setPort(((Integer)newValue).intValue());
+ return;
+ case NamingPackage.PORT_TYPE__URI:
+ setUri((String)newValue);
+ return;
+ case NamingPackage.PORT_TYPE__CREDENTIALS_NAME:
+ setCredentialsName((String)newValue);
+ return;
+ }
+ eDynamicSet(eFeature, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eUnset(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.PORT_TYPE__PORT_NAME:
+ setPortName(PORT_NAME_EDEFAULT);
+ return;
+ case NamingPackage.PORT_TYPE__PROTOCOL:
+ setProtocol(PROTOCOL_EDEFAULT);
+ return;
+ case NamingPackage.PORT_TYPE__HOST:
+ setHost(HOST_EDEFAULT);
+ return;
+ case NamingPackage.PORT_TYPE__PORT:
+ unsetPort();
+ return;
+ case NamingPackage.PORT_TYPE__URI:
+ setUri(URI_EDEFAULT);
+ return;
+ case NamingPackage.PORT_TYPE__CREDENTIALS_NAME:
+ setCredentialsName(CREDENTIALS_NAME_EDEFAULT);
+ return;
+ }
+ eDynamicUnset(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean eIsSet(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.PORT_TYPE__PORT_NAME:
+ return PORT_NAME_EDEFAULT == null ? portName != null : !PORT_NAME_EDEFAULT.equals(portName);
+ case NamingPackage.PORT_TYPE__PROTOCOL:
+ return PROTOCOL_EDEFAULT == null ? protocol != null : !PROTOCOL_EDEFAULT.equals(protocol);
+ case NamingPackage.PORT_TYPE__HOST:
+ return HOST_EDEFAULT == null ? host != null : !HOST_EDEFAULT.equals(host);
+ case NamingPackage.PORT_TYPE__PORT:
+ return isSetPort();
+ case NamingPackage.PORT_TYPE__URI:
+ return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri);
+ case NamingPackage.PORT_TYPE__CREDENTIALS_NAME:
+ return CREDENTIALS_NAME_EDEFAULT == null ? credentialsName != null : !CREDENTIALS_NAME_EDEFAULT.equals(credentialsName);
+ }
+ return eDynamicIsSet(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (portName: ");
+ result.append(portName);
+ result.append(", protocol: ");
+ result.append(protocol);
+ result.append(", host: ");
+ result.append(host);
+ result.append(", port: ");
+ if (portESet) result.append(port); else result.append("<unset>");
+ result.append(", uri: ");
+ result.append(uri);
+ result.append(", credentialsName: ");
+ result.append(credentialsName);
+ result.append(')');
+ return result.toString();
+ }
+
+} //PortTypeImpl
Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortTypeImpl.java
------------------------------------------------------------------------------
svn:executable = *
Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceEnvRefTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceEnvRefTypeImpl.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceEnvRefTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceEnvRefTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,610 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.naming.impl;
+
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.naming.ResourceEnvRefType;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Resource Env Ref Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceEnvRefTypeImpl#getRefName <em>Ref Name</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceEnvRefTypeImpl#getDomain <em>Domain</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceEnvRefTypeImpl#getServer <em>Server</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceEnvRefTypeImpl#getApplication <em>Application</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceEnvRefTypeImpl#getModule <em>Module</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceEnvRefTypeImpl#getType <em>Type</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceEnvRefTypeImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceEnvRefTypeImpl#getMessageDestinationLink <em>Message Destination Link</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceEnvRefTypeImpl#getTargetName <em>Target Name</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ResourceEnvRefTypeImpl extends EObjectImpl implements ResourceEnvRefType {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The default value of the '{@link #getRefName() <em>Ref Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRefName()
+ * @generated
+ * @ordered
+ */
+ protected static final String REF_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getRefName() <em>Ref Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getRefName()
+ * @generated
+ * @ordered
+ */
+ protected String refName = REF_NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getDomain() <em>Domain</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDomain()
+ * @generated
+ * @ordered
+ */
+ protected static final String DOMAIN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDomain() <em>Domain</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDomain()
+ * @generated
+ * @ordered
+ */
+ protected String domain = DOMAIN_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getServer() <em>Server</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getServer()
+ * @generated
+ * @ordered
+ */
+ protected static final String SERVER_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getServer() <em>Server</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getServer()
+ * @generated
+ * @ordered
+ */
+ protected String server = SERVER_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getApplication() <em>Application</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getApplication()
+ * @generated
+ * @ordered
+ */
+ protected static final String APPLICATION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getApplication() <em>Application</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getApplication()
+ * @generated
+ * @ordered
+ */
+ protected String application = APPLICATION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getModule() <em>Module</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getModule()
+ * @generated
+ * @ordered
+ */
+ protected static final String MODULE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getModule() <em>Module</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getModule()
+ * @generated
+ * @ordered
+ */
+ protected String module = MODULE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getType() <em>Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected String type = TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getMessageDestinationLink() <em>Message Destination Link</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMessageDestinationLink()
+ * @generated
+ * @ordered
+ */
+ protected static final String MESSAGE_DESTINATION_LINK_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getMessageDestinationLink() <em>Message Destination Link</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getMessageDestinationLink()
+ * @generated
+ * @ordered
+ */
+ protected String messageDestinationLink = MESSAGE_DESTINATION_LINK_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTargetName() <em>Target Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTargetName()
+ * @generated
+ * @ordered
+ */
+ protected static final String TARGET_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTargetName() <em>Target Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTargetName()
+ * @generated
+ * @ordered
+ */
+ protected String targetName = TARGET_NAME_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ResourceEnvRefTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return NamingPackage.eINSTANCE.getResourceEnvRefType();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getRefName() {
+ return refName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setRefName(String newRefName) {
+ String oldRefName = refName;
+ refName = newRefName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_ENV_REF_TYPE__REF_NAME, oldRefName, refName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDomain() {
+ return domain;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDomain(String newDomain) {
+ String oldDomain = domain;
+ domain = newDomain;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_ENV_REF_TYPE__DOMAIN, oldDomain, domain));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getServer() {
+ return server;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setServer(String newServer) {
+ String oldServer = server;
+ server = newServer;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_ENV_REF_TYPE__SERVER, oldServer, server));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getApplication() {
+ return application;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setApplication(String newApplication) {
+ String oldApplication = application;
+ application = newApplication;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_ENV_REF_TYPE__APPLICATION, oldApplication, application));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getModule() {
+ return module;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setModule(String newModule) {
+ String oldModule = module;
+ module = newModule;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_ENV_REF_TYPE__MODULE, oldModule, module));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(String newType) {
+ String oldType = type;
+ type = newType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_ENV_REF_TYPE__TYPE, oldType, type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_ENV_REF_TYPE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getMessageDestinationLink() {
+ return messageDestinationLink;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setMessageDestinationLink(String newMessageDestinationLink) {
+ String oldMessageDestinationLink = messageDestinationLink;
+ messageDestinationLink = newMessageDestinationLink;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_ENV_REF_TYPE__MESSAGE_DESTINATION_LINK, oldMessageDestinationLink, messageDestinationLink));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTargetName() {
+ return targetName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTargetName(String newTargetName) {
+ String oldTargetName = targetName;
+ targetName = newTargetName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_ENV_REF_TYPE__TARGET_NAME, oldTargetName, targetName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__REF_NAME:
+ return getRefName();
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__DOMAIN:
+ return getDomain();
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__SERVER:
+ return getServer();
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__APPLICATION:
+ return getApplication();
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__MODULE:
+ return getModule();
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__TYPE:
+ return getType();
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__NAME:
+ return getName();
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__MESSAGE_DESTINATION_LINK:
+ return getMessageDestinationLink();
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__TARGET_NAME:
+ return getTargetName();
+ }
+ return eDynamicGet(eFeature, resolve);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eSet(EStructuralFeature eFeature, Object newValue) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__REF_NAME:
+ setRefName((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__DOMAIN:
+ setDomain((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__SERVER:
+ setServer((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__APPLICATION:
+ setApplication((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__MODULE:
+ setModule((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__TYPE:
+ setType((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__NAME:
+ setName((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__MESSAGE_DESTINATION_LINK:
+ setMessageDestinationLink((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__TARGET_NAME:
+ setTargetName((String)newValue);
+ return;
+ }
+ eDynamicSet(eFeature, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eUnset(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__REF_NAME:
+ setRefName(REF_NAME_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__DOMAIN:
+ setDomain(DOMAIN_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__SERVER:
+ setServer(SERVER_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__APPLICATION:
+ setApplication(APPLICATION_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__MODULE:
+ setModule(MODULE_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__TYPE:
+ setType(TYPE_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__MESSAGE_DESTINATION_LINK:
+ setMessageDestinationLink(MESSAGE_DESTINATION_LINK_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__TARGET_NAME:
+ setTargetName(TARGET_NAME_EDEFAULT);
+ return;
+ }
+ eDynamicUnset(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean eIsSet(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__REF_NAME:
+ return REF_NAME_EDEFAULT == null ? refName != null : !REF_NAME_EDEFAULT.equals(refName);
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__DOMAIN:
+ return DOMAIN_EDEFAULT == null ? domain != null : !DOMAIN_EDEFAULT.equals(domain);
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__SERVER:
+ return SERVER_EDEFAULT == null ? server != null : !SERVER_EDEFAULT.equals(server);
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__APPLICATION:
+ return APPLICATION_EDEFAULT == null ? application != null : !APPLICATION_EDEFAULT.equals(application);
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__MODULE:
+ return MODULE_EDEFAULT == null ? module != null : !MODULE_EDEFAULT.equals(module);
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__TYPE:
+ return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__MESSAGE_DESTINATION_LINK:
+ return MESSAGE_DESTINATION_LINK_EDEFAULT == null ? messageDestinationLink != null : !MESSAGE_DESTINATION_LINK_EDEFAULT.equals(messageDestinationLink);
+ case NamingPackage.RESOURCE_ENV_REF_TYPE__TARGET_NAME:
+ return TARGET_NAME_EDEFAULT == null ? targetName != null : !TARGET_NAME_EDEFAULT.equals(targetName);
+ }
+ return eDynamicIsSet(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (refName: ");
+ result.append(refName);
+ result.append(", domain: ");
+ result.append(domain);
+ result.append(", server: ");
+ result.append(server);
+ result.append(", application: ");
+ result.append(application);
+ result.append(", module: ");
+ result.append(module);
+ result.append(", type: ");
+ result.append(type);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", messageDestinationLink: ");
+ result.append(messageDestinationLink);
+ result.append(", targetName: ");
+ result.append(targetName);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ResourceEnvRefTypeImpl
Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceEnvRefTypeImpl.java
------------------------------------------------------------------------------
svn:executable = *
Added: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceLocatorTypeImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceLocatorTypeImpl.java?rev=233044&view=auto
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceLocatorTypeImpl.java (added)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceLocatorTypeImpl.java Tue Aug 16 12:46:27 2005
@@ -0,0 +1,610 @@
+/**
+ * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.geronimo.xml.ns.naming.impl;
+
+import org.apache.geronimo.xml.ns.naming.NamingPackage;
+import org.apache.geronimo.xml.ns.naming.ResourceLocatorType;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Resource Locator Type</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceLocatorTypeImpl#getDomain <em>Domain</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceLocatorTypeImpl#getServer <em>Server</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceLocatorTypeImpl#getApplication <em>Application</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceLocatorTypeImpl#getModule <em>Module</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceLocatorTypeImpl#getType <em>Type</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceLocatorTypeImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceLocatorTypeImpl#getResourceLink <em>Resource Link</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceLocatorTypeImpl#getTargetName <em>Target Name</em>}</li>
+ * <li>{@link org.apache.geronimo.xml.ns.naming.impl.ResourceLocatorTypeImpl#getUrl <em>Url</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class ResourceLocatorTypeImpl extends EObjectImpl implements ResourceLocatorType {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final String copyright = "Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.";
+
+ /**
+ * The default value of the '{@link #getDomain() <em>Domain</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDomain()
+ * @generated
+ * @ordered
+ */
+ protected static final String DOMAIN_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getDomain() <em>Domain</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getDomain()
+ * @generated
+ * @ordered
+ */
+ protected String domain = DOMAIN_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getServer() <em>Server</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getServer()
+ * @generated
+ * @ordered
+ */
+ protected static final String SERVER_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getServer() <em>Server</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getServer()
+ * @generated
+ * @ordered
+ */
+ protected String server = SERVER_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getApplication() <em>Application</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getApplication()
+ * @generated
+ * @ordered
+ */
+ protected static final String APPLICATION_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getApplication() <em>Application</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getApplication()
+ * @generated
+ * @ordered
+ */
+ protected String application = APPLICATION_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getModule() <em>Module</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getModule()
+ * @generated
+ * @ordered
+ */
+ protected static final String MODULE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getModule() <em>Module</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getModule()
+ * @generated
+ * @ordered
+ */
+ protected String module = MODULE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getType() <em>Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected static final String TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getType()
+ * @generated
+ * @ordered
+ */
+ protected String type = TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected static final String NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getName() <em>Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getName()
+ * @generated
+ * @ordered
+ */
+ protected String name = NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getResourceLink() <em>Resource Link</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResourceLink()
+ * @generated
+ * @ordered
+ */
+ protected static final String RESOURCE_LINK_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getResourceLink() <em>Resource Link</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getResourceLink()
+ * @generated
+ * @ordered
+ */
+ protected String resourceLink = RESOURCE_LINK_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getTargetName() <em>Target Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTargetName()
+ * @generated
+ * @ordered
+ */
+ protected static final String TARGET_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getTargetName() <em>Target Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getTargetName()
+ * @generated
+ * @ordered
+ */
+ protected String targetName = TARGET_NAME_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #getUrl() <em>Url</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected static final String URL_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getUrl() <em>Url</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getUrl()
+ * @generated
+ * @ordered
+ */
+ protected String url = URL_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ResourceLocatorTypeImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EClass eStaticClass() {
+ return NamingPackage.eINSTANCE.getResourceLocatorType();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getDomain() {
+ return domain;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setDomain(String newDomain) {
+ String oldDomain = domain;
+ domain = newDomain;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_LOCATOR_TYPE__DOMAIN, oldDomain, domain));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getServer() {
+ return server;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setServer(String newServer) {
+ String oldServer = server;
+ server = newServer;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_LOCATOR_TYPE__SERVER, oldServer, server));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getApplication() {
+ return application;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setApplication(String newApplication) {
+ String oldApplication = application;
+ application = newApplication;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_LOCATOR_TYPE__APPLICATION, oldApplication, application));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getModule() {
+ return module;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setModule(String newModule) {
+ String oldModule = module;
+ module = newModule;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_LOCATOR_TYPE__MODULE, oldModule, module));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getType() {
+ return type;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setType(String newType) {
+ String oldType = type;
+ type = newType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_LOCATOR_TYPE__TYPE, oldType, type));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setName(String newName) {
+ String oldName = name;
+ name = newName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_LOCATOR_TYPE__NAME, oldName, name));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getResourceLink() {
+ return resourceLink;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setResourceLink(String newResourceLink) {
+ String oldResourceLink = resourceLink;
+ resourceLink = newResourceLink;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_LOCATOR_TYPE__RESOURCE_LINK, oldResourceLink, resourceLink));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getTargetName() {
+ return targetName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setTargetName(String newTargetName) {
+ String oldTargetName = targetName;
+ targetName = newTargetName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_LOCATOR_TYPE__TARGET_NAME, oldTargetName, targetName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getUrl() {
+ return url;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setUrl(String newUrl) {
+ String oldUrl = url;
+ url = newUrl;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, NamingPackage.RESOURCE_LOCATOR_TYPE__URL, oldUrl, url));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Object eGet(EStructuralFeature eFeature, boolean resolve) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__DOMAIN:
+ return getDomain();
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__SERVER:
+ return getServer();
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__APPLICATION:
+ return getApplication();
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__MODULE:
+ return getModule();
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__TYPE:
+ return getType();
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__NAME:
+ return getName();
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__RESOURCE_LINK:
+ return getResourceLink();
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__TARGET_NAME:
+ return getTargetName();
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__URL:
+ return getUrl();
+ }
+ return eDynamicGet(eFeature, resolve);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eSet(EStructuralFeature eFeature, Object newValue) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__DOMAIN:
+ setDomain((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__SERVER:
+ setServer((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__APPLICATION:
+ setApplication((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__MODULE:
+ setModule((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__TYPE:
+ setType((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__NAME:
+ setName((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__RESOURCE_LINK:
+ setResourceLink((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__TARGET_NAME:
+ setTargetName((String)newValue);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__URL:
+ setUrl((String)newValue);
+ return;
+ }
+ eDynamicSet(eFeature, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void eUnset(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__DOMAIN:
+ setDomain(DOMAIN_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__SERVER:
+ setServer(SERVER_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__APPLICATION:
+ setApplication(APPLICATION_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__MODULE:
+ setModule(MODULE_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__TYPE:
+ setType(TYPE_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__NAME:
+ setName(NAME_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__RESOURCE_LINK:
+ setResourceLink(RESOURCE_LINK_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__TARGET_NAME:
+ setTargetName(TARGET_NAME_EDEFAULT);
+ return;
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__URL:
+ setUrl(URL_EDEFAULT);
+ return;
+ }
+ eDynamicUnset(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean eIsSet(EStructuralFeature eFeature) {
+ switch (eDerivedStructuralFeatureID(eFeature)) {
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__DOMAIN:
+ return DOMAIN_EDEFAULT == null ? domain != null : !DOMAIN_EDEFAULT.equals(domain);
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__SERVER:
+ return SERVER_EDEFAULT == null ? server != null : !SERVER_EDEFAULT.equals(server);
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__APPLICATION:
+ return APPLICATION_EDEFAULT == null ? application != null : !APPLICATION_EDEFAULT.equals(application);
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__MODULE:
+ return MODULE_EDEFAULT == null ? module != null : !MODULE_EDEFAULT.equals(module);
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__TYPE:
+ return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__NAME:
+ return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__RESOURCE_LINK:
+ return RESOURCE_LINK_EDEFAULT == null ? resourceLink != null : !RESOURCE_LINK_EDEFAULT.equals(resourceLink);
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__TARGET_NAME:
+ return TARGET_NAME_EDEFAULT == null ? targetName != null : !TARGET_NAME_EDEFAULT.equals(targetName);
+ case NamingPackage.RESOURCE_LOCATOR_TYPE__URL:
+ return URL_EDEFAULT == null ? url != null : !URL_EDEFAULT.equals(url);
+ }
+ return eDynamicIsSet(eFeature);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (domain: ");
+ result.append(domain);
+ result.append(", server: ");
+ result.append(server);
+ result.append(", application: ");
+ result.append(application);
+ result.append(", module: ");
+ result.append(module);
+ result.append(", type: ");
+ result.append(type);
+ result.append(", name: ");
+ result.append(name);
+ result.append(", resourceLink: ");
+ result.append(resourceLink);
+ result.append(", targetName: ");
+ result.append(targetName);
+ result.append(", url: ");
+ result.append(url);
+ result.append(')');
+ return result.toString();
+ }
+
+} //ResourceLocatorTypeImpl
Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/ResourceLocatorTypeImpl.java
------------------------------------------------------------------------------
svn:executable = *