All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openxma.dsl.ddl.ddlDsl.impl.NullableConstraintImpl Maven / Gradle / Ivy

/**
 * 
 * 
 *
 */
package org.openxma.dsl.ddl.ddlDsl.impl;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

import org.openxma.dsl.ddl.ddlDsl.DdlDslPackage;
import org.openxma.dsl.ddl.ddlDsl.NullableConstraint;

/**
 * 
 * An implementation of the model object 'Nullable Constraint'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link org.openxma.dsl.ddl.ddlDsl.impl.NullableConstraintImpl#isNot Not}
  • *
*

* * @generated */ public class NullableConstraintImpl extends ConstraintImpl implements NullableConstraint { /** * The default value of the '{@link #isNot() Not}' attribute. * * * @see #isNot() * @generated * @ordered */ protected static final boolean NOT_EDEFAULT = false; /** * The cached value of the '{@link #isNot() Not}' attribute. * * * @see #isNot() * @generated * @ordered */ protected boolean not = NOT_EDEFAULT; /** * * * @generated */ protected NullableConstraintImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return DdlDslPackage.Literals.NULLABLE_CONSTRAINT; } /** * * * @generated */ public boolean isNot() { return not; } /** * * * @generated */ public void setNot(boolean newNot) { boolean oldNot = not; not = newNot; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DdlDslPackage.NULLABLE_CONSTRAINT__NOT, oldNot, not)); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case DdlDslPackage.NULLABLE_CONSTRAINT__NOT: return isNot(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case DdlDslPackage.NULLABLE_CONSTRAINT__NOT: setNot((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case DdlDslPackage.NULLABLE_CONSTRAINT__NOT: setNot(NOT_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case DdlDslPackage.NULLABLE_CONSTRAINT__NOT: return not != NOT_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (not: "); result.append(not); result.append(')'); return result.toString(); } } //NullableConstraintImpl




© 2015 - 2024 Weber Informatics LLC | Privacy Policy