blob: a323cad78b2d9fdd349f4fa5d57f99c992b231bc [file] [log] [blame]
/**
* <copyright>
* </copyright>
*
* $Id: CustomLocatorAttributesImpl.java,v 1.2 2007/11/22 16:59:33 mgolubev Exp $
*/
package org.eclipse.uml2.diagram.codegen.gmfgenext.impl;
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;
import org.eclipse.uml2.diagram.codegen.gmfgenext.CustomLocatorAttributes;
import org.eclipse.uml2.diagram.codegen.gmfgenext.GMFGenExtPackage;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Custom Locator Attributes</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.uml2.diagram.codegen.gmfgenext.impl.CustomLocatorAttributesImpl#getCustomLocatorFQN <em>Custom Locator FQN</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class CustomLocatorAttributesImpl extends EObjectImpl implements CustomLocatorAttributes {
/**
* The default value of the '{@link #getCustomLocatorFQN() <em>Custom Locator FQN</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCustomLocatorFQN()
* @generated
* @ordered
*/
protected static final String CUSTOM_LOCATOR_FQN_EDEFAULT = null;
/**
* The cached value of the '{@link #getCustomLocatorFQN() <em>Custom Locator FQN</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCustomLocatorFQN()
* @generated
* @ordered
*/
protected String customLocatorFQN = CUSTOM_LOCATOR_FQN_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CustomLocatorAttributesImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected EClass eStaticClass() {
return GMFGenExtPackage.Literals.CUSTOM_LOCATOR_ATTRIBUTES;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String getCustomLocatorFQN() {
return customLocatorFQN;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCustomLocatorFQN(String newCustomLocatorFQN) {
String oldCustomLocatorFQN = customLocatorFQN;
customLocatorFQN = newCustomLocatorFQN;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, GMFGenExtPackage.CUSTOM_LOCATOR_ATTRIBUTES__CUSTOM_LOCATOR_FQN, oldCustomLocatorFQN, customLocatorFQN));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case GMFGenExtPackage.CUSTOM_LOCATOR_ATTRIBUTES__CUSTOM_LOCATOR_FQN:
return getCustomLocatorFQN();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case GMFGenExtPackage.CUSTOM_LOCATOR_ATTRIBUTES__CUSTOM_LOCATOR_FQN:
setCustomLocatorFQN((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case GMFGenExtPackage.CUSTOM_LOCATOR_ATTRIBUTES__CUSTOM_LOCATOR_FQN:
setCustomLocatorFQN(CUSTOM_LOCATOR_FQN_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case GMFGenExtPackage.CUSTOM_LOCATOR_ATTRIBUTES__CUSTOM_LOCATOR_FQN:
return CUSTOM_LOCATOR_FQN_EDEFAULT == null ? customLocatorFQN != null : !CUSTOM_LOCATOR_FQN_EDEFAULT.equals(customLocatorFQN);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (customLocatorFQN: ");
result.append(customLocatorFQN);
result.append(')');
return result.toString();
}
} //CustomLocatorAttributesImpl