diff options
Diffstat (limited to 'plugins/org.eclipse.qvtd.xml/emf-gen/org/eclipse/qvtd/xml/impl/CommentImpl.java')
-rw-r--r-- | plugins/org.eclipse.qvtd.xml/emf-gen/org/eclipse/qvtd/xml/impl/CommentImpl.java | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/plugins/org.eclipse.qvtd.xml/emf-gen/org/eclipse/qvtd/xml/impl/CommentImpl.java b/plugins/org.eclipse.qvtd.xml/emf-gen/org/eclipse/qvtd/xml/impl/CommentImpl.java new file mode 100644 index 000000000..5150153d7 --- /dev/null +++ b/plugins/org.eclipse.qvtd.xml/emf-gen/org/eclipse/qvtd/xml/impl/CommentImpl.java @@ -0,0 +1,162 @@ +/** + * <copyright> + * + * Copyright (c) 2018 Willink Transformations 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: + * E.D.Willink - Initial API and implementation + * + * </copyright> + */ +package org.eclipse.qvtd.xml.impl; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.qvtd.xml.Comment; +import org.eclipse.qvtd.xml.XMLmodelPackage; + +/** + * <!-- begin-user-doc --> + * An implementation of the model object '<em><b>Comment</b></em>'. + * <!-- end-user-doc --> + * <p> + * The following features are implemented: + * </p> + * <ul> + * <li>{@link org.eclipse.qvtd.xml.impl.CommentImpl#getData <em>Data</em>}</li> + * </ul> + * + * @generated + */ +public class CommentImpl extends NodeImpl implements Comment { + /** + * The default value of the '{@link #getData() <em>Data</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getData() + * @generated + * @ordered + */ + protected static final String DATA_EDEFAULT = null; + + /** + * The cached value of the '{@link #getData() <em>Data</em>}' attribute. + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @see #getData() + * @generated + * @ordered + */ + protected String data = DATA_EDEFAULT; + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + protected CommentImpl() { + super(); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + protected EClass eStaticClass() { + return XMLmodelPackage.Literals.COMMENT; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public String getData() { + return data; + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + public void setData(String newData) { + String oldData = data; + data = newData; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, XMLmodelPackage.COMMENT__DATA, oldData, data)); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) { + switch (featureID) { + case XMLmodelPackage.COMMENT__DATA: + return getData(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) { + switch (featureID) { + case XMLmodelPackage.COMMENT__DATA: + setData((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public void eUnset(int featureID) { + switch (featureID) { + case XMLmodelPackage.COMMENT__DATA: + setData(DATA_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * <!-- begin-user-doc --> + * <!-- end-user-doc --> + * @generated + */ + @Override + public boolean eIsSet(int featureID) { + switch (featureID) { + case XMLmodelPackage.COMMENT__DATA: + return DATA_EDEFAULT == null ? data != null : !DATA_EDEFAULT.equals(data); + } + return super.eIsSet(featureID); + } + + @Override + public String toString() { + return "<!--" + data + "-->"; + } +} //CommentImpl |