/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createProperty() { PropertyImpl property = new PropertyImpl(); return property; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setDescription(String newDescription) { String oldDescription = description; description = newDescription; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__DESCRIPTION, oldDescription, description)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DatatypePackage.PROPERTY__PRESENCE: return getPresence(); case DatatypePackage.PROPERTY__MULTIPLICITY: return isMultiplicity(); case DatatypePackage.PROPERTY__NAME: return getName(); case DatatypePackage.PROPERTY__DESCRIPTION: return getDescription(); case DatatypePackage.PROPERTY__CONSTRAINT_RULE: return getConstraintRule(); case DatatypePackage.PROPERTY__TYPE: return getType(); case DatatypePackage.PROPERTY__PROPERTY_ATTRIBUTES: return getPropertyAttributes(); } 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 DatatypePackage.PROPERTY__PRESENCE: return basicSetPresence(null, msgs); case DatatypePackage.PROPERTY__CONSTRAINT_RULE: return basicSetConstraintRule(null, msgs); case DatatypePackage.PROPERTY__TYPE: return basicSetType(null, msgs); case DatatypePackage.PROPERTY__PROPERTY_ATTRIBUTES: return ((InternalEList<?>)getPropertyAttributes()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setPresence(Presence newPresence) { if (newPresence != presence) { NotificationChain msgs = null; if (presence != null) msgs = ((InternalEObject)presence).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__PRESENCE, null, msgs); if (newPresence != null) msgs = ((InternalEObject)newPresence).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__PRESENCE, null, msgs); msgs = basicSetPresence(newPresence, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__PRESENCE, newPresence, newPresence)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setType(PropertyType newType) { if (newType != type) { NotificationChain msgs = null; if (type != null) msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__TYPE, null, msgs); if (newType != null) msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__TYPE, null, msgs); msgs = basicSetType(newType, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__TYPE, newType, newType)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setConstraintRule(ConstraintRule newConstraintRule) { if (newConstraintRule != constraintRule) { NotificationChain msgs = null; if (constraintRule != null) msgs = ((InternalEObject)constraintRule).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__CONSTRAINT_RULE, null, msgs); if (newConstraintRule != null) msgs = ((InternalEObject)newConstraintRule).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__CONSTRAINT_RULE, null, msgs); msgs = basicSetConstraintRule(newConstraintRule, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__CONSTRAINT_RULE, newConstraintRule, newConstraintRule)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetPresence(Presence newPresence, NotificationChain msgs) { Presence oldPresence = presence; presence = newPresence; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__PRESENCE, oldPresence, newPresence); 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(" (multiplicity: "); result.append(multiplicity); result.append(", name: "); result.append(name); result.append(", description: "); result.append(description); result.append(')'); return result.toString(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case DatatypePackage.PROPERTY__PRESENCE: return basicSetPresence(null, msgs); case DatatypePackage.PROPERTY__CONSTRAINT_RULE: return basicSetConstraintRule(null, msgs); case DatatypePackage.PROPERTY__TYPE: return basicSetType(null, msgs); case DatatypePackage.PROPERTY__PROPERTY_ATTRIBUTES: return ((InternalEList<?>)getPropertyAttributes()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setPresence(Presence newPresence) { if (newPresence != presence) { NotificationChain msgs = null; if (presence != null) msgs = ((InternalEObject)presence).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__PRESENCE, null, msgs); if (newPresence != null) msgs = ((InternalEObject)newPresence).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__PRESENCE, null, msgs); msgs = basicSetPresence(newPresence, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__PRESENCE, newPresence, newPresence)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setType(PropertyType newType) { if (newType != type) { NotificationChain msgs = null; if (type != null) msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__TYPE, null, msgs); if (newType != null) msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__TYPE, null, msgs); msgs = basicSetType(newType, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__TYPE, newType, newType)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setConstraintRule(ConstraintRule newConstraintRule) { if (newConstraintRule != constraintRule) { NotificationChain msgs = null; if (constraintRule != null) msgs = ((InternalEObject)constraintRule).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__CONSTRAINT_RULE, null, msgs); if (newConstraintRule != null) msgs = ((InternalEObject)newConstraintRule).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DatatypePackage.PROPERTY__CONSTRAINT_RULE, null, msgs); msgs = basicSetConstraintRule(newConstraintRule, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__CONSTRAINT_RULE, newConstraintRule, newConstraintRule)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetType(PropertyType newType, NotificationChain msgs) { PropertyType oldType = type; type = newType; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__TYPE, oldType, newType); 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(" (multiplicity: "); result.append(multiplicity); result.append(", name: "); result.append(name); result.append(", description: "); result.append(description); result.append(", extension: "); result.append(extension); result.append(')'); return result.toString(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DatatypePackage.PROPERTY__PRESENCE: return getPresence(); case DatatypePackage.PROPERTY__MULTIPLICITY: return isMultiplicity(); case DatatypePackage.PROPERTY__NAME: return getName(); case DatatypePackage.PROPERTY__DESCRIPTION: return getDescription(); case DatatypePackage.PROPERTY__CONSTRAINT_RULE: return getConstraintRule(); case DatatypePackage.PROPERTY__TYPE: return getType(); case DatatypePackage.PROPERTY__PROPERTY_ATTRIBUTES: return getPropertyAttributes(); case DatatypePackage.PROPERTY__EXTENSION: return isExtension(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- 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, DatatypePackage.PROPERTY__NAME, oldName, name)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetConstraintRule(ConstraintRule newConstraintRule, NotificationChain msgs) { ConstraintRule oldConstraintRule = constraintRule; constraintRule = newConstraintRule; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__CONSTRAINT_RULE, oldConstraintRule, newConstraintRule); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Property createProperty() { PropertyImpl property = new PropertyImpl(); return property; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setDescription(String newDescription) { String oldDescription = description; description = newDescription; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PROPERTY__DESCRIPTION, oldDescription, description)); }