All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.bpmn2.impl.ImportImpl Maven / Gradle / Ivy

There is a newer version: 7.54.0.Final
Show newest version
/**
 * 
 * 
 * Copyright (c) 2010 SAP AG.
 * 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:
 *    Reiner Hille-Doering (SAP AG) - initial API and implementation and/or initial documentation
 * 
 * 
 */
package org.eclipse.bpmn2.impl;

import com.google.gwt.user.client.rpc.GwtTransient;

import org.eclipse.bpmn2.Bpmn2Package;
import org.eclipse.bpmn2.Import;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;

/**
 * 
 * An implementation of the model object 'Import'.
 * 
 * 

* The following features are implemented: *

*
    *
  • {@link org.eclipse.bpmn2.impl.ImportImpl#getImportType Import Type}
  • *
  • {@link org.eclipse.bpmn2.impl.ImportImpl#getLocation Location}
  • *
  • {@link org.eclipse.bpmn2.impl.ImportImpl#getNamespace Namespace}
  • *
* * @generated */ public class ImportImpl extends EObjectImpl implements Import { /** * The default value of the '{@link #getImportType() Import Type}' attribute. * * * @see #getImportType() * @generated * @ordered */ protected static final String IMPORT_TYPE_EDEFAULT = null; /** * The cached value of the '{@link #getImportType() Import Type}' attribute. * * * @see #getImportType() * @generated * @ordered */ @GwtTransient protected String importType = IMPORT_TYPE_EDEFAULT; /** * The default value of the '{@link #getLocation() Location}' attribute. * * * @see #getLocation() * @generated * @ordered */ protected static final String LOCATION_EDEFAULT = null; /** * The cached value of the '{@link #getLocation() Location}' attribute. * * * @see #getLocation() * @generated * @ordered */ @GwtTransient protected String location = LOCATION_EDEFAULT; /** * The default value of the '{@link #getNamespace() Namespace}' attribute. * * * @see #getNamespace() * @generated * @ordered */ protected static final String NAMESPACE_EDEFAULT = null; /** * The cached value of the '{@link #getNamespace() Namespace}' attribute. * * * @see #getNamespace() * @generated * @ordered */ @GwtTransient protected String namespace = NAMESPACE_EDEFAULT; /** * * * @generated */ protected ImportImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return Bpmn2Package.Literals.IMPORT; } /** * * * @generated */ @Override public String getImportType() { return importType; } /** * * * @generated */ @Override public void setImportType(String newImportType) { String oldImportType = importType; importType = newImportType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.IMPORT__IMPORT_TYPE, oldImportType, importType)); } /** * * * @generated */ @Override public String getLocation() { return location; } /** * * * @generated */ @Override public void setLocation(String newLocation) { String oldLocation = location; location = newLocation; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.IMPORT__LOCATION, oldLocation, location)); } /** * * * @generated */ @Override public String getNamespace() { return namespace; } /** * * * @generated */ @Override public void setNamespace(String newNamespace) { String oldNamespace = namespace; namespace = newNamespace; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.IMPORT__NAMESPACE, oldNamespace, namespace)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Bpmn2Package.IMPORT__IMPORT_TYPE: return getImportType(); case Bpmn2Package.IMPORT__LOCATION: return getLocation(); case Bpmn2Package.IMPORT__NAMESPACE: return getNamespace(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case Bpmn2Package.IMPORT__IMPORT_TYPE: setImportType((String) newValue); return; case Bpmn2Package.IMPORT__LOCATION: setLocation((String) newValue); return; case Bpmn2Package.IMPORT__NAMESPACE: setNamespace((String) newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case Bpmn2Package.IMPORT__IMPORT_TYPE: setImportType(IMPORT_TYPE_EDEFAULT); return; case Bpmn2Package.IMPORT__LOCATION: setLocation(LOCATION_EDEFAULT); return; case Bpmn2Package.IMPORT__NAMESPACE: setNamespace(NAMESPACE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case Bpmn2Package.IMPORT__IMPORT_TYPE: return IMPORT_TYPE_EDEFAULT == null ? importType != null : !IMPORT_TYPE_EDEFAULT.equals(importType); case Bpmn2Package.IMPORT__LOCATION: return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); case Bpmn2Package.IMPORT__NAMESPACE: return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuilder result = new StringBuilder(super.toString()); result.append(" (importType: "); result.append(importType); result.append(", location: "); result.append(location); result.append(", namespace: "); result.append(namespace); result.append(')'); return result.toString(); } } //ImportImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy