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

sculptormetamodel.impl.ReferenceImpl Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
/**
 */
package sculptormetamodel.impl;

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

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

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

import org.eclipse.emf.ecore.util.EcoreUtil;

import sculptormetamodel.DomainObject;
import sculptormetamodel.Reference;
import sculptormetamodel.SculptormetamodelPackage;

/**
 * 
 * An implementation of the model object 'Reference'.
 * 
 * 

* The following features are implemented: *

    *
  • {@link sculptormetamodel.impl.ReferenceImpl#isMany Many}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getCollectionType Collection Type}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getOpposite Opposite}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getTo To}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getCascade Cascade}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getOrderBy Order By}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getVisibility Visibility}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#isChangeable Changeable}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getFrom From}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#isRequired Required}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getFetch Fetch}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#isCache Cache}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#isNaturalKey Natural Key}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#isInverse Inverse}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#isNullable Nullable}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getDatabaseColumn Database Column}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getValidate Validate}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#isTransient Transient}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getDatabaseJoinTable Database Join Table}
  • *
  • {@link sculptormetamodel.impl.ReferenceImpl#getDatabaseJoinColumn Database Join Column}
  • *
*

* * @generated */ public class ReferenceImpl extends NamedElementImpl implements Reference { /** * The default value of the '{@link #isMany() Many}' attribute. * * * @see #isMany() * @generated * @ordered */ protected static final boolean MANY_EDEFAULT = false; /** * The cached value of the '{@link #isMany() Many}' attribute. * * * @see #isMany() * @generated * @ordered */ protected boolean many = MANY_EDEFAULT; /** * The default value of the '{@link #getCollectionType() Collection Type}' attribute. * * * @see #getCollectionType() * @generated * @ordered */ protected static final String COLLECTION_TYPE_EDEFAULT = null; /** * The cached value of the '{@link #getCollectionType() Collection Type}' attribute. * * * @see #getCollectionType() * @generated * @ordered */ protected String collectionType = COLLECTION_TYPE_EDEFAULT; /** * The cached value of the '{@link #getOpposite() Opposite}' reference. * * * @see #getOpposite() * @generated * @ordered */ protected Reference opposite; /** * The cached value of the '{@link #getTo() To}' reference. * * * @see #getTo() * @generated * @ordered */ protected DomainObject to; /** * The default value of the '{@link #getCascade() Cascade}' attribute. * * * @see #getCascade() * @generated * @ordered */ protected static final String CASCADE_EDEFAULT = null; /** * The cached value of the '{@link #getCascade() Cascade}' attribute. * * * @see #getCascade() * @generated * @ordered */ protected String cascade = CASCADE_EDEFAULT; /** * The default value of the '{@link #getOrderBy() Order By}' attribute. * * * @see #getOrderBy() * @generated * @ordered */ protected static final String ORDER_BY_EDEFAULT = null; /** * The cached value of the '{@link #getOrderBy() Order By}' attribute. * * * @see #getOrderBy() * @generated * @ordered */ protected String orderBy = ORDER_BY_EDEFAULT; /** * The default value of the '{@link #getVisibility() Visibility}' attribute. * * * @see #getVisibility() * @generated * @ordered */ protected static final String VISIBILITY_EDEFAULT = null; /** * The cached value of the '{@link #getVisibility() Visibility}' attribute. * * * @see #getVisibility() * @generated * @ordered */ protected String visibility = VISIBILITY_EDEFAULT; /** * The default value of the '{@link #isChangeable() Changeable}' attribute. * * * @see #isChangeable() * @generated * @ordered */ protected static final boolean CHANGEABLE_EDEFAULT = true; /** * The cached value of the '{@link #isChangeable() Changeable}' attribute. * * * @see #isChangeable() * @generated * @ordered */ protected boolean changeable = CHANGEABLE_EDEFAULT; /** * The default value of the '{@link #isRequired() Required}' attribute. * * * @see #isRequired() * @generated * @ordered */ protected static final boolean REQUIRED_EDEFAULT = false; /** * The cached value of the '{@link #isRequired() Required}' attribute. * * * @see #isRequired() * @generated * @ordered */ protected boolean required = REQUIRED_EDEFAULT; /** * The default value of the '{@link #getFetch() Fetch}' attribute. * * * @see #getFetch() * @generated * @ordered */ protected static final String FETCH_EDEFAULT = null; /** * The cached value of the '{@link #getFetch() Fetch}' attribute. * * * @see #getFetch() * @generated * @ordered */ protected String fetch = FETCH_EDEFAULT; /** * The default value of the '{@link #isCache() Cache}' attribute. * * * @see #isCache() * @generated * @ordered */ protected static final boolean CACHE_EDEFAULT = false; /** * The cached value of the '{@link #isCache() Cache}' attribute. * * * @see #isCache() * @generated * @ordered */ protected boolean cache = CACHE_EDEFAULT; /** * The default value of the '{@link #isNaturalKey() Natural Key}' attribute. * * * @see #isNaturalKey() * @generated * @ordered */ protected static final boolean NATURAL_KEY_EDEFAULT = false; /** * The cached value of the '{@link #isNaturalKey() Natural Key}' attribute. * * * @see #isNaturalKey() * @generated * @ordered */ protected boolean naturalKey = NATURAL_KEY_EDEFAULT; /** * The default value of the '{@link #isInverse() Inverse}' attribute. * * * @see #isInverse() * @generated * @ordered */ protected static final boolean INVERSE_EDEFAULT = false; /** * The cached value of the '{@link #isInverse() Inverse}' attribute. * * * @see #isInverse() * @generated * @ordered */ protected boolean inverse = INVERSE_EDEFAULT; /** * The default value of the '{@link #isNullable() Nullable}' attribute. * * * @see #isNullable() * @generated * @ordered */ protected static final boolean NULLABLE_EDEFAULT = false; /** * The cached value of the '{@link #isNullable() Nullable}' attribute. * * * @see #isNullable() * @generated * @ordered */ protected boolean nullable = NULLABLE_EDEFAULT; /** * The default value of the '{@link #getDatabaseColumn() Database Column}' attribute. * * * @see #getDatabaseColumn() * @generated * @ordered */ protected static final String DATABASE_COLUMN_EDEFAULT = null; /** * The cached value of the '{@link #getDatabaseColumn() Database Column}' attribute. * * * @see #getDatabaseColumn() * @generated * @ordered */ protected String databaseColumn = DATABASE_COLUMN_EDEFAULT; /** * The default value of the '{@link #getValidate() Validate}' attribute. * * * @see #getValidate() * @generated * @ordered */ protected static final String VALIDATE_EDEFAULT = null; /** * The cached value of the '{@link #getValidate() Validate}' attribute. * * * @see #getValidate() * @generated * @ordered */ protected String validate = VALIDATE_EDEFAULT; /** * The default value of the '{@link #isTransient() Transient}' attribute. * * * @see #isTransient() * @generated * @ordered */ protected static final boolean TRANSIENT_EDEFAULT = false; /** * The cached value of the '{@link #isTransient() Transient}' attribute. * * * @see #isTransient() * @generated * @ordered */ protected boolean transient_ = TRANSIENT_EDEFAULT; /** * The default value of the '{@link #getDatabaseJoinTable() Database Join Table}' attribute. * * * @see #getDatabaseJoinTable() * @generated * @ordered */ protected static final String DATABASE_JOIN_TABLE_EDEFAULT = null; /** * The cached value of the '{@link #getDatabaseJoinTable() Database Join Table}' attribute. * * * @see #getDatabaseJoinTable() * @generated * @ordered */ protected String databaseJoinTable = DATABASE_JOIN_TABLE_EDEFAULT; /** * The default value of the '{@link #getDatabaseJoinColumn() Database Join Column}' attribute. * * * @see #getDatabaseJoinColumn() * @generated * @ordered */ protected static final String DATABASE_JOIN_COLUMN_EDEFAULT = null; /** * The cached value of the '{@link #getDatabaseJoinColumn() Database Join Column}' attribute. * * * @see #getDatabaseJoinColumn() * @generated * @ordered */ protected String databaseJoinColumn = DATABASE_JOIN_COLUMN_EDEFAULT; /** * * * @generated */ protected ReferenceImpl() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return SculptormetamodelPackage.Literals.REFERENCE; } /** * * * @generated */ public boolean isMany() { return many; } /** * * * @generated */ public void setMany(boolean newMany) { boolean oldMany = many; many = newMany; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__MANY, oldMany, many)); } /** * * * @generated */ public String getCollectionType() { return collectionType; } /** * * * @generated */ public void setCollectionType(String newCollectionType) { String oldCollectionType = collectionType; collectionType = newCollectionType; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__COLLECTION_TYPE, oldCollectionType, collectionType)); } /** * * * @generated */ public Reference getOpposite() { if (opposite != null && opposite.eIsProxy()) { InternalEObject oldOpposite = (InternalEObject)opposite; opposite = (Reference)eResolveProxy(oldOpposite); if (opposite != oldOpposite) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, SculptormetamodelPackage.REFERENCE__OPPOSITE, oldOpposite, opposite)); } } return opposite; } /** * * * @generated */ public Reference basicGetOpposite() { return opposite; } /** * * * @generated */ public void setOpposite(Reference newOpposite) { Reference oldOpposite = opposite; opposite = newOpposite; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__OPPOSITE, oldOpposite, opposite)); } /** * * * @generated */ public DomainObject getTo() { if (to != null && to.eIsProxy()) { InternalEObject oldTo = (InternalEObject)to; to = (DomainObject)eResolveProxy(oldTo); if (to != oldTo) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, SculptormetamodelPackage.REFERENCE__TO, oldTo, to)); } } return to; } /** * * * @generated */ public DomainObject basicGetTo() { return to; } /** * * * @generated */ public void setTo(DomainObject newTo) { DomainObject oldTo = to; to = newTo; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__TO, oldTo, to)); } /** * * * @generated */ public String getCascade() { return cascade; } /** * * * @generated */ public void setCascade(String newCascade) { String oldCascade = cascade; cascade = newCascade; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__CASCADE, oldCascade, cascade)); } /** * * * @generated */ public String getOrderBy() { return orderBy; } /** * * * @generated */ public void setOrderBy(String newOrderBy) { String oldOrderBy = orderBy; orderBy = newOrderBy; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__ORDER_BY, oldOrderBy, orderBy)); } /** * * * @generated */ public String getVisibility() { return visibility; } /** * * * @generated */ public void setVisibility(String newVisibility) { String oldVisibility = visibility; visibility = newVisibility; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__VISIBILITY, oldVisibility, visibility)); } /** * * * @generated */ public boolean isChangeable() { return changeable; } /** * * * @generated */ public void setChangeable(boolean newChangeable) { boolean oldChangeable = changeable; changeable = newChangeable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__CHANGEABLE, oldChangeable, changeable)); } /** * * * @generated */ public DomainObject getFrom() { if (eContainerFeatureID() != SculptormetamodelPackage.REFERENCE__FROM) return null; return (DomainObject)eInternalContainer(); } /** * * * @generated */ public NotificationChain basicSetFrom(DomainObject newFrom, NotificationChain msgs) { msgs = eBasicSetContainer((InternalEObject)newFrom, SculptormetamodelPackage.REFERENCE__FROM, msgs); return msgs; } /** * * * @generated */ public void setFrom(DomainObject newFrom) { if (newFrom != eInternalContainer() || (eContainerFeatureID() != SculptormetamodelPackage.REFERENCE__FROM && newFrom != null)) { if (EcoreUtil.isAncestor(this, newFrom)) throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); NotificationChain msgs = null; if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); if (newFrom != null) msgs = ((InternalEObject)newFrom).eInverseAdd(this, SculptormetamodelPackage.DOMAIN_OBJECT__REFERENCES, DomainObject.class, msgs); msgs = basicSetFrom(newFrom, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__FROM, newFrom, newFrom)); } /** * * * @generated */ public boolean isRequired() { return required; } /** * * * @generated */ public void setRequired(boolean newRequired) { boolean oldRequired = required; required = newRequired; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__REQUIRED, oldRequired, required)); } /** * * * @generated */ public String getFetch() { return fetch; } /** * * * @generated */ public void setFetch(String newFetch) { String oldFetch = fetch; fetch = newFetch; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__FETCH, oldFetch, fetch)); } /** * * * @generated */ public boolean isCache() { return cache; } /** * * * @generated */ public void setCache(boolean newCache) { boolean oldCache = cache; cache = newCache; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__CACHE, oldCache, cache)); } /** * * * @generated */ public boolean isNaturalKey() { return naturalKey; } /** * * * @generated */ public void setNaturalKey(boolean newNaturalKey) { boolean oldNaturalKey = naturalKey; naturalKey = newNaturalKey; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__NATURAL_KEY, oldNaturalKey, naturalKey)); } /** * * * @generated */ public boolean isInverse() { return inverse; } /** * * * @generated */ public void setInverse(boolean newInverse) { boolean oldInverse = inverse; inverse = newInverse; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__INVERSE, oldInverse, inverse)); } /** * * * @generated */ public boolean isNullable() { return nullable; } /** * * * @generated */ public void setNullable(boolean newNullable) { boolean oldNullable = nullable; nullable = newNullable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__NULLABLE, oldNullable, nullable)); } /** * * * @generated */ public String getDatabaseColumn() { return databaseColumn; } /** * * * @generated */ public void setDatabaseColumn(String newDatabaseColumn) { String oldDatabaseColumn = databaseColumn; databaseColumn = newDatabaseColumn; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__DATABASE_COLUMN, oldDatabaseColumn, databaseColumn)); } /** * * * @generated */ public String getValidate() { return validate; } /** * * * @generated */ public void setValidate(String newValidate) { String oldValidate = validate; validate = newValidate; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__VALIDATE, oldValidate, validate)); } /** * * * @generated */ public boolean isTransient() { return transient_; } /** * * * @generated */ public void setTransient(boolean newTransient) { boolean oldTransient = transient_; transient_ = newTransient; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__TRANSIENT, oldTransient, transient_)); } /** * * * @generated */ public String getDatabaseJoinTable() { return databaseJoinTable; } /** * * * @generated */ public void setDatabaseJoinTable(String newDatabaseJoinTable) { String oldDatabaseJoinTable = databaseJoinTable; databaseJoinTable = newDatabaseJoinTable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__DATABASE_JOIN_TABLE, oldDatabaseJoinTable, databaseJoinTable)); } /** * * * @generated */ public String getDatabaseJoinColumn() { return databaseJoinColumn; } /** * * * @generated */ public void setDatabaseJoinColumn(String newDatabaseJoinColumn) { String oldDatabaseJoinColumn = databaseJoinColumn; databaseJoinColumn = newDatabaseJoinColumn; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, SculptormetamodelPackage.REFERENCE__DATABASE_JOIN_COLUMN, oldDatabaseJoinColumn, databaseJoinColumn)); } /** * * * @generated */ @Override public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case SculptormetamodelPackage.REFERENCE__FROM: if (eInternalContainer() != null) msgs = eBasicRemoveFromContainer(msgs); return basicSetFrom((DomainObject)otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case SculptormetamodelPackage.REFERENCE__FROM: return basicSetFrom(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public NotificationChain eBasicRemoveFromContainerFeature(NotificationChain msgs) { switch (eContainerFeatureID()) { case SculptormetamodelPackage.REFERENCE__FROM: return eInternalContainer().eInverseRemove(this, SculptormetamodelPackage.DOMAIN_OBJECT__REFERENCES, DomainObject.class, msgs); } return super.eBasicRemoveFromContainerFeature(msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case SculptormetamodelPackage.REFERENCE__MANY: return isMany(); case SculptormetamodelPackage.REFERENCE__COLLECTION_TYPE: return getCollectionType(); case SculptormetamodelPackage.REFERENCE__OPPOSITE: if (resolve) return getOpposite(); return basicGetOpposite(); case SculptormetamodelPackage.REFERENCE__TO: if (resolve) return getTo(); return basicGetTo(); case SculptormetamodelPackage.REFERENCE__CASCADE: return getCascade(); case SculptormetamodelPackage.REFERENCE__ORDER_BY: return getOrderBy(); case SculptormetamodelPackage.REFERENCE__VISIBILITY: return getVisibility(); case SculptormetamodelPackage.REFERENCE__CHANGEABLE: return isChangeable(); case SculptormetamodelPackage.REFERENCE__FROM: return getFrom(); case SculptormetamodelPackage.REFERENCE__REQUIRED: return isRequired(); case SculptormetamodelPackage.REFERENCE__FETCH: return getFetch(); case SculptormetamodelPackage.REFERENCE__CACHE: return isCache(); case SculptormetamodelPackage.REFERENCE__NATURAL_KEY: return isNaturalKey(); case SculptormetamodelPackage.REFERENCE__INVERSE: return isInverse(); case SculptormetamodelPackage.REFERENCE__NULLABLE: return isNullable(); case SculptormetamodelPackage.REFERENCE__DATABASE_COLUMN: return getDatabaseColumn(); case SculptormetamodelPackage.REFERENCE__VALIDATE: return getValidate(); case SculptormetamodelPackage.REFERENCE__TRANSIENT: return isTransient(); case SculptormetamodelPackage.REFERENCE__DATABASE_JOIN_TABLE: return getDatabaseJoinTable(); case SculptormetamodelPackage.REFERENCE__DATABASE_JOIN_COLUMN: return getDatabaseJoinColumn(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case SculptormetamodelPackage.REFERENCE__MANY: setMany((Boolean)newValue); return; case SculptormetamodelPackage.REFERENCE__COLLECTION_TYPE: setCollectionType((String)newValue); return; case SculptormetamodelPackage.REFERENCE__OPPOSITE: setOpposite((Reference)newValue); return; case SculptormetamodelPackage.REFERENCE__TO: setTo((DomainObject)newValue); return; case SculptormetamodelPackage.REFERENCE__CASCADE: setCascade((String)newValue); return; case SculptormetamodelPackage.REFERENCE__ORDER_BY: setOrderBy((String)newValue); return; case SculptormetamodelPackage.REFERENCE__VISIBILITY: setVisibility((String)newValue); return; case SculptormetamodelPackage.REFERENCE__CHANGEABLE: setChangeable((Boolean)newValue); return; case SculptormetamodelPackage.REFERENCE__FROM: setFrom((DomainObject)newValue); return; case SculptormetamodelPackage.REFERENCE__REQUIRED: setRequired((Boolean)newValue); return; case SculptormetamodelPackage.REFERENCE__FETCH: setFetch((String)newValue); return; case SculptormetamodelPackage.REFERENCE__CACHE: setCache((Boolean)newValue); return; case SculptormetamodelPackage.REFERENCE__NATURAL_KEY: setNaturalKey((Boolean)newValue); return; case SculptormetamodelPackage.REFERENCE__INVERSE: setInverse((Boolean)newValue); return; case SculptormetamodelPackage.REFERENCE__NULLABLE: setNullable((Boolean)newValue); return; case SculptormetamodelPackage.REFERENCE__DATABASE_COLUMN: setDatabaseColumn((String)newValue); return; case SculptormetamodelPackage.REFERENCE__VALIDATE: setValidate((String)newValue); return; case SculptormetamodelPackage.REFERENCE__TRANSIENT: setTransient((Boolean)newValue); return; case SculptormetamodelPackage.REFERENCE__DATABASE_JOIN_TABLE: setDatabaseJoinTable((String)newValue); return; case SculptormetamodelPackage.REFERENCE__DATABASE_JOIN_COLUMN: setDatabaseJoinColumn((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case SculptormetamodelPackage.REFERENCE__MANY: setMany(MANY_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__COLLECTION_TYPE: setCollectionType(COLLECTION_TYPE_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__OPPOSITE: setOpposite((Reference)null); return; case SculptormetamodelPackage.REFERENCE__TO: setTo((DomainObject)null); return; case SculptormetamodelPackage.REFERENCE__CASCADE: setCascade(CASCADE_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__ORDER_BY: setOrderBy(ORDER_BY_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__VISIBILITY: setVisibility(VISIBILITY_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__CHANGEABLE: setChangeable(CHANGEABLE_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__FROM: setFrom((DomainObject)null); return; case SculptormetamodelPackage.REFERENCE__REQUIRED: setRequired(REQUIRED_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__FETCH: setFetch(FETCH_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__CACHE: setCache(CACHE_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__NATURAL_KEY: setNaturalKey(NATURAL_KEY_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__INVERSE: setInverse(INVERSE_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__NULLABLE: setNullable(NULLABLE_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__DATABASE_COLUMN: setDatabaseColumn(DATABASE_COLUMN_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__VALIDATE: setValidate(VALIDATE_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__TRANSIENT: setTransient(TRANSIENT_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__DATABASE_JOIN_TABLE: setDatabaseJoinTable(DATABASE_JOIN_TABLE_EDEFAULT); return; case SculptormetamodelPackage.REFERENCE__DATABASE_JOIN_COLUMN: setDatabaseJoinColumn(DATABASE_JOIN_COLUMN_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case SculptormetamodelPackage.REFERENCE__MANY: return many != MANY_EDEFAULT; case SculptormetamodelPackage.REFERENCE__COLLECTION_TYPE: return COLLECTION_TYPE_EDEFAULT == null ? collectionType != null : !COLLECTION_TYPE_EDEFAULT.equals(collectionType); case SculptormetamodelPackage.REFERENCE__OPPOSITE: return opposite != null; case SculptormetamodelPackage.REFERENCE__TO: return to != null; case SculptormetamodelPackage.REFERENCE__CASCADE: return CASCADE_EDEFAULT == null ? cascade != null : !CASCADE_EDEFAULT.equals(cascade); case SculptormetamodelPackage.REFERENCE__ORDER_BY: return ORDER_BY_EDEFAULT == null ? orderBy != null : !ORDER_BY_EDEFAULT.equals(orderBy); case SculptormetamodelPackage.REFERENCE__VISIBILITY: return VISIBILITY_EDEFAULT == null ? visibility != null : !VISIBILITY_EDEFAULT.equals(visibility); case SculptormetamodelPackage.REFERENCE__CHANGEABLE: return changeable != CHANGEABLE_EDEFAULT; case SculptormetamodelPackage.REFERENCE__FROM: return getFrom() != null; case SculptormetamodelPackage.REFERENCE__REQUIRED: return required != REQUIRED_EDEFAULT; case SculptormetamodelPackage.REFERENCE__FETCH: return FETCH_EDEFAULT == null ? fetch != null : !FETCH_EDEFAULT.equals(fetch); case SculptormetamodelPackage.REFERENCE__CACHE: return cache != CACHE_EDEFAULT; case SculptormetamodelPackage.REFERENCE__NATURAL_KEY: return naturalKey != NATURAL_KEY_EDEFAULT; case SculptormetamodelPackage.REFERENCE__INVERSE: return inverse != INVERSE_EDEFAULT; case SculptormetamodelPackage.REFERENCE__NULLABLE: return nullable != NULLABLE_EDEFAULT; case SculptormetamodelPackage.REFERENCE__DATABASE_COLUMN: return DATABASE_COLUMN_EDEFAULT == null ? databaseColumn != null : !DATABASE_COLUMN_EDEFAULT.equals(databaseColumn); case SculptormetamodelPackage.REFERENCE__VALIDATE: return VALIDATE_EDEFAULT == null ? validate != null : !VALIDATE_EDEFAULT.equals(validate); case SculptormetamodelPackage.REFERENCE__TRANSIENT: return transient_ != TRANSIENT_EDEFAULT; case SculptormetamodelPackage.REFERENCE__DATABASE_JOIN_TABLE: return DATABASE_JOIN_TABLE_EDEFAULT == null ? databaseJoinTable != null : !DATABASE_JOIN_TABLE_EDEFAULT.equals(databaseJoinTable); case SculptormetamodelPackage.REFERENCE__DATABASE_JOIN_COLUMN: return DATABASE_JOIN_COLUMN_EDEFAULT == null ? databaseJoinColumn != null : !DATABASE_JOIN_COLUMN_EDEFAULT.equals(databaseJoinColumn); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (many: "); result.append(many); result.append(", collectionType: "); result.append(collectionType); result.append(", cascade: "); result.append(cascade); result.append(", orderBy: "); result.append(orderBy); result.append(", visibility: "); result.append(visibility); result.append(", changeable: "); result.append(changeable); result.append(", required: "); result.append(required); result.append(", fetch: "); result.append(fetch); result.append(", cache: "); result.append(cache); result.append(", naturalKey: "); result.append(naturalKey); result.append(", inverse: "); result.append(inverse); result.append(", nullable: "); result.append(nullable); result.append(", databaseColumn: "); result.append(databaseColumn); result.append(", validate: "); result.append(validate); result.append(", transient: "); result.append(transient_); result.append(", databaseJoinTable: "); result.append(databaseJoinTable); result.append(", databaseJoinColumn: "); result.append(databaseJoinColumn); result.append(')'); return result.toString(); } } //ReferenceImpl




© 2015 - 2025 Weber Informatics LLC | Privacy Policy