You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ge...@apache.org on 2005/08/24 23:36:53 UTC
svn commit: r239937 [28/73] - in /geronimo/trunk/sandbox/eclipse-plugin:
org.apache.geronimo.core/src/org/apache/geronimo/core/internal/
org.apache.geronimo.core/src/org/apache/geronimo/core/operations/
org.apache.geronimo.deployment.model/src/org/apac...
Propchange: geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/NamingPackageImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: 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=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortCompletionTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortCompletionTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,230 +1,230 @@
-/**
- * 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 {
- /**
- * 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
+/**
+ * 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 {
+ /**
+ * 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:eol-style = native
Modified: 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=239937&r1=239936&r2=239937&view=diff
==============================================================================
--- geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortTypeImpl.java (original)
+++ geronimo/trunk/sandbox/eclipse-plugin/org.apache.geronimo.deployment.model/src/org/apache/geronimo/xml/ns/naming/impl/PortTypeImpl.java Wed Aug 24 14:34:34 2005
@@ -1,475 +1,475 @@
-/**
- * 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 {
- /**
- * 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
+/**
+ * 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 {
+ /**
+ * 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:eol-style = native