/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Presence createPresence() { PresenceImpl presence = new PresenceImpl(); return presence; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setMandatory(boolean newMandatory) { boolean oldMandatory = mandatory; mandatory = newMandatory; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PRESENCE__MANDATORY, oldMandatory, mandatory)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DatatypePackage.PRESENCE__MANDATORY: setMandatory((Boolean)newValue); return; } super.eSet(featureID, newValue); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (mandatory: "); result.append(mandatory); 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.PRESENCE__MANDATORY: return isMandatory(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DatatypePackage.PRESENCE__MANDATORY: setMandatory(MANDATORY_EDEFAULT); return; } super.eUnset(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(" (mandatory: "); result.append(mandatory); 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.PRESENCE__MANDATORY: return isMandatory(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setMandatory(boolean newMandatory) { boolean oldMandatory = mandatory; mandatory = newMandatory; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.PRESENCE__MANDATORY, oldMandatory, mandatory)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DatatypePackage.PRESENCE__MANDATORY: setMandatory((Boolean)newValue); return; } super.eSet(featureID, newValue); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Presence createPresence() { PresenceImpl presence = new PresenceImpl(); return presence; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DatatypePackage.PRESENCE__MANDATORY: setMandatory(MANDATORY_EDEFAULT); return; } super.eUnset(featureID); }