Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java')
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java288
1 files changed, 0 insertions, 288 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java
deleted file mode 100644
index 92934d0f5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/internal/impl/SecurityRoleRefImpl.java
+++ /dev/null
@@ -1,288 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-package org.eclipse.jst.j2ee.common.internal.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.common.notify.NotificationChain;
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.InternalEObject;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.emf.ecore.impl.EObjectImpl;
-import org.eclipse.emf.ecore.util.EObjectContainmentEList;
-import org.eclipse.emf.ecore.util.InternalEList;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.SecurityRoleRef;
-
-
-/**
- * @generated
- */
-public class SecurityRoleRefImpl extends EObjectImpl implements SecurityRoleRef{
-
- /**
- * 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;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String name = NAME_EDEFAULT;
- /**
- * The default value of the '{@link #getDescription() <em>Description</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescription()
- * @generated
- * @ordered
- */
- protected static final String DESCRIPTION_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String description = DESCRIPTION_EDEFAULT;
- /**
- * The default value of the '{@link #getLink() <em>Link</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getLink()
- * @generated
- * @ordered
- */
- protected static final String LINK_EDEFAULT = null;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- protected String link = LINK_EDEFAULT;
- /**
- * The cached value of the '{@link #getDescriptions() <em>Descriptions</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getDescriptions()
- * @generated
- * @ordered
- */
- protected EList descriptions = null;
-
- public SecurityRoleRefImpl() {
- super();
- }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected EClass eStaticClass() {
- return CommonPackage.eINSTANCE.getSecurityRoleRef();
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- */
- public String getName() {
- return name;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setName(String newName) {
- String oldName = name;
- name = newName;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE_REF__NAME, oldName, name));
- }
-
- public void setDescription(String newDescription) {
- String oldDescription = description;
- description = newDescription;
- if (getDescriptions() != null && !getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- d.setValue(newDescription);
- }
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE_REF__DESCRIPTION, oldDescription, description));
- }
-
- public String getDescription() {
- if (getDescriptions() != null && !getDescriptions().isEmpty()) {
- Description d = (Description) getDescriptions().get(0);
- if (d != null)
- description = d.getValue();
- }
- return description;
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * The role-link element is used to link a security role reference to a defined security role. The role-link element must contain the name of one of the security roles defined in the security-role elements.
- */
- public String getLink() {
- return link;
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void setLink(String newLink) {
- String oldLink = link;
- link = newLink;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.SECURITY_ROLE_REF__LINK, oldLink, link));
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList getDescriptions() {
- if (descriptions == null) {
- descriptions = new EObjectContainmentEList(Description.class, this, CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS);
- }
- return descriptions;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) {
- if (featureID >= 0) {
- switch (eDerivedStructuralFeatureID(featureID, baseClass)) {
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS:
- return ((InternalEList)getDescriptions()).basicRemove(otherEnd, msgs);
- default:
- return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, featureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object eGet(EStructuralFeature eFeature, boolean resolve) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case CommonPackage.SECURITY_ROLE_REF__NAME:
- return getName();
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION:
- return getDescription();
- case CommonPackage.SECURITY_ROLE_REF__LINK:
- return getLink();
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS:
- return getDescriptions();
- }
- return eDynamicGet(eFeature, resolve);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public boolean eIsSet(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case CommonPackage.SECURITY_ROLE_REF__NAME:
- return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION:
- return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description);
- case CommonPackage.SECURITY_ROLE_REF__LINK:
- return LINK_EDEFAULT == null ? link != null : !LINK_EDEFAULT.equals(link);
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS:
- return descriptions != null && !descriptions.isEmpty();
- }
- return eDynamicIsSet(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eSet(EStructuralFeature eFeature, Object newValue) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case CommonPackage.SECURITY_ROLE_REF__NAME:
- setName((String)newValue);
- return;
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION:
- setDescription((String)newValue);
- return;
- case CommonPackage.SECURITY_ROLE_REF__LINK:
- setLink((String)newValue);
- return;
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS:
- getDescriptions().clear();
- getDescriptions().addAll((Collection)newValue);
- return;
- }
- eDynamicSet(eFeature, newValue);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public void eUnset(EStructuralFeature eFeature) {
- switch (eDerivedStructuralFeatureID(eFeature)) {
- case CommonPackage.SECURITY_ROLE_REF__NAME:
- setName(NAME_EDEFAULT);
- return;
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTION:
- setDescription(DESCRIPTION_EDEFAULT);
- return;
- case CommonPackage.SECURITY_ROLE_REF__LINK:
- setLink(LINK_EDEFAULT);
- return;
- case CommonPackage.SECURITY_ROLE_REF__DESCRIPTIONS:
- getDescriptions().clear();
- return;
- }
- eDynamicUnset(eFeature);
- }
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- public String toString() {
- if (eIsProxy()) return super.toString();
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (name: ");
- result.append(name);
- result.append(", description: ");
- result.append(description);
- result.append(", link: ");
- result.append(link);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-

Back to the top