/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Constraint createConstraint() { ConstraintImpl constraint = new ConstraintImpl(); return constraint; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setType(ConstraintIntervalType newType) { ConstraintIntervalType oldType = type; type = newType == null ? TYPE_EDEFAULT : newType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.CONSTRAINT__TYPE, oldType, type)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DatatypePackage.CONSTRAINT__TYPE: setType(TYPE_EDEFAULT); return; case DatatypePackage.CONSTRAINT__CONSTRAINT_VALUES: setConstraintValues(CONSTRAINT_VALUES_EDEFAULT); return; } super.eUnset(featureID); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DatatypePackage.CONSTRAINT__TYPE: return getType(); case DatatypePackage.CONSTRAINT__CONSTRAINT_VALUES: return getConstraintValues(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (type: "); result.append(type); result.append(", constraintValues: "); result.append(constraintValues); result.append(')'); return result.toString(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DatatypePackage.CONSTRAINT__TYPE: setType((ConstraintIntervalType)newValue); return; case DatatypePackage.CONSTRAINT__CONSTRAINT_VALUES: setConstraintValues((String)newValue); return; } super.eSet(featureID, newValue); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DatatypePackage.CONSTRAINT__TYPE: return getType(); case DatatypePackage.CONSTRAINT__CONSTRAINT_VALUES: return getConstraintValues(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (type: "); result.append(type); result.append(", constraintValues: "); result.append(constraintValues); result.append(')'); return result.toString(); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setConstraintValues(String newConstraintValues) { String oldConstraintValues = constraintValues; constraintValues = newConstraintValues; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.CONSTRAINT__CONSTRAINT_VALUES, oldConstraintValues, constraintValues)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DatatypePackage.CONSTRAINT__TYPE: setType((ConstraintIntervalType)newValue); return; case DatatypePackage.CONSTRAINT__CONSTRAINT_VALUES: setConstraintValues((String)newValue); return; } super.eSet(featureID, newValue); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Constraint createConstraint() { ConstraintImpl constraint = new ConstraintImpl(); return constraint; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setType(ConstraintIntervalType newType) { ConstraintIntervalType oldType = type; type = newType == null ? TYPE_EDEFAULT : newType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.CONSTRAINT__TYPE, oldType, type)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DatatypePackage.CONSTRAINT__TYPE: setType(TYPE_EDEFAULT); return; case DatatypePackage.CONSTRAINT__CONSTRAINT_VALUES: setConstraintValues(CONSTRAINT_VALUES_EDEFAULT); return; } super.eUnset(featureID); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setConstraintValues(String newConstraintValues) { String oldConstraintValues = constraintValues; constraintValues = newConstraintValues; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DatatypePackage.CONSTRAINT__CONSTRAINT_VALUES, oldConstraintValues, constraintValues)); }