org.openxma.dsl.dom.model.impl.IElementWithNoNameImpl Maven / Gradle / Ivy
/**
*
*
*
* $Id: IElementWithNoNameImpl.java 10224 2013-01-04 15:48:48Z dschwarz $
*/
package org.openxma.dsl.dom.model.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.openxma.dsl.core.model.impl.ReferenceableByXmadslVariableImpl;
import org.openxma.dsl.dom.DomPackage;
import org.openxma.dsl.dom.model.IElementWithNoName;
/**
*
* An implementation of the model object 'IElement With No Name'.
*
*
* The following features are implemented:
*
* - {@link org.openxma.dsl.dom.model.impl.IElementWithNoNameImpl#getNoName No Name}
*
*
*
* @generated
*/
public class IElementWithNoNameImpl extends ReferenceableByXmadslVariableImpl implements IElementWithNoName {
/**
* The default value of the '{@link #getNoName() No Name}' attribute.
*
*
* @see #getNoName()
* @generated
* @ordered
*/
protected static final String NO_NAME_EDEFAULT = null;
/**
* The cached value of the '{@link #getNoName() No Name}' attribute.
*
*
* @see #getNoName()
* @generated
* @ordered
*/
protected String noName = NO_NAME_EDEFAULT;
/**
*
*
* @generated
*/
protected IElementWithNoNameImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return DomPackage.Literals.IELEMENT_WITH_NO_NAME;
}
/**
*
*
* @generated
*/
public String getNoName() {
return noName;
}
/**
*
*
* @generated
*/
public void setNoName(String newNoName) {
String oldNoName = noName;
noName = newNoName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, DomPackage.IELEMENT_WITH_NO_NAME__NO_NAME, oldNoName, noName));
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case DomPackage.IELEMENT_WITH_NO_NAME__NO_NAME:
return getNoName();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case DomPackage.IELEMENT_WITH_NO_NAME__NO_NAME:
setNoName((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case DomPackage.IELEMENT_WITH_NO_NAME__NO_NAME:
setNoName(NO_NAME_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case DomPackage.IELEMENT_WITH_NO_NAME__NO_NAME:
return NO_NAME_EDEFAULT == null ? noName != null : !NO_NAME_EDEFAULT.equals(noName);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (noName: ");
result.append(noName);
result.append(')');
return result.toString();
}
} //IElementWithNoNameImpl