/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Entity createEntity() { EntityImpl entity = new EntityImpl(); return entity; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DatatypePackage.ENTITY__SUPER_TYPE: if (resolve) return getSuperType(); return basicGetSuperType(); case DatatypePackage.ENTITY__PROPERTIES: return getProperties(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSuperType(Entity newSuperType) { Entity oldSuperType = superType; superType = newSuperType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.ENTITY__SUPER_TYPE, oldSuperType, superType)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Entity getSuperType() { if (superType != null && superType.eIsProxy()) { InternalEObject oldSuperType = (InternalEObject)superType; superType = (Entity)eResolveProxy(oldSuperType); if (superType != oldSuperType) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, DatatypePackage.ENTITY__SUPER_TYPE, oldSuperType, superType)); } } return superType; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DatatypePackage.ENTITY__SUPER_TYPE: setSuperType((Entity)newValue); return; case DatatypePackage.ENTITY__PROPERTIES: getProperties().clear(); getProperties().addAll((Collection<? extends Property>)newValue); return; } super.eSet(featureID, newValue); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case DatatypePackage.ENTITY__PROPERTIES: return ((InternalEList<?>)getProperties()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Entity getSuperType() { if (superType != null && superType.eIsProxy()) { InternalEObject oldSuperType = (InternalEObject)superType; superType = (Entity)eResolveProxy(oldSuperType); if (superType != oldSuperType) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, DatatypePackage.ENTITY__SUPER_TYPE, oldSuperType, superType)); } } return superType; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DatatypePackage.ENTITY__SUPER_TYPE: setSuperType((Entity)null); return; case DatatypePackage.ENTITY__PROPERTIES: getProperties().clear(); return; } super.eUnset(featureID); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case DatatypePackage.ENTITY__PROPERTIES: return ((InternalEList<?>)getProperties()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DatatypePackage.ENTITY__SUPER_TYPE: if (resolve) return getSuperType(); return basicGetSuperType(); case DatatypePackage.ENTITY__PROPERTIES: return getProperties(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DatatypePackage.ENTITY__SUPER_TYPE: setSuperType((Entity)newValue); return; case DatatypePackage.ENTITY__PROPERTIES: getProperties().clear(); getProperties().addAll((Collection<? extends Property>)newValue); return; } super.eSet(featureID, newValue); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSuperType(Entity newSuperType) { Entity oldSuperType = superType; superType = newSuperType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.ENTITY__SUPER_TYPE, oldSuperType, superType)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Entity createEntity() { EntityImpl entity = new EntityImpl(); return entity; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DatatypePackage.ENTITY__SUPER_TYPE: setSuperType((Entity)null); return; case DatatypePackage.ENTITY__PROPERTIES: getProperties().clear(); return; } super.eUnset(featureID); }