diff options
Diffstat (limited to 'examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/schemaconstructs/attributes/impl/AImpl.java')
-rw-r--r-- | examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/schemaconstructs/attributes/impl/AImpl.java | 583 |
1 files changed, 0 insertions, 583 deletions
diff --git a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/schemaconstructs/attributes/impl/AImpl.java b/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/schemaconstructs/attributes/impl/AImpl.java deleted file mode 100644 index a95e45f5a..000000000 --- a/examples/org.eclipse.emf.teneo.samples/src/org/eclipse/emf/teneo/samples/emf/schemaconstructs/attributes/impl/AImpl.java +++ /dev/null @@ -1,583 +0,0 @@ -/** - * <copyright> - * </copyright> - * - * $Id: AImpl.java,v 1.2 2007/02/08 23:09:19 mtaal Exp $ - */ -package org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -import org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.A; -import org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.AttributesPackage; -import org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.R; - -/** - * <!-- begin-user-doc --> - * An implementation of the model object '<em><b>A</b></em>'. - * <!-- end-user-doc --> - * <p> - * The following features are implemented: - * <ul> - * <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.AImpl#getName <em>Name</em>}</li> - * <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.AImpl#getB <em>B</em>}</li> - * <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.AImpl#getC <em>C</em>}</li> - * <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.AImpl#getComment <em>Comment</em>}</li> - * <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.AImpl#getId <em>Id</em>}</li> - * <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.AImpl#getD <em>D</em>}</li> - * <li>{@link org.eclipse.emf.teneo.samples.emf.schemaconstructs.attributes.impl.AImpl#getMyR <em>My R</em>}</li> - * </ul> - * </p> - * - * @generated - */ -public class AImpl extends EObjectImpl implements A { - /** - * 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; - - /** - * The cached value of the '{@link #getName() <em>Name</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * This is true if the Name attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean nameESet = false; - - /** - * The default value of the '{@link #getB() <em>B</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getB() - * @generated - * @ordered - */ - protected static final long B_EDEFAULT = 0L; - - /** - * The cached value of the '{@link #getB() <em>B</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getB() - * @generated - * @ordered - */ - protected long b = B_EDEFAULT; - - /** - * This is true if the B attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean bESet = false; - - /** - * The default value of the '{@link #getC() <em>C</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getC() - * @generated - * @ordered - */ - protected static final String C_EDEFAULT = null; - - /** - * The cached value of the '{@link #getC() <em>C</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getC() - * @generated - * @ordered - */ - protected String c = C_EDEFAULT; - - /** - * The default value of the '{@link #getComment() <em>Comment</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getComment() - * @generated - * @ordered - */ - protected static final double COMMENT_EDEFAULT = 0.0; - - /** - * The cached value of the '{@link #getComment() <em>Comment</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getComment() - * @generated - * @ordered - */ - protected double comment = COMMENT_EDEFAULT; - - /** - * This is true if the Comment attribute has been set. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - * @ordered - */ - protected boolean commentESet = false; - - /** - * The default value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected static final String ID_EDEFAULT = null; - - /** - * The cached value of the '{@link #getId() <em>Id</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getId() - * @generated - * @ordered - */ - protected String id = ID_EDEFAULT; - - /** - * The default value of the '{@link #getD() <em>D</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getD() - * @generated - * @ordered - */ - protected static final String D_EDEFAULT = null; - - /** - * The cached value of the '{@link #getD() <em>D</em>}' attribute. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getD() - * @generated - * @ordered - */ - protected String d = D_EDEFAULT; - - /** - * The cached value of the '{@link #getMyR() <em>My R</em>}' reference. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @see #getMyR() - * @generated - * @ordered - */ - protected R myR = null; - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - protected AImpl() { - super(); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - protected EClass eStaticClass() { - return AttributesPackage.Literals.A; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getName() { - return name; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setName(String newName) { - String oldName = name; - name = newName; - boolean oldNameESet = nameESet; - nameESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, AttributesPackage.A__NAME, oldName, name, !oldNameESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetName() { - String oldName = name; - boolean oldNameESet = nameESet; - name = NAME_EDEFAULT; - nameESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, AttributesPackage.A__NAME, oldName, NAME_EDEFAULT, oldNameESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetName() { - return nameESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public long getB() { - return b; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setB(long newB) { - long oldB = b; - b = newB; - boolean oldBESet = bESet; - bESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, AttributesPackage.A__B, oldB, b, !oldBESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetB() { - long oldB = b; - boolean oldBESet = bESet; - b = B_EDEFAULT; - bESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, AttributesPackage.A__B, oldB, B_EDEFAULT, oldBESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetB() { - return bESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getC() { - return c; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setC(String newC) { - String oldC = c; - c = newC; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, AttributesPackage.A__C, oldC, c)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public double getComment() { - return comment; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setComment(double newComment) { - double oldComment = comment; - comment = newComment; - boolean oldCommentESet = commentESet; - commentESet = true; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, AttributesPackage.A__COMMENT, oldComment, comment, !oldCommentESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void unsetComment() { - double oldComment = comment; - boolean oldCommentESet = commentESet; - comment = COMMENT_EDEFAULT; - commentESet = false; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.UNSET, AttributesPackage.A__COMMENT, oldComment, COMMENT_EDEFAULT, oldCommentESet)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public boolean isSetComment() { - return commentESet; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getId() { - return id; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setId(String newId) { - String oldId = id; - id = newId; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, AttributesPackage.A__ID, oldId, id)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public String getD() { - return d; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setD(String newD) { - String oldD = d; - d = newD; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, AttributesPackage.A__D, oldD, d)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public R getMyR() { - return myR; - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - public void setMyR(R newMyR) { - R oldMyR = myR; - myR = newMyR; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, AttributesPackage.A__MY_R, oldMyR, myR)); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) { - switch (featureID) { - case AttributesPackage.A__NAME: - return getName(); - case AttributesPackage.A__B: - return new Long(getB()); - case AttributesPackage.A__C: - return getC(); - case AttributesPackage.A__COMMENT: - return new Double(getComment()); - case AttributesPackage.A__ID: - return getId(); - case AttributesPackage.A__D: - return getD(); - case AttributesPackage.A__MY_R: - return getMyR(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) { - switch (featureID) { - case AttributesPackage.A__NAME: - setName((String)newValue); - return; - case AttributesPackage.A__B: - setB(((Long)newValue).longValue()); - return; - case AttributesPackage.A__C: - setC((String)newValue); - return; - case AttributesPackage.A__COMMENT: - setComment(((Double)newValue).doubleValue()); - return; - case AttributesPackage.A__ID: - setId((String)newValue); - return; - case AttributesPackage.A__D: - setD((String)newValue); - return; - case AttributesPackage.A__MY_R: - setMyR((R)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public void eUnset(int featureID) { - switch (featureID) { - case AttributesPackage.A__NAME: - unsetName(); - return; - case AttributesPackage.A__B: - unsetB(); - return; - case AttributesPackage.A__C: - setC(C_EDEFAULT); - return; - case AttributesPackage.A__COMMENT: - unsetComment(); - return; - case AttributesPackage.A__ID: - setId(ID_EDEFAULT); - return; - case AttributesPackage.A__D: - setD(D_EDEFAULT); - return; - case AttributesPackage.A__MY_R: - setMyR((R)null); - return; - } - super.eUnset(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public boolean eIsSet(int featureID) { - switch (featureID) { - case AttributesPackage.A__NAME: - return isSetName(); - case AttributesPackage.A__B: - return isSetB(); - case AttributesPackage.A__C: - return C_EDEFAULT == null ? c != null : !C_EDEFAULT.equals(c); - case AttributesPackage.A__COMMENT: - return isSetComment(); - case AttributesPackage.A__ID: - return ID_EDEFAULT == null ? id != null : !ID_EDEFAULT.equals(id); - case AttributesPackage.A__D: - return D_EDEFAULT == null ? d != null : !D_EDEFAULT.equals(d); - case AttributesPackage.A__MY_R: - return myR != null; - } - return super.eIsSet(featureID); - } - - /** - * <!-- begin-user-doc --> - * <!-- end-user-doc --> - * @generated - */ - @Override - public String toString() { - if (eIsProxy()) return super.toString(); - - StringBuffer result = new StringBuffer(super.toString()); - result.append(" (name: "); - if (nameESet) result.append(name); else result.append("<unset>"); - result.append(", b: "); - if (bESet) result.append(b); else result.append("<unset>"); - result.append(", c: "); - result.append(c); - result.append(", comment: "); - if (commentESet) result.append(comment); else result.append("<unset>"); - result.append(", id: "); - result.append(id); - result.append(", d: "); - result.append(d); - result.append(')'); - return result.toString(); - } - -} //AImpl |