/** * <copyright> </copyright> * * $Id: CONNECTORTypeImpl.java 36476 2010-01-28 03:29:08Z hwang $ */ package org.talend.designer.core.model.utils.emf.component.impl; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.EObjectImpl; import org.talend.designer.core.model.utils.emf.component.CONNECTORType; import org.talend.designer.core.model.utils.emf.component.ComponentPackage; /** * <!-- begin-user-doc --> An implementation of the model object '<em><b>CONNECTOR Type</b></em>'. <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getBASESCHEMA <em>BASESCHEMA</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#isBUILTIN <em>BUILTIN</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getCOLOR <em>COLOR</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getCOMPONENT <em>COMPONENT</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getCTYPE <em>CTYPE</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#isINPUTLINKSELECTION <em>INPUTLINKSELECTION</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getLINESTYLE <em>LINESTYLE</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getMAXINPUT <em>MAXINPUT</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getMAXOUTPUT <em>MAXOUTPUT</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#isMERGEALLOWDIFFERENTSCHEMA <em>MERGEALLOWDIFFERENTSCHEMA</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getMININPUT <em>MININPUT</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getMINOUTPUT <em>MINOUTPUT</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#isMULTISCHEMA <em>MULTISCHEMA</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getNAME <em>NAME</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getNOTSHOWIF <em>NOTSHOWIF</em>}</li> * <li>{@link org.talend.designer.core.model.utils.emf.component.impl.CONNECTORTypeImpl#getSHOWIF <em>SHOWIF</em>}</li> * </ul> * </p> * * @generated */ public class CONNECTORTypeImpl extends EObjectImpl implements CONNECTORType { /** * The default value of the '{@link #getBASESCHEMA() <em>BASESCHEMA</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getBASESCHEMA() * @generated * @ordered */ protected static final String BASESCHEMA_EDEFAULT = null; /** * The cached value of the '{@link #getBASESCHEMA() <em>BASESCHEMA</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getBASESCHEMA() * @generated * @ordered */ protected String bASESCHEMA = BASESCHEMA_EDEFAULT; /** * The default value of the '{@link #isBUILTIN() <em>BUILTIN</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #isBUILTIN() * @generated * @ordered */ protected static final boolean BUILTIN_EDEFAULT = false; /** * The cached value of the '{@link #isBUILTIN() <em>BUILTIN</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #isBUILTIN() * @generated * @ordered */ protected boolean bUILTIN = BUILTIN_EDEFAULT; /** * This is true if the BUILTIN attribute has been set. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated * @ordered */ protected boolean bUILTINESet; /** * The default value of the '{@link #getCOLOR() <em>COLOR</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getCOLOR() * @generated * @ordered */ protected static final String COLOR_EDEFAULT = null; /** * The cached value of the '{@link #getCOLOR() <em>COLOR</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @see #getCOLOR() * @generated * @ordered */ protected String cOLOR = COLOR_EDEFAULT; /** * The default value of the '{@link #getCOMPONENT() <em>COMPONENT</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getCOMPONENT() * @generated * @ordered */ protected static final String COMPONENT_EDEFAULT = null; /** * The cached value of the '{@link #getCOMPONENT() <em>COMPONENT</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getCOMPONENT() * @generated * @ordered */ protected String cOMPONENT = COMPONENT_EDEFAULT; /** * The default value of the '{@link #getCTYPE() <em>CTYPE</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getCTYPE() * @generated * @ordered */ protected static final String CTYPE_EDEFAULT = null; /** * The cached value of the '{@link #getCTYPE() <em>CTYPE</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @see #getCTYPE() * @generated * @ordered */ protected String cTYPE = CTYPE_EDEFAULT; /** * The default value of the '{@link #isINPUTLINKSELECTION() <em>INPUTLINKSELECTION</em>}' attribute. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @see #isINPUTLINKSELECTION() * @generated * @ordered */ protected static final boolean INPUTLINKSELECTION_EDEFAULT = false; /** * The cached value of the '{@link #isINPUTLINKSELECTION() <em>INPUTLINKSELECTION</em>}' attribute. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @see #isINPUTLINKSELECTION() * @generated * @ordered */ protected boolean iNPUTLINKSELECTION = INPUTLINKSELECTION_EDEFAULT; /** * This is true if the INPUTLINKSELECTION attribute has been set. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated * @ordered */ protected boolean iNPUTLINKSELECTIONESet; /** * The default value of the '{@link #getLINESTYLE() <em>LINESTYLE</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getLINESTYLE() * @generated * @ordered */ protected static final int LINESTYLE_EDEFAULT = 0; /** * The cached value of the '{@link #getLINESTYLE() <em>LINESTYLE</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getLINESTYLE() * @generated * @ordered */ protected int lINESTYLE = LINESTYLE_EDEFAULT; /** * This is true if the LINESTYLE attribute has been set. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated * @ordered */ protected boolean lINESTYLEESet; /** * The default value of the '{@link #getMAXINPUT() <em>MAXINPUT</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getMAXINPUT() * @generated * @ordered */ protected static final int MAXINPUT_EDEFAULT = 0; /** * The cached value of the '{@link #getMAXINPUT() <em>MAXINPUT</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getMAXINPUT() * @generated * @ordered */ protected int mAXINPUT = MAXINPUT_EDEFAULT; /** * This is true if the MAXINPUT attribute has been set. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated * @ordered */ protected boolean mAXINPUTESet; /** * The default value of the '{@link #getMAXOUTPUT() <em>MAXOUTPUT</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getMAXOUTPUT() * @generated * @ordered */ protected static final int MAXOUTPUT_EDEFAULT = 0; /** * The cached value of the '{@link #getMAXOUTPUT() <em>MAXOUTPUT</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getMAXOUTPUT() * @generated * @ordered */ protected int mAXOUTPUT = MAXOUTPUT_EDEFAULT; /** * This is true if the MAXOUTPUT attribute has been set. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated * @ordered */ protected boolean mAXOUTPUTESet; /** * The default value of the '{@link #isMERGEALLOWDIFFERENTSCHEMA() <em>MERGEALLOWDIFFERENTSCHEMA</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #isMERGEALLOWDIFFERENTSCHEMA() * @generated * @ordered */ protected static final boolean MERGEALLOWDIFFERENTSCHEMA_EDEFAULT = false; /** * The cached value of the '{@link #isMERGEALLOWDIFFERENTSCHEMA() <em>MERGEALLOWDIFFERENTSCHEMA</em>}' attribute. * <!-- begin-user-doc --> <!-- end-user-doc --> * @see #isMERGEALLOWDIFFERENTSCHEMA() * @generated * @ordered */ protected boolean mERGEALLOWDIFFERENTSCHEMA = MERGEALLOWDIFFERENTSCHEMA_EDEFAULT; /** * This is true if the MERGEALLOWDIFFERENTSCHEMA attribute has been set. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @generated * @ordered */ protected boolean mERGEALLOWDIFFERENTSCHEMAESet; /** * The default value of the '{@link #getMININPUT() <em>MININPUT</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getMININPUT() * @generated * @ordered */ protected static final int MININPUT_EDEFAULT = 0; /** * The cached value of the '{@link #getMININPUT() <em>MININPUT</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getMININPUT() * @generated * @ordered */ protected int mININPUT = MININPUT_EDEFAULT; /** * This is true if the MININPUT attribute has been set. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated * @ordered */ protected boolean mININPUTESet; /** * The default value of the '{@link #getMINOUTPUT() <em>MINOUTPUT</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getMINOUTPUT() * @generated * @ordered */ protected static final int MINOUTPUT_EDEFAULT = 0; /** * The cached value of the '{@link #getMINOUTPUT() <em>MINOUTPUT</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getMINOUTPUT() * @generated * @ordered */ protected int mINOUTPUT = MINOUTPUT_EDEFAULT; /** * This is true if the MINOUTPUT attribute has been set. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated * @ordered */ protected boolean mINOUTPUTESet; /** * The default value of the '{@link #isMULTISCHEMA() <em>MULTISCHEMA</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #isMULTISCHEMA() * @generated * @ordered */ protected static final boolean MULTISCHEMA_EDEFAULT = false; /** * The cached value of the '{@link #isMULTISCHEMA() <em>MULTISCHEMA</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #isMULTISCHEMA() * @generated * @ordered */ protected boolean mULTISCHEMA = MULTISCHEMA_EDEFAULT; /** * This is true if the MULTISCHEMA attribute has been set. * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated * @ordered */ protected boolean mULTISCHEMAESet; /** * The default value of the '{@link #getNAME() <em>NAME</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @see #getNAME() * @generated * @ordered */ protected static final String NAME_EDEFAULT = null; /** * The cached value of the '{@link #getNAME() <em>NAME</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @see #getNAME() * @generated * @ordered */ protected String nAME = NAME_EDEFAULT; /** * The default value of the '{@link #getNOTSHOWIF() <em>NOTSHOWIF</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getNOTSHOWIF() * @generated * @ordered */ protected static final String NOTSHOWIF_EDEFAULT = null; /** * The cached value of the '{@link #getNOTSHOWIF() <em>NOTSHOWIF</em>}' attribute. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @see #getNOTSHOWIF() * @generated * @ordered */ protected String nOTSHOWIF = NOTSHOWIF_EDEFAULT; /** * The default value of the '{@link #getSHOWIF() <em>SHOWIF</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getSHOWIF() * @generated * @ordered */ protected static final String SHOWIF_EDEFAULT = null; /** * The cached value of the '{@link #getSHOWIF() <em>SHOWIF</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getSHOWIF() * @generated * @ordered */ protected String sHOWIF = SHOWIF_EDEFAULT; /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ protected CONNECTORTypeImpl() { super(); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return ComponentPackage.Literals.CONNECTOR_TYPE; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public String getBASESCHEMA() { return bASESCHEMA; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setBASESCHEMA(String newBASESCHEMA) { String oldBASESCHEMA = bASESCHEMA; bASESCHEMA = newBASESCHEMA; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__BASESCHEMA, oldBASESCHEMA, bASESCHEMA)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isBUILTIN() { return bUILTIN; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setBUILTIN(boolean newBUILTIN) { boolean oldBUILTIN = bUILTIN; bUILTIN = newBUILTIN; boolean oldBUILTINESet = bUILTINESet; bUILTINESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__BUILTIN, oldBUILTIN, bUILTIN, !oldBUILTINESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void unsetBUILTIN() { boolean oldBUILTIN = bUILTIN; boolean oldBUILTINESet = bUILTINESet; bUILTIN = BUILTIN_EDEFAULT; bUILTINESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.CONNECTOR_TYPE__BUILTIN, oldBUILTIN, BUILTIN_EDEFAULT, oldBUILTINESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isSetBUILTIN() { return bUILTINESet; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public String getCOLOR() { return cOLOR; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setCOLOR(String newCOLOR) { String oldCOLOR = cOLOR; cOLOR = newCOLOR; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__COLOR, oldCOLOR, cOLOR)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public String getCOMPONENT() { return cOMPONENT; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setCOMPONENT(String newCOMPONENT) { String oldCOMPONENT = cOMPONENT; cOMPONENT = newCOMPONENT; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__COMPONENT, oldCOMPONENT, cOMPONENT)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public String getCTYPE() { return cTYPE; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setCTYPE(String newCTYPE) { String oldCTYPE = cTYPE; cTYPE = newCTYPE; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__CTYPE, oldCTYPE, cTYPE)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isINPUTLINKSELECTION() { return iNPUTLINKSELECTION; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setINPUTLINKSELECTION(boolean newINPUTLINKSELECTION) { boolean oldINPUTLINKSELECTION = iNPUTLINKSELECTION; iNPUTLINKSELECTION = newINPUTLINKSELECTION; boolean oldINPUTLINKSELECTIONESet = iNPUTLINKSELECTIONESet; iNPUTLINKSELECTIONESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__INPUTLINKSELECTION, oldINPUTLINKSELECTION, iNPUTLINKSELECTION, !oldINPUTLINKSELECTIONESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void unsetINPUTLINKSELECTION() { boolean oldINPUTLINKSELECTION = iNPUTLINKSELECTION; boolean oldINPUTLINKSELECTIONESet = iNPUTLINKSELECTIONESet; iNPUTLINKSELECTION = INPUTLINKSELECTION_EDEFAULT; iNPUTLINKSELECTIONESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.CONNECTOR_TYPE__INPUTLINKSELECTION, oldINPUTLINKSELECTION, INPUTLINKSELECTION_EDEFAULT, oldINPUTLINKSELECTIONESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isSetINPUTLINKSELECTION() { return iNPUTLINKSELECTIONESet; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public int getLINESTYLE() { return lINESTYLE; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setLINESTYLE(int newLINESTYLE) { int oldLINESTYLE = lINESTYLE; lINESTYLE = newLINESTYLE; boolean oldLINESTYLEESet = lINESTYLEESet; lINESTYLEESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__LINESTYLE, oldLINESTYLE, lINESTYLE, !oldLINESTYLEESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void unsetLINESTYLE() { int oldLINESTYLE = lINESTYLE; boolean oldLINESTYLEESet = lINESTYLEESet; lINESTYLE = LINESTYLE_EDEFAULT; lINESTYLEESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.CONNECTOR_TYPE__LINESTYLE, oldLINESTYLE, LINESTYLE_EDEFAULT, oldLINESTYLEESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isSetLINESTYLE() { return lINESTYLEESet; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public int getMAXINPUT() { return mAXINPUT; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setMAXINPUT(int newMAXINPUT) { int oldMAXINPUT = mAXINPUT; mAXINPUT = newMAXINPUT; boolean oldMAXINPUTESet = mAXINPUTESet; mAXINPUTESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__MAXINPUT, oldMAXINPUT, mAXINPUT, !oldMAXINPUTESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void unsetMAXINPUT() { int oldMAXINPUT = mAXINPUT; boolean oldMAXINPUTESet = mAXINPUTESet; mAXINPUT = MAXINPUT_EDEFAULT; mAXINPUTESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.CONNECTOR_TYPE__MAXINPUT, oldMAXINPUT, MAXINPUT_EDEFAULT, oldMAXINPUTESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isSetMAXINPUT() { return mAXINPUTESet; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public int getMAXOUTPUT() { return mAXOUTPUT; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setMAXOUTPUT(int newMAXOUTPUT) { int oldMAXOUTPUT = mAXOUTPUT; mAXOUTPUT = newMAXOUTPUT; boolean oldMAXOUTPUTESet = mAXOUTPUTESet; mAXOUTPUTESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__MAXOUTPUT, oldMAXOUTPUT, mAXOUTPUT, !oldMAXOUTPUTESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void unsetMAXOUTPUT() { int oldMAXOUTPUT = mAXOUTPUT; boolean oldMAXOUTPUTESet = mAXOUTPUTESet; mAXOUTPUT = MAXOUTPUT_EDEFAULT; mAXOUTPUTESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.CONNECTOR_TYPE__MAXOUTPUT, oldMAXOUTPUT, MAXOUTPUT_EDEFAULT, oldMAXOUTPUTESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isSetMAXOUTPUT() { return mAXOUTPUTESet; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isMERGEALLOWDIFFERENTSCHEMA() { return mERGEALLOWDIFFERENTSCHEMA; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setMERGEALLOWDIFFERENTSCHEMA(boolean newMERGEALLOWDIFFERENTSCHEMA) { boolean oldMERGEALLOWDIFFERENTSCHEMA = mERGEALLOWDIFFERENTSCHEMA; mERGEALLOWDIFFERENTSCHEMA = newMERGEALLOWDIFFERENTSCHEMA; boolean oldMERGEALLOWDIFFERENTSCHEMAESet = mERGEALLOWDIFFERENTSCHEMAESet; mERGEALLOWDIFFERENTSCHEMAESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__MERGEALLOWDIFFERENTSCHEMA, oldMERGEALLOWDIFFERENTSCHEMA, mERGEALLOWDIFFERENTSCHEMA, !oldMERGEALLOWDIFFERENTSCHEMAESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void unsetMERGEALLOWDIFFERENTSCHEMA() { boolean oldMERGEALLOWDIFFERENTSCHEMA = mERGEALLOWDIFFERENTSCHEMA; boolean oldMERGEALLOWDIFFERENTSCHEMAESet = mERGEALLOWDIFFERENTSCHEMAESet; mERGEALLOWDIFFERENTSCHEMA = MERGEALLOWDIFFERENTSCHEMA_EDEFAULT; mERGEALLOWDIFFERENTSCHEMAESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.CONNECTOR_TYPE__MERGEALLOWDIFFERENTSCHEMA, oldMERGEALLOWDIFFERENTSCHEMA, MERGEALLOWDIFFERENTSCHEMA_EDEFAULT, oldMERGEALLOWDIFFERENTSCHEMAESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isSetMERGEALLOWDIFFERENTSCHEMA() { return mERGEALLOWDIFFERENTSCHEMAESet; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public int getMININPUT() { return mININPUT; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setMININPUT(int newMININPUT) { int oldMININPUT = mININPUT; mININPUT = newMININPUT; boolean oldMININPUTESet = mININPUTESet; mININPUTESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__MININPUT, oldMININPUT, mININPUT, !oldMININPUTESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void unsetMININPUT() { int oldMININPUT = mININPUT; boolean oldMININPUTESet = mININPUTESet; mININPUT = MININPUT_EDEFAULT; mININPUTESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.CONNECTOR_TYPE__MININPUT, oldMININPUT, MININPUT_EDEFAULT, oldMININPUTESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isSetMININPUT() { return mININPUTESet; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public int getMINOUTPUT() { return mINOUTPUT; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setMINOUTPUT(int newMINOUTPUT) { int oldMINOUTPUT = mINOUTPUT; mINOUTPUT = newMINOUTPUT; boolean oldMINOUTPUTESet = mINOUTPUTESet; mINOUTPUTESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__MINOUTPUT, oldMINOUTPUT, mINOUTPUT, !oldMINOUTPUTESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void unsetMINOUTPUT() { int oldMINOUTPUT = mINOUTPUT; boolean oldMINOUTPUTESet = mINOUTPUTESet; mINOUTPUT = MINOUTPUT_EDEFAULT; mINOUTPUTESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.CONNECTOR_TYPE__MINOUTPUT, oldMINOUTPUT, MINOUTPUT_EDEFAULT, oldMINOUTPUTESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isSetMINOUTPUT() { return mINOUTPUTESet; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isMULTISCHEMA() { return mULTISCHEMA; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setMULTISCHEMA(boolean newMULTISCHEMA) { boolean oldMULTISCHEMA = mULTISCHEMA; mULTISCHEMA = newMULTISCHEMA; boolean oldMULTISCHEMAESet = mULTISCHEMAESet; mULTISCHEMAESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__MULTISCHEMA, oldMULTISCHEMA, mULTISCHEMA, !oldMULTISCHEMAESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void unsetMULTISCHEMA() { boolean oldMULTISCHEMA = mULTISCHEMA; boolean oldMULTISCHEMAESet = mULTISCHEMAESet; mULTISCHEMA = MULTISCHEMA_EDEFAULT; mULTISCHEMAESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, ComponentPackage.CONNECTOR_TYPE__MULTISCHEMA, oldMULTISCHEMA, MULTISCHEMA_EDEFAULT, oldMULTISCHEMAESet)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public boolean isSetMULTISCHEMA() { return mULTISCHEMAESet; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public String getNAME() { return nAME; } /** * <!-- 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, ComponentPackage.CONNECTOR_TYPE__NAME, oldNAME, nAME)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public String getNOTSHOWIF() { return nOTSHOWIF; } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public void setNOTSHOWIF(String newNOTSHOWIF) { String oldNOTSHOWIF = nOTSHOWIF; nOTSHOWIF = newNOTSHOWIF; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__NOTSHOWIF, oldNOTSHOWIF, nOTSHOWIF)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getSHOWIF() { return sHOWIF; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSHOWIF(String newSHOWIF) { String oldSHOWIF = sHOWIF; sHOWIF = newSHOWIF; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.CONNECTOR_TYPE__SHOWIF, oldSHOWIF, sHOWIF)); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ComponentPackage.CONNECTOR_TYPE__BASESCHEMA: return getBASESCHEMA(); case ComponentPackage.CONNECTOR_TYPE__BUILTIN: return isBUILTIN() ? Boolean.TRUE : Boolean.FALSE; case ComponentPackage.CONNECTOR_TYPE__COLOR: return getCOLOR(); case ComponentPackage.CONNECTOR_TYPE__COMPONENT: return getCOMPONENT(); case ComponentPackage.CONNECTOR_TYPE__CTYPE: return getCTYPE(); case ComponentPackage.CONNECTOR_TYPE__INPUTLINKSELECTION: return isINPUTLINKSELECTION() ? Boolean.TRUE : Boolean.FALSE; case ComponentPackage.CONNECTOR_TYPE__LINESTYLE: return new Integer(getLINESTYLE()); case ComponentPackage.CONNECTOR_TYPE__MAXINPUT: return new Integer(getMAXINPUT()); case ComponentPackage.CONNECTOR_TYPE__MAXOUTPUT: return new Integer(getMAXOUTPUT()); case ComponentPackage.CONNECTOR_TYPE__MERGEALLOWDIFFERENTSCHEMA: return isMERGEALLOWDIFFERENTSCHEMA() ? Boolean.TRUE : Boolean.FALSE; case ComponentPackage.CONNECTOR_TYPE__MININPUT: return new Integer(getMININPUT()); case ComponentPackage.CONNECTOR_TYPE__MINOUTPUT: return new Integer(getMINOUTPUT()); case ComponentPackage.CONNECTOR_TYPE__MULTISCHEMA: return isMULTISCHEMA() ? Boolean.TRUE : Boolean.FALSE; case ComponentPackage.CONNECTOR_TYPE__NAME: return getNAME(); case ComponentPackage.CONNECTOR_TYPE__NOTSHOWIF: return getNOTSHOWIF(); case ComponentPackage.CONNECTOR_TYPE__SHOWIF: return getSHOWIF(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ComponentPackage.CONNECTOR_TYPE__BASESCHEMA: setBASESCHEMA((String)newValue); return; case ComponentPackage.CONNECTOR_TYPE__BUILTIN: setBUILTIN(((Boolean)newValue).booleanValue()); return; case ComponentPackage.CONNECTOR_TYPE__COLOR: setCOLOR((String)newValue); return; case ComponentPackage.CONNECTOR_TYPE__COMPONENT: setCOMPONENT((String)newValue); return; case ComponentPackage.CONNECTOR_TYPE__CTYPE: setCTYPE((String)newValue); return; case ComponentPackage.CONNECTOR_TYPE__INPUTLINKSELECTION: setINPUTLINKSELECTION(((Boolean)newValue).booleanValue()); return; case ComponentPackage.CONNECTOR_TYPE__LINESTYLE: setLINESTYLE(((Integer)newValue).intValue()); return; case ComponentPackage.CONNECTOR_TYPE__MAXINPUT: setMAXINPUT(((Integer)newValue).intValue()); return; case ComponentPackage.CONNECTOR_TYPE__MAXOUTPUT: setMAXOUTPUT(((Integer)newValue).intValue()); return; case ComponentPackage.CONNECTOR_TYPE__MERGEALLOWDIFFERENTSCHEMA: setMERGEALLOWDIFFERENTSCHEMA(((Boolean)newValue).booleanValue()); return; case ComponentPackage.CONNECTOR_TYPE__MININPUT: setMININPUT(((Integer)newValue).intValue()); return; case ComponentPackage.CONNECTOR_TYPE__MINOUTPUT: setMINOUTPUT(((Integer)newValue).intValue()); return; case ComponentPackage.CONNECTOR_TYPE__MULTISCHEMA: setMULTISCHEMA(((Boolean)newValue).booleanValue()); return; case ComponentPackage.CONNECTOR_TYPE__NAME: setNAME((String)newValue); return; case ComponentPackage.CONNECTOR_TYPE__NOTSHOWIF: setNOTSHOWIF((String)newValue); return; case ComponentPackage.CONNECTOR_TYPE__SHOWIF: setSHOWIF((String)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ComponentPackage.CONNECTOR_TYPE__BASESCHEMA: setBASESCHEMA(BASESCHEMA_EDEFAULT); return; case ComponentPackage.CONNECTOR_TYPE__BUILTIN: unsetBUILTIN(); return; case ComponentPackage.CONNECTOR_TYPE__COLOR: setCOLOR(COLOR_EDEFAULT); return; case ComponentPackage.CONNECTOR_TYPE__COMPONENT: setCOMPONENT(COMPONENT_EDEFAULT); return; case ComponentPackage.CONNECTOR_TYPE__CTYPE: setCTYPE(CTYPE_EDEFAULT); return; case ComponentPackage.CONNECTOR_TYPE__INPUTLINKSELECTION: unsetINPUTLINKSELECTION(); return; case ComponentPackage.CONNECTOR_TYPE__LINESTYLE: unsetLINESTYLE(); return; case ComponentPackage.CONNECTOR_TYPE__MAXINPUT: unsetMAXINPUT(); return; case ComponentPackage.CONNECTOR_TYPE__MAXOUTPUT: unsetMAXOUTPUT(); return; case ComponentPackage.CONNECTOR_TYPE__MERGEALLOWDIFFERENTSCHEMA: unsetMERGEALLOWDIFFERENTSCHEMA(); return; case ComponentPackage.CONNECTOR_TYPE__MININPUT: unsetMININPUT(); return; case ComponentPackage.CONNECTOR_TYPE__MINOUTPUT: unsetMINOUTPUT(); return; case ComponentPackage.CONNECTOR_TYPE__MULTISCHEMA: unsetMULTISCHEMA(); return; case ComponentPackage.CONNECTOR_TYPE__NAME: setNAME(NAME_EDEFAULT); return; case ComponentPackage.CONNECTOR_TYPE__NOTSHOWIF: setNOTSHOWIF(NOTSHOWIF_EDEFAULT); return; case ComponentPackage.CONNECTOR_TYPE__SHOWIF: setSHOWIF(SHOWIF_EDEFAULT); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ComponentPackage.CONNECTOR_TYPE__BASESCHEMA: return BASESCHEMA_EDEFAULT == null ? bASESCHEMA != null : !BASESCHEMA_EDEFAULT.equals(bASESCHEMA); case ComponentPackage.CONNECTOR_TYPE__BUILTIN: return isSetBUILTIN(); case ComponentPackage.CONNECTOR_TYPE__COLOR: return COLOR_EDEFAULT == null ? cOLOR != null : !COLOR_EDEFAULT.equals(cOLOR); case ComponentPackage.CONNECTOR_TYPE__COMPONENT: return COMPONENT_EDEFAULT == null ? cOMPONENT != null : !COMPONENT_EDEFAULT.equals(cOMPONENT); case ComponentPackage.CONNECTOR_TYPE__CTYPE: return CTYPE_EDEFAULT == null ? cTYPE != null : !CTYPE_EDEFAULT.equals(cTYPE); case ComponentPackage.CONNECTOR_TYPE__INPUTLINKSELECTION: return isSetINPUTLINKSELECTION(); case ComponentPackage.CONNECTOR_TYPE__LINESTYLE: return isSetLINESTYLE(); case ComponentPackage.CONNECTOR_TYPE__MAXINPUT: return isSetMAXINPUT(); case ComponentPackage.CONNECTOR_TYPE__MAXOUTPUT: return isSetMAXOUTPUT(); case ComponentPackage.CONNECTOR_TYPE__MERGEALLOWDIFFERENTSCHEMA: return isSetMERGEALLOWDIFFERENTSCHEMA(); case ComponentPackage.CONNECTOR_TYPE__MININPUT: return isSetMININPUT(); case ComponentPackage.CONNECTOR_TYPE__MINOUTPUT: return isSetMINOUTPUT(); case ComponentPackage.CONNECTOR_TYPE__MULTISCHEMA: return isSetMULTISCHEMA(); case ComponentPackage.CONNECTOR_TYPE__NAME: return NAME_EDEFAULT == null ? nAME != null : !NAME_EDEFAULT.equals(nAME); case ComponentPackage.CONNECTOR_TYPE__NOTSHOWIF: return NOTSHOWIF_EDEFAULT == null ? nOTSHOWIF != null : !NOTSHOWIF_EDEFAULT.equals(nOTSHOWIF); case ComponentPackage.CONNECTOR_TYPE__SHOWIF: return SHOWIF_EDEFAULT == null ? sHOWIF != null : !SHOWIF_EDEFAULT.equals(sHOWIF); } return super.eIsSet(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(" (bASESCHEMA: "); result.append(bASESCHEMA); result.append(", bUILTIN: "); if (bUILTINESet) result.append(bUILTIN); else result.append("<unset>"); result.append(", cOLOR: "); result.append(cOLOR); result.append(", cOMPONENT: "); result.append(cOMPONENT); result.append(", cTYPE: "); result.append(cTYPE); result.append(", iNPUTLINKSELECTION: "); if (iNPUTLINKSELECTIONESet) result.append(iNPUTLINKSELECTION); else result.append("<unset>"); result.append(", lINESTYLE: "); if (lINESTYLEESet) result.append(lINESTYLE); else result.append("<unset>"); result.append(", mAXINPUT: "); if (mAXINPUTESet) result.append(mAXINPUT); else result.append("<unset>"); result.append(", mAXOUTPUT: "); if (mAXOUTPUTESet) result.append(mAXOUTPUT); else result.append("<unset>"); result.append(", mERGEALLOWDIFFERENTSCHEMA: "); if (mERGEALLOWDIFFERENTSCHEMAESet) result.append(mERGEALLOWDIFFERENTSCHEMA); else result.append("<unset>"); result.append(", mININPUT: "); if (mININPUTESet) result.append(mININPUT); else result.append("<unset>"); result.append(", mINOUTPUT: "); if (mINOUTPUTESet) result.append(mINOUTPUT); else result.append("<unset>"); result.append(", mULTISCHEMA: "); if (mULTISCHEMAESet) result.append(mULTISCHEMA); else result.append("<unset>"); result.append(", nAME: "); result.append(nAME); result.append(", nOTSHOWIF: "); result.append(nOTSHOWIF); result.append(", sHOWIF: "); result.append(sHOWIF); result.append(')'); return result.toString(); } } // CONNECTORTypeImpl