/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public AnnotationParameter createAnnotationParameter() { AnnotationParameterImpl annotationParameter = new AnnotationParameterImpl(); return annotationParameter; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setName(String newName) { String oldName = name; name = newName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.ANNOTATION_PARAMETER__NAME, oldName, name)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setValue(ValueReference newValue) { if (newValue != value) { NotificationChain msgs = null; if (value != null) msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.ANNOTATION_PARAMETER__VALUE, null, msgs); if (newValue != null) msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - PatternLanguagePackage.ANNOTATION_PARAMETER__VALUE, null, msgs); msgs = basicSetValue(newValue, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.ANNOTATION_PARAMETER__VALUE, newValue, newValue)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case PatternLanguagePackage.ANNOTATION_PARAMETER__NAME: setName(NAME_EDEFAULT); return; case PatternLanguagePackage.ANNOTATION_PARAMETER__VALUE: setValue((ValueReference)null); return; } super.eUnset(featureID); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case PatternLanguagePackage.ANNOTATION_PARAMETER__NAME: return getName(); case PatternLanguagePackage.ANNOTATION_PARAMETER__VALUE: return getValue(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case PatternLanguagePackage.ANNOTATION_PARAMETER__VALUE: return basicSetValue(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetValue(ValueReference newValue, NotificationChain msgs) { ValueReference oldValue = value; value = newValue; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PatternLanguagePackage.ANNOTATION_PARAMETER__VALUE, oldValue, newValue); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- 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: "); result.append(name); result.append(')'); return result.toString(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case PatternLanguagePackage.ANNOTATION_PARAMETER__NAME: setName((String)newValue); return; case PatternLanguagePackage.ANNOTATION_PARAMETER__VALUE: setValue((ValueReference)newValue); return; } super.eSet(featureID, newValue); }