/******************************************************************************* * Copyright (c) 2008, 2010 Oracle. * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which * accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Oracle - initial API and implementation *******************************************************************************/ package org.eclipse.jpt.eclipselink.core.resource.orm; import java.util.Collection; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EStructuralFeature; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; import org.eclipse.jpt.core.internal.utility.translators.SimpleTranslator; import org.eclipse.jpt.core.resource.orm.XmlClassReference; import org.eclipse.jpt.core.utility.TextRange; import org.eclipse.jpt.eclipselink.core.resource.orm.v1_1.EclipseLink1_1; import org.eclipse.jpt.eclipselink.core.resource.orm.v1_1.EclipseLinkOrmV1_1Package; import org.eclipse.jpt.eclipselink.core.resource.orm.v1_1.XmlEntity_1_1; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_0.EclipseLink2_0; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_0.EclipseLinkOrmV2_0Package; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_0.XmlEntity_2_0; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_1.EclipseLink2_1; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_1.EclipseLinkOrmV2_1Package; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_1.XmlEntity_2_1; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_1.XmlFetchGroupContainer_2_1; import org.eclipse.wst.common.internal.emf.resource.Translator; /** * * * A representation of the model object 'Xml Entity'. * * Provisional API: This interface is part of an interim API that is still * under development and expected to change significantly before reaching * stability. It is available at this early stage to solicit feedback from * pioneering adopters on the understanding that any code that uses this API * will almost certainly be broken (repeatedly) as the API evolves. * * @version 2.3 * @since 2.1 * * * *

* The following features are supported: *

*

* * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity() * @model kind="class" * @generated */ public class XmlEntity extends org.eclipse.jpt.core.resource.orm.XmlEntity implements XmlEntity_1_1, XmlEntity_2_0, XmlEntity_2_1, XmlReadOnly, XmlCustomizerHolder, XmlChangeTrackingHolder, XmlCacheHolder, XmlConvertersHolder, XmlQueryContainer, XmlPropertyContainer { /** * The cached value of the '{@link #getPrimaryKey() Primary Key}' containment reference. * * * @see #getPrimaryKey() * @generated * @ordered */ protected XmlPrimaryKey primaryKey; /** * The cached value of the '{@link #getCacheInterceptor() Cache Interceptor}' containment reference. * * * @see #getCacheInterceptor() * @generated * @ordered */ protected XmlClassReference cacheInterceptor; /** * The cached value of the '{@link #getQueryRedirectors() Query Redirectors}' containment reference. * * * @see #getQueryRedirectors() * @generated * @ordered */ protected XmlQueryRedirectors queryRedirectors; /** * The cached value of the '{@link #getAccessMethods() Access Methods}' containment reference. * * * @see #getAccessMethods() * @generated * @ordered */ protected XmlAccessMethods accessMethods; /** * The cached value of the '{@link #getFetchGroups() Fetch Groups}' containment reference list. * * * @see #getFetchGroups() * @generated * @ordered */ protected EList fetchGroups; /** * The cached value of the '{@link #getClassExtractor() Class Extractor}' containment reference. * * * @see #getClassExtractor() * @generated * @ordered */ protected XmlClassReference classExtractor; /** * The default value of the '{@link #getParentClass() Parent Class}' attribute. * * * @see #getParentClass() * @generated * @ordered */ protected static final String PARENT_CLASS_EDEFAULT = null; /** * The cached value of the '{@link #getParentClass() Parent Class}' attribute. * * * @see #getParentClass() * @generated * @ordered */ protected String parentClass = PARENT_CLASS_EDEFAULT; /** * The default value of the '{@link #getReadOnly() Read Only}' attribute. * * * @see #getReadOnly() * @generated * @ordered */ protected static final Boolean READ_ONLY_EDEFAULT = null; /** * The cached value of the '{@link #getReadOnly() Read Only}' attribute. * * * @see #getReadOnly() * @generated * @ordered */ protected Boolean readOnly = READ_ONLY_EDEFAULT; /** * The cached value of the '{@link #getCustomizer() Customizer}' containment reference. * * * @see #getCustomizer() * @generated * @ordered */ protected XmlClassReference customizer; /** * The cached value of the '{@link #getChangeTracking() Change Tracking}' containment reference. * * * @see #getChangeTracking() * @generated * @ordered */ protected XmlChangeTracking changeTracking; /** * The cached value of the '{@link #getCache() Cache}' containment reference. * * * @see #getCache() * @generated * @ordered */ protected XmlCache cache; /** * changed this to null and removed the generated flag so emf won't generate over it * we don't want a default for enums, just null if the tag does not exist */ protected static final ExistenceType EXISTENCE_CHECKING_EDEFAULT = null; /** * The cached value of the '{@link #getExistenceChecking() Existence Checking}' attribute. * * * @see #getExistenceChecking() * @generated * @ordered */ protected ExistenceType existenceChecking = EXISTENCE_CHECKING_EDEFAULT; /** * The cached value of the '{@link #getConverters() Converters}' containment reference list. * * * @see #getConverters() * @generated * @ordered */ protected EList converters; /** * The cached value of the '{@link #getTypeConverters() Type Converters}' containment reference list. * * * @see #getTypeConverters() * @generated * @ordered */ protected EList typeConverters; /** * The cached value of the '{@link #getObjectTypeConverters() Object Type Converters}' containment reference list. * * * @see #getObjectTypeConverters() * @generated * @ordered */ protected EList objectTypeConverters; /** * The cached value of the '{@link #getStructConverters() Struct Converters}' containment reference list. * * * @see #getStructConverters() * @generated * @ordered */ protected EList structConverters; /** * The cached value of the '{@link #getNamedStoredProcedureQueries() Named Stored Procedure Queries}' containment reference list. * * * @see #getNamedStoredProcedureQueries() * @generated * @ordered */ protected EList namedStoredProcedureQueries; /** * The cached value of the '{@link #getProperties() Properties}' containment reference list. * * * @see #getProperties() * @generated * @ordered */ protected EList properties; /** * The cached value of the '{@link #getOptimisticLocking() Optimistic Locking}' containment reference. * * * @see #getOptimisticLocking() * @generated * @ordered */ protected XmlOptimisticLocking optimisticLocking; /** * The cached value of the '{@link #getCopyPolicy() Copy Policy}' containment reference. * * * @see #getCopyPolicy() * @generated * @ordered */ protected XmlCopyPolicy copyPolicy; /** * The cached value of the '{@link #getInstantiationCopyPolicy() Instantiation Copy Policy}' containment reference. * * * @see #getInstantiationCopyPolicy() * @generated * @ordered */ protected XmlInstantiationCopyPolicy instantiationCopyPolicy; /** * The cached value of the '{@link #getCloneCopyPolicy() Clone Copy Policy}' containment reference. * * * @see #getCloneCopyPolicy() * @generated * @ordered */ protected XmlCloneCopyPolicy cloneCopyPolicy; /** * The default value of the '{@link #getExcludeDefaultMappings() Exclude Default Mappings}' attribute. * * * @see #getExcludeDefaultMappings() * @generated * @ordered */ protected static final Boolean EXCLUDE_DEFAULT_MAPPINGS_EDEFAULT = null; /** * The cached value of the '{@link #getExcludeDefaultMappings() Exclude Default Mappings}' attribute. * * * @see #getExcludeDefaultMappings() * @generated * @ordered */ protected Boolean excludeDefaultMappings = EXCLUDE_DEFAULT_MAPPINGS_EDEFAULT; /** * * * @generated */ protected XmlEntity() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return EclipseLinkOrmPackage.Literals.XML_ENTITY; } /** * Returns the value of the 'Read Only' attribute. * *

* If the meaning of the 'Read Only' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Read Only' attribute. * @see #setReadOnly(Boolean) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlReadOnly_ReadOnly() * @model dataType="org.eclipse.emf.ecore.xml.type.BooleanObject" * @generated */ public Boolean getReadOnly() { return readOnly; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getReadOnly Read Only}' attribute. * * * @param value the new value of the 'Read Only' attribute. * @see #getReadOnly() * @generated */ public void setReadOnly(Boolean newReadOnly) { Boolean oldReadOnly = readOnly; readOnly = newReadOnly; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__READ_ONLY, oldReadOnly, readOnly)); } /** * Returns the value of the 'Customizer' containment reference. * *

* If the meaning of the 'Customizer' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Customizer' containment reference. * @see #setCustomizer(XmlClassReference) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlCustomizerHolder_Customizer() * @model containment="true" * @generated */ public XmlClassReference getCustomizer() { return customizer; } /** * * * @generated */ public NotificationChain basicSetCustomizer(XmlClassReference newCustomizer, NotificationChain msgs) { XmlClassReference oldCustomizer = customizer; customizer = newCustomizer; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER, oldCustomizer, newCustomizer); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getCustomizer Customizer}' containment reference. * * * @param value the new value of the 'Customizer' containment reference. * @see #getCustomizer() * @generated */ public void setCustomizer(XmlClassReference newCustomizer) { if (newCustomizer != customizer) { NotificationChain msgs = null; if (customizer != null) msgs = ((InternalEObject)customizer).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER, null, msgs); if (newCustomizer != null) msgs = ((InternalEObject)newCustomizer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER, null, msgs); msgs = basicSetCustomizer(newCustomizer, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER, newCustomizer, newCustomizer)); } /** * Returns the value of the 'Change Tracking' containment reference. * *

* If the meaning of the 'Change Tracking' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Change Tracking' containment reference. * @see #setChangeTracking(XmlChangeTracking) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlChangeTrackingHolder_ChangeTracking() * @model containment="true" * @generated */ public XmlChangeTracking getChangeTracking() { return changeTracking; } /** * * * @generated */ public NotificationChain basicSetChangeTracking(XmlChangeTracking newChangeTracking, NotificationChain msgs) { XmlChangeTracking oldChangeTracking = changeTracking; changeTracking = newChangeTracking; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING, oldChangeTracking, newChangeTracking); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getChangeTracking Change Tracking}' containment reference. * * * @param value the new value of the 'Change Tracking' containment reference. * @see #getChangeTracking() * @generated */ public void setChangeTracking(XmlChangeTracking newChangeTracking) { if (newChangeTracking != changeTracking) { NotificationChain msgs = null; if (changeTracking != null) msgs = ((InternalEObject)changeTracking).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING, null, msgs); if (newChangeTracking != null) msgs = ((InternalEObject)newChangeTracking).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING, null, msgs); msgs = basicSetChangeTracking(newChangeTracking, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING, newChangeTracking, newChangeTracking)); } /** * Returns the value of the 'Cache' containment reference. * *

* If the meaning of the 'Cache' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Cache' containment reference. * @see #setCache(XmlCache) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlCacheHolder_Cache() * @model containment="true" * @generated */ public XmlCache getCache() { return cache; } /** * * * @generated */ public NotificationChain basicSetCache(XmlCache newCache, NotificationChain msgs) { XmlCache oldCache = cache; cache = newCache; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CACHE, oldCache, newCache); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getCache Cache}' containment reference. * * * @param value the new value of the 'Cache' containment reference. * @see #getCache() * @generated */ public void setCache(XmlCache newCache) { if (newCache != cache) { NotificationChain msgs = null; if (cache != null) msgs = ((InternalEObject)cache).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CACHE, null, msgs); if (newCache != null) msgs = ((InternalEObject)newCache).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CACHE, null, msgs); msgs = basicSetCache(newCache, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CACHE, newCache, newCache)); } /** * Returns the value of the 'Existence Checking' attribute. * The default value is "". * The literals are from the enumeration {@link org.eclipse.jpt.eclipselink.core.resource.orm.ExistenceType}. * *

* If the meaning of the 'Existence Checking' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Existence Checking' attribute. * @see org.eclipse.jpt.eclipselink.core.resource.orm.ExistenceType * @see #setExistenceChecking(ExistenceType) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlCacheHolder_ExistenceChecking() * @model default="" * @generated */ public ExistenceType getExistenceChecking() { return existenceChecking; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getExistenceChecking Existence Checking}' attribute. * * * @param value the new value of the 'Existence Checking' attribute. * @see org.eclipse.jpt.eclipselink.core.resource.orm.ExistenceType * @see #getExistenceChecking() * @generated */ public void setExistenceChecking(ExistenceType newExistenceChecking) { ExistenceType oldExistenceChecking = existenceChecking; existenceChecking = newExistenceChecking == null ? EXISTENCE_CHECKING_EDEFAULT : newExistenceChecking; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__EXISTENCE_CHECKING, oldExistenceChecking, existenceChecking)); } /** * Returns the value of the 'Converters' containment reference list. * The list contents are of type {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlConverter}. * *

* If the meaning of the 'Converters' containment reference list isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Converters' containment reference list. * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlConvertersHolder_Converters() * @model containment="true" * @generated */ public EList getConverters() { if (converters == null) { converters = new EObjectContainmentEList(XmlConverter.class, this, EclipseLinkOrmPackage.XML_ENTITY__CONVERTERS); } return converters; } /** * Returns the value of the 'Type Converters' containment reference list. * The list contents are of type {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlTypeConverter}. * *

* If the meaning of the 'Type Converters' containment reference list isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Type Converters' containment reference list. * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlConvertersHolder_TypeConverters() * @model containment="true" * @generated */ public EList getTypeConverters() { if (typeConverters == null) { typeConverters = new EObjectContainmentEList(XmlTypeConverter.class, this, EclipseLinkOrmPackage.XML_ENTITY__TYPE_CONVERTERS); } return typeConverters; } /** * Returns the value of the 'Object Type Converters' containment reference list. * The list contents are of type {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlObjectTypeConverter}. * *

* If the meaning of the 'Object Type Converters' containment reference list isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Object Type Converters' containment reference list. * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlConvertersHolder_ObjectTypeConverters() * @model containment="true" * @generated */ public EList getObjectTypeConverters() { if (objectTypeConverters == null) { objectTypeConverters = new EObjectContainmentEList(XmlObjectTypeConverter.class, this, EclipseLinkOrmPackage.XML_ENTITY__OBJECT_TYPE_CONVERTERS); } return objectTypeConverters; } /** * Returns the value of the 'Struct Converters' containment reference list. * The list contents are of type {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlStructConverter}. * *

* If the meaning of the 'Struct Converters' containment reference list isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Struct Converters' containment reference list. * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlConvertersHolder_StructConverters() * @model containment="true" * @generated */ public EList getStructConverters() { if (structConverters == null) { structConverters = new EObjectContainmentEList(XmlStructConverter.class, this, EclipseLinkOrmPackage.XML_ENTITY__STRUCT_CONVERTERS); } return structConverters; } /** * Returns the value of the 'Optimistic Locking' containment reference. * *

* If the meaning of the 'Optimistic Locking' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Optimistic Locking' containment reference. * @see #setOptimisticLocking(XmlOptimisticLocking) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity_OptimisticLocking() * @model containment="true" * @generated */ public XmlOptimisticLocking getOptimisticLocking() { return optimisticLocking; } /** * * * @generated */ public NotificationChain basicSetOptimisticLocking(XmlOptimisticLocking newOptimisticLocking, NotificationChain msgs) { XmlOptimisticLocking oldOptimisticLocking = optimisticLocking; optimisticLocking = newOptimisticLocking; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__OPTIMISTIC_LOCKING, oldOptimisticLocking, newOptimisticLocking); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getOptimisticLocking Optimistic Locking}' containment reference. * * * @param value the new value of the 'Optimistic Locking' containment reference. * @see #getOptimisticLocking() * @generated */ public void setOptimisticLocking(XmlOptimisticLocking newOptimisticLocking) { if (newOptimisticLocking != optimisticLocking) { NotificationChain msgs = null; if (optimisticLocking != null) msgs = ((InternalEObject)optimisticLocking).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__OPTIMISTIC_LOCKING, null, msgs); if (newOptimisticLocking != null) msgs = ((InternalEObject)newOptimisticLocking).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__OPTIMISTIC_LOCKING, null, msgs); msgs = basicSetOptimisticLocking(newOptimisticLocking, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__OPTIMISTIC_LOCKING, newOptimisticLocking, newOptimisticLocking)); } /** * Returns the value of the 'Copy Policy' containment reference. * *

* If the meaning of the 'Copy Policy' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Copy Policy' containment reference. * @see #setCopyPolicy(XmlCopyPolicy) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity_CopyPolicy() * @model containment="true" * @generated */ public XmlCopyPolicy getCopyPolicy() { return copyPolicy; } /** * * * @generated */ public NotificationChain basicSetCopyPolicy(XmlCopyPolicy newCopyPolicy, NotificationChain msgs) { XmlCopyPolicy oldCopyPolicy = copyPolicy; copyPolicy = newCopyPolicy; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__COPY_POLICY, oldCopyPolicy, newCopyPolicy); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getCopyPolicy Copy Policy}' containment reference. * * * @param value the new value of the 'Copy Policy' containment reference. * @see #getCopyPolicy() * @generated */ public void setCopyPolicy(XmlCopyPolicy newCopyPolicy) { if (newCopyPolicy != copyPolicy) { NotificationChain msgs = null; if (copyPolicy != null) msgs = ((InternalEObject)copyPolicy).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__COPY_POLICY, null, msgs); if (newCopyPolicy != null) msgs = ((InternalEObject)newCopyPolicy).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__COPY_POLICY, null, msgs); msgs = basicSetCopyPolicy(newCopyPolicy, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__COPY_POLICY, newCopyPolicy, newCopyPolicy)); } /** * Returns the value of the 'Instantiation Copy Policy' containment reference. * *

* If the meaning of the 'Instantiation Copy Policy' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Instantiation Copy Policy' containment reference. * @see #setInstantiationCopyPolicy(XmlInstantiationCopyPolicy) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity_InstantiationCopyPolicy() * @model containment="true" * @generated */ public XmlInstantiationCopyPolicy getInstantiationCopyPolicy() { return instantiationCopyPolicy; } /** * * * @generated */ public NotificationChain basicSetInstantiationCopyPolicy(XmlInstantiationCopyPolicy newInstantiationCopyPolicy, NotificationChain msgs) { XmlInstantiationCopyPolicy oldInstantiationCopyPolicy = instantiationCopyPolicy; instantiationCopyPolicy = newInstantiationCopyPolicy; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__INSTANTIATION_COPY_POLICY, oldInstantiationCopyPolicy, newInstantiationCopyPolicy); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getInstantiationCopyPolicy Instantiation Copy Policy}' containment reference. * * * @param value the new value of the 'Instantiation Copy Policy' containment reference. * @see #getInstantiationCopyPolicy() * @generated */ public void setInstantiationCopyPolicy(XmlInstantiationCopyPolicy newInstantiationCopyPolicy) { if (newInstantiationCopyPolicy != instantiationCopyPolicy) { NotificationChain msgs = null; if (instantiationCopyPolicy != null) msgs = ((InternalEObject)instantiationCopyPolicy).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__INSTANTIATION_COPY_POLICY, null, msgs); if (newInstantiationCopyPolicy != null) msgs = ((InternalEObject)newInstantiationCopyPolicy).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__INSTANTIATION_COPY_POLICY, null, msgs); msgs = basicSetInstantiationCopyPolicy(newInstantiationCopyPolicy, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__INSTANTIATION_COPY_POLICY, newInstantiationCopyPolicy, newInstantiationCopyPolicy)); } /** * Returns the value of the 'Clone Copy Policy' containment reference. * *

* If the meaning of the 'Clone Copy Policy' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Clone Copy Policy' containment reference. * @see #setCloneCopyPolicy(XmlCloneCopyPolicy) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity_CloneCopyPolicy() * @model containment="true" * @generated */ public XmlCloneCopyPolicy getCloneCopyPolicy() { return cloneCopyPolicy; } /** * * * @generated */ public NotificationChain basicSetCloneCopyPolicy(XmlCloneCopyPolicy newCloneCopyPolicy, NotificationChain msgs) { XmlCloneCopyPolicy oldCloneCopyPolicy = cloneCopyPolicy; cloneCopyPolicy = newCloneCopyPolicy; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CLONE_COPY_POLICY, oldCloneCopyPolicy, newCloneCopyPolicy); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getCloneCopyPolicy Clone Copy Policy}' containment reference. * * * @param value the new value of the 'Clone Copy Policy' containment reference. * @see #getCloneCopyPolicy() * @generated */ public void setCloneCopyPolicy(XmlCloneCopyPolicy newCloneCopyPolicy) { if (newCloneCopyPolicy != cloneCopyPolicy) { NotificationChain msgs = null; if (cloneCopyPolicy != null) msgs = ((InternalEObject)cloneCopyPolicy).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CLONE_COPY_POLICY, null, msgs); if (newCloneCopyPolicy != null) msgs = ((InternalEObject)newCloneCopyPolicy).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CLONE_COPY_POLICY, null, msgs); msgs = basicSetCloneCopyPolicy(newCloneCopyPolicy, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CLONE_COPY_POLICY, newCloneCopyPolicy, newCloneCopyPolicy)); } /** * Returns the value of the 'Named Stored Procedure Queries' containment reference list. * The list contents are of type {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlNamedStoredProcedureQuery}. * *

* If the meaning of the 'Named Stored Procedure Queries' containment reference list isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Named Stored Procedure Queries' containment reference list. * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlQueryContainer_NamedStoredProcedureQueries() * @model containment="true" * @generated */ public EList getNamedStoredProcedureQueries() { if (namedStoredProcedureQueries == null) { namedStoredProcedureQueries = new EObjectContainmentEList(XmlNamedStoredProcedureQuery.class, this, EclipseLinkOrmPackage.XML_ENTITY__NAMED_STORED_PROCEDURE_QUERIES); } return namedStoredProcedureQueries; } /** * Returns the value of the 'Properties' containment reference list. * The list contents are of type {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlProperty}. * *

* If the meaning of the 'Properties' containment reference list isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Properties' containment reference list. * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPropertyContainer_Properties() * @model containment="true" * @generated */ public EList getProperties() { if (properties == null) { properties = new EObjectContainmentEList(XmlProperty.class, this, EclipseLinkOrmPackage.XML_ENTITY__PROPERTIES); } return properties; } /** * Returns the value of the 'Primary Key' containment reference. * *

* If the meaning of the 'Primary Key' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Primary Key' containment reference. * @see #setPrimaryKey(XmlPrimaryKey) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity_1_1_PrimaryKey() * @model containment="true" * @generated */ public XmlPrimaryKey getPrimaryKey() { return primaryKey; } /** * * * @generated */ public NotificationChain basicSetPrimaryKey(XmlPrimaryKey newPrimaryKey, NotificationChain msgs) { XmlPrimaryKey oldPrimaryKey = primaryKey; primaryKey = newPrimaryKey; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY, oldPrimaryKey, newPrimaryKey); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getPrimaryKey Primary Key}' containment reference. * * * @param value the new value of the 'Primary Key' containment reference. * @see #getPrimaryKey() * @generated */ public void setPrimaryKey(XmlPrimaryKey newPrimaryKey) { if (newPrimaryKey != primaryKey) { NotificationChain msgs = null; if (primaryKey != null) msgs = ((InternalEObject)primaryKey).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY, null, msgs); if (newPrimaryKey != null) msgs = ((InternalEObject)newPrimaryKey).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY, null, msgs); msgs = basicSetPrimaryKey(newPrimaryKey, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY, newPrimaryKey, newPrimaryKey)); } /** * Returns the value of the 'Cache Interceptor' containment reference. * *

* If the meaning of the 'Cache Interceptor' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Cache Interceptor' containment reference. * @see #setCacheInterceptor(XmlClassReference) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity_2_0_CacheInterceptor() * @model containment="true" * @generated */ public XmlClassReference getCacheInterceptor() { return cacheInterceptor; } /** * * * @generated */ public NotificationChain basicSetCacheInterceptor(XmlClassReference newCacheInterceptor, NotificationChain msgs) { XmlClassReference oldCacheInterceptor = cacheInterceptor; cacheInterceptor = newCacheInterceptor; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR, oldCacheInterceptor, newCacheInterceptor); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getCacheInterceptor Cache Interceptor}' containment reference. * * * @param value the new value of the 'Cache Interceptor' containment reference. * @see #getCacheInterceptor() * @generated */ public void setCacheInterceptor(XmlClassReference newCacheInterceptor) { if (newCacheInterceptor != cacheInterceptor) { NotificationChain msgs = null; if (cacheInterceptor != null) msgs = ((InternalEObject)cacheInterceptor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR, null, msgs); if (newCacheInterceptor != null) msgs = ((InternalEObject)newCacheInterceptor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR, null, msgs); msgs = basicSetCacheInterceptor(newCacheInterceptor, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR, newCacheInterceptor, newCacheInterceptor)); } /** * Returns the value of the 'Query Redirectors' containment reference. * *

* If the meaning of the 'Query Redirectors' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Query Redirectors' containment reference. * @see #setQueryRedirectors(XmlQueryRedirectors) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity_2_0_QueryRedirectors() * @model containment="true" * @generated */ public XmlQueryRedirectors getQueryRedirectors() { return queryRedirectors; } /** * * * @generated */ public NotificationChain basicSetQueryRedirectors(XmlQueryRedirectors newQueryRedirectors, NotificationChain msgs) { XmlQueryRedirectors oldQueryRedirectors = queryRedirectors; queryRedirectors = newQueryRedirectors; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS, oldQueryRedirectors, newQueryRedirectors); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getQueryRedirectors Query Redirectors}' containment reference. * * * @param value the new value of the 'Query Redirectors' containment reference. * @see #getQueryRedirectors() * @generated */ public void setQueryRedirectors(XmlQueryRedirectors newQueryRedirectors) { if (newQueryRedirectors != queryRedirectors) { NotificationChain msgs = null; if (queryRedirectors != null) msgs = ((InternalEObject)queryRedirectors).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS, null, msgs); if (newQueryRedirectors != null) msgs = ((InternalEObject)newQueryRedirectors).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS, null, msgs); msgs = basicSetQueryRedirectors(newQueryRedirectors, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS, newQueryRedirectors, newQueryRedirectors)); } /** * Returns the value of the 'Access Methods' containment reference. * *

* If the meaning of the 'Access Methods' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Access Methods' containment reference. * @see #setAccessMethods(XmlAccessMethods) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlAccessMethodsHolder_AccessMethods() * @model containment="true" * @generated */ public XmlAccessMethods getAccessMethods() { return accessMethods; } /** * * * @generated */ public NotificationChain basicSetAccessMethods(XmlAccessMethods newAccessMethods, NotificationChain msgs) { XmlAccessMethods oldAccessMethods = accessMethods; accessMethods = newAccessMethods; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS, oldAccessMethods, newAccessMethods); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getAccessMethods Access Methods}' containment reference. * * * @param value the new value of the 'Access Methods' containment reference. * @see #getAccessMethods() * @generated */ public void setAccessMethods(XmlAccessMethods newAccessMethods) { if (newAccessMethods != accessMethods) { NotificationChain msgs = null; if (accessMethods != null) msgs = ((InternalEObject)accessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS, null, msgs); if (newAccessMethods != null) msgs = ((InternalEObject)newAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS, null, msgs); msgs = basicSetAccessMethods(newAccessMethods, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS, newAccessMethods, newAccessMethods)); } /** * Returns the value of the 'Fetch Groups' containment reference list. * The list contents are of type {@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlFetchGroup}. * *

* If the meaning of the 'Fetch Groups' containment reference list isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Fetch Groups' containment reference list. * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlFetchGroupContainer_2_1_FetchGroups() * @model containment="true" * @generated */ public EList getFetchGroups() { if (fetchGroups == null) { fetchGroups = new EObjectContainmentEList(XmlFetchGroup.class, this, EclipseLinkOrmPackage.XML_ENTITY__FETCH_GROUPS); } return fetchGroups; } /** * Returns the value of the 'Class Extractor' containment reference. * *

* If the meaning of the 'Class Extractor' containment reference isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Class Extractor' containment reference. * @see #setClassExtractor(XmlClassReference) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity_2_1_ClassExtractor() * @model containment="true" * @generated */ public XmlClassReference getClassExtractor() { return classExtractor; } /** * * * @generated */ public NotificationChain basicSetClassExtractor(XmlClassReference newClassExtractor, NotificationChain msgs) { XmlClassReference oldClassExtractor = classExtractor; classExtractor = newClassExtractor; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR, oldClassExtractor, newClassExtractor); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getClassExtractor Class Extractor}' containment reference. * * * @param value the new value of the 'Class Extractor' containment reference. * @see #getClassExtractor() * @generated */ public void setClassExtractor(XmlClassReference newClassExtractor) { if (newClassExtractor != classExtractor) { NotificationChain msgs = null; if (classExtractor != null) msgs = ((InternalEObject)classExtractor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR, null, msgs); if (newClassExtractor != null) msgs = ((InternalEObject)newClassExtractor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR, null, msgs); msgs = basicSetClassExtractor(newClassExtractor, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR, newClassExtractor, newClassExtractor)); } /** * Returns the value of the 'Parent Class' attribute. * *

* If the meaning of the 'Parent Class' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Parent Class' attribute. * @see #setParentClass(String) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity_2_1_ParentClass() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * @generated */ public String getParentClass() { return parentClass; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getParentClass Parent Class}' attribute. * * * @param value the new value of the 'Parent Class' attribute. * @see #getParentClass() * @generated */ public void setParentClass(String newParentClass) { String oldParentClass = parentClass; parentClass = newParentClass; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__PARENT_CLASS, oldParentClass, parentClass)); } /** * Returns the value of the 'Exclude Default Mappings' attribute. * *

* If the meaning of the 'Exclude Default Mappings' attribute isn't clear, * there really should be more of a description here... *

* * @return the value of the 'Exclude Default Mappings' attribute. * @see #setExcludeDefaultMappings(Boolean) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlEntity_ExcludeDefaultMappings() * @model dataType="org.eclipse.emf.ecore.xml.type.BooleanObject" * @generated */ public Boolean getExcludeDefaultMappings() { return excludeDefaultMappings; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlEntity#getExcludeDefaultMappings Exclude Default Mappings}' attribute. * * * @param value the new value of the 'Exclude Default Mappings' attribute. * @see #getExcludeDefaultMappings() * @generated */ public void setExcludeDefaultMappings(Boolean newExcludeDefaultMappings) { Boolean oldExcludeDefaultMappings = excludeDefaultMappings; excludeDefaultMappings = newExcludeDefaultMappings; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_ENTITY__EXCLUDE_DEFAULT_MAPPINGS, oldExcludeDefaultMappings, excludeDefaultMappings)); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY: return basicSetPrimaryKey(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR: return basicSetCacheInterceptor(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS: return basicSetQueryRedirectors(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS: return basicSetAccessMethods(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__FETCH_GROUPS: return ((InternalEList)getFetchGroups()).basicRemove(otherEnd, msgs); case EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR: return basicSetClassExtractor(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER: return basicSetCustomizer(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING: return basicSetChangeTracking(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__CACHE: return basicSetCache(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__CONVERTERS: return ((InternalEList)getConverters()).basicRemove(otherEnd, msgs); case EclipseLinkOrmPackage.XML_ENTITY__TYPE_CONVERTERS: return ((InternalEList)getTypeConverters()).basicRemove(otherEnd, msgs); case EclipseLinkOrmPackage.XML_ENTITY__OBJECT_TYPE_CONVERTERS: return ((InternalEList)getObjectTypeConverters()).basicRemove(otherEnd, msgs); case EclipseLinkOrmPackage.XML_ENTITY__STRUCT_CONVERTERS: return ((InternalEList)getStructConverters()).basicRemove(otherEnd, msgs); case EclipseLinkOrmPackage.XML_ENTITY__NAMED_STORED_PROCEDURE_QUERIES: return ((InternalEList)getNamedStoredProcedureQueries()).basicRemove(otherEnd, msgs); case EclipseLinkOrmPackage.XML_ENTITY__PROPERTIES: return ((InternalEList)getProperties()).basicRemove(otherEnd, msgs); case EclipseLinkOrmPackage.XML_ENTITY__OPTIMISTIC_LOCKING: return basicSetOptimisticLocking(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__COPY_POLICY: return basicSetCopyPolicy(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__INSTANTIATION_COPY_POLICY: return basicSetInstantiationCopyPolicy(null, msgs); case EclipseLinkOrmPackage.XML_ENTITY__CLONE_COPY_POLICY: return basicSetCloneCopyPolicy(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY: return getPrimaryKey(); case EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR: return getCacheInterceptor(); case EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS: return getQueryRedirectors(); case EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS: return getAccessMethods(); case EclipseLinkOrmPackage.XML_ENTITY__FETCH_GROUPS: return getFetchGroups(); case EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR: return getClassExtractor(); case EclipseLinkOrmPackage.XML_ENTITY__PARENT_CLASS: return getParentClass(); case EclipseLinkOrmPackage.XML_ENTITY__READ_ONLY: return getReadOnly(); case EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER: return getCustomizer(); case EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING: return getChangeTracking(); case EclipseLinkOrmPackage.XML_ENTITY__CACHE: return getCache(); case EclipseLinkOrmPackage.XML_ENTITY__EXISTENCE_CHECKING: return getExistenceChecking(); case EclipseLinkOrmPackage.XML_ENTITY__CONVERTERS: return getConverters(); case EclipseLinkOrmPackage.XML_ENTITY__TYPE_CONVERTERS: return getTypeConverters(); case EclipseLinkOrmPackage.XML_ENTITY__OBJECT_TYPE_CONVERTERS: return getObjectTypeConverters(); case EclipseLinkOrmPackage.XML_ENTITY__STRUCT_CONVERTERS: return getStructConverters(); case EclipseLinkOrmPackage.XML_ENTITY__NAMED_STORED_PROCEDURE_QUERIES: return getNamedStoredProcedureQueries(); case EclipseLinkOrmPackage.XML_ENTITY__PROPERTIES: return getProperties(); case EclipseLinkOrmPackage.XML_ENTITY__OPTIMISTIC_LOCKING: return getOptimisticLocking(); case EclipseLinkOrmPackage.XML_ENTITY__COPY_POLICY: return getCopyPolicy(); case EclipseLinkOrmPackage.XML_ENTITY__INSTANTIATION_COPY_POLICY: return getInstantiationCopyPolicy(); case EclipseLinkOrmPackage.XML_ENTITY__CLONE_COPY_POLICY: return getCloneCopyPolicy(); case EclipseLinkOrmPackage.XML_ENTITY__EXCLUDE_DEFAULT_MAPPINGS: return getExcludeDefaultMappings(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY: setPrimaryKey((XmlPrimaryKey)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR: setCacheInterceptor((XmlClassReference)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS: setQueryRedirectors((XmlQueryRedirectors)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS: setAccessMethods((XmlAccessMethods)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__FETCH_GROUPS: getFetchGroups().clear(); getFetchGroups().addAll((Collection)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR: setClassExtractor((XmlClassReference)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__PARENT_CLASS: setParentClass((String)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__READ_ONLY: setReadOnly((Boolean)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER: setCustomizer((XmlClassReference)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING: setChangeTracking((XmlChangeTracking)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__CACHE: setCache((XmlCache)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__EXISTENCE_CHECKING: setExistenceChecking((ExistenceType)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__CONVERTERS: getConverters().clear(); getConverters().addAll((Collection)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__TYPE_CONVERTERS: getTypeConverters().clear(); getTypeConverters().addAll((Collection)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__OBJECT_TYPE_CONVERTERS: getObjectTypeConverters().clear(); getObjectTypeConverters().addAll((Collection)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__STRUCT_CONVERTERS: getStructConverters().clear(); getStructConverters().addAll((Collection)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__NAMED_STORED_PROCEDURE_QUERIES: getNamedStoredProcedureQueries().clear(); getNamedStoredProcedureQueries().addAll((Collection)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__PROPERTIES: getProperties().clear(); getProperties().addAll((Collection)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__OPTIMISTIC_LOCKING: setOptimisticLocking((XmlOptimisticLocking)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__COPY_POLICY: setCopyPolicy((XmlCopyPolicy)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__INSTANTIATION_COPY_POLICY: setInstantiationCopyPolicy((XmlInstantiationCopyPolicy)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__CLONE_COPY_POLICY: setCloneCopyPolicy((XmlCloneCopyPolicy)newValue); return; case EclipseLinkOrmPackage.XML_ENTITY__EXCLUDE_DEFAULT_MAPPINGS: setExcludeDefaultMappings((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY: setPrimaryKey((XmlPrimaryKey)null); return; case EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR: setCacheInterceptor((XmlClassReference)null); return; case EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS: setQueryRedirectors((XmlQueryRedirectors)null); return; case EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS: setAccessMethods((XmlAccessMethods)null); return; case EclipseLinkOrmPackage.XML_ENTITY__FETCH_GROUPS: getFetchGroups().clear(); return; case EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR: setClassExtractor((XmlClassReference)null); return; case EclipseLinkOrmPackage.XML_ENTITY__PARENT_CLASS: setParentClass(PARENT_CLASS_EDEFAULT); return; case EclipseLinkOrmPackage.XML_ENTITY__READ_ONLY: setReadOnly(READ_ONLY_EDEFAULT); return; case EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER: setCustomizer((XmlClassReference)null); return; case EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING: setChangeTracking((XmlChangeTracking)null); return; case EclipseLinkOrmPackage.XML_ENTITY__CACHE: setCache((XmlCache)null); return; case EclipseLinkOrmPackage.XML_ENTITY__EXISTENCE_CHECKING: setExistenceChecking(EXISTENCE_CHECKING_EDEFAULT); return; case EclipseLinkOrmPackage.XML_ENTITY__CONVERTERS: getConverters().clear(); return; case EclipseLinkOrmPackage.XML_ENTITY__TYPE_CONVERTERS: getTypeConverters().clear(); return; case EclipseLinkOrmPackage.XML_ENTITY__OBJECT_TYPE_CONVERTERS: getObjectTypeConverters().clear(); return; case EclipseLinkOrmPackage.XML_ENTITY__STRUCT_CONVERTERS: getStructConverters().clear(); return; case EclipseLinkOrmPackage.XML_ENTITY__NAMED_STORED_PROCEDURE_QUERIES: getNamedStoredProcedureQueries().clear(); return; case EclipseLinkOrmPackage.XML_ENTITY__PROPERTIES: getProperties().clear(); return; case EclipseLinkOrmPackage.XML_ENTITY__OPTIMISTIC_LOCKING: setOptimisticLocking((XmlOptimisticLocking)null); return; case EclipseLinkOrmPackage.XML_ENTITY__COPY_POLICY: setCopyPolicy((XmlCopyPolicy)null); return; case EclipseLinkOrmPackage.XML_ENTITY__INSTANTIATION_COPY_POLICY: setInstantiationCopyPolicy((XmlInstantiationCopyPolicy)null); return; case EclipseLinkOrmPackage.XML_ENTITY__CLONE_COPY_POLICY: setCloneCopyPolicy((XmlCloneCopyPolicy)null); return; case EclipseLinkOrmPackage.XML_ENTITY__EXCLUDE_DEFAULT_MAPPINGS: setExcludeDefaultMappings(EXCLUDE_DEFAULT_MAPPINGS_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY: return primaryKey != null; case EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR: return cacheInterceptor != null; case EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS: return queryRedirectors != null; case EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS: return accessMethods != null; case EclipseLinkOrmPackage.XML_ENTITY__FETCH_GROUPS: return fetchGroups != null && !fetchGroups.isEmpty(); case EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR: return classExtractor != null; case EclipseLinkOrmPackage.XML_ENTITY__PARENT_CLASS: return PARENT_CLASS_EDEFAULT == null ? parentClass != null : !PARENT_CLASS_EDEFAULT.equals(parentClass); case EclipseLinkOrmPackage.XML_ENTITY__READ_ONLY: return READ_ONLY_EDEFAULT == null ? readOnly != null : !READ_ONLY_EDEFAULT.equals(readOnly); case EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER: return customizer != null; case EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING: return changeTracking != null; case EclipseLinkOrmPackage.XML_ENTITY__CACHE: return cache != null; case EclipseLinkOrmPackage.XML_ENTITY__EXISTENCE_CHECKING: return existenceChecking != EXISTENCE_CHECKING_EDEFAULT; case EclipseLinkOrmPackage.XML_ENTITY__CONVERTERS: return converters != null && !converters.isEmpty(); case EclipseLinkOrmPackage.XML_ENTITY__TYPE_CONVERTERS: return typeConverters != null && !typeConverters.isEmpty(); case EclipseLinkOrmPackage.XML_ENTITY__OBJECT_TYPE_CONVERTERS: return objectTypeConverters != null && !objectTypeConverters.isEmpty(); case EclipseLinkOrmPackage.XML_ENTITY__STRUCT_CONVERTERS: return structConverters != null && !structConverters.isEmpty(); case EclipseLinkOrmPackage.XML_ENTITY__NAMED_STORED_PROCEDURE_QUERIES: return namedStoredProcedureQueries != null && !namedStoredProcedureQueries.isEmpty(); case EclipseLinkOrmPackage.XML_ENTITY__PROPERTIES: return properties != null && !properties.isEmpty(); case EclipseLinkOrmPackage.XML_ENTITY__OPTIMISTIC_LOCKING: return optimisticLocking != null; case EclipseLinkOrmPackage.XML_ENTITY__COPY_POLICY: return copyPolicy != null; case EclipseLinkOrmPackage.XML_ENTITY__INSTANTIATION_COPY_POLICY: return instantiationCopyPolicy != null; case EclipseLinkOrmPackage.XML_ENTITY__CLONE_COPY_POLICY: return cloneCopyPolicy != null; case EclipseLinkOrmPackage.XML_ENTITY__EXCLUDE_DEFAULT_MAPPINGS: return EXCLUDE_DEFAULT_MAPPINGS_EDEFAULT == null ? excludeDefaultMappings != null : !EXCLUDE_DEFAULT_MAPPINGS_EDEFAULT.equals(excludeDefaultMappings); } return super.eIsSet(featureID); } /** * * * @generated */ @Override public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { if (baseClass == XmlEntity_1_1.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY: return EclipseLinkOrmV1_1Package.XML_ENTITY_11__PRIMARY_KEY; default: return -1; } } if (baseClass == XmlEntity_2_0.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR: return EclipseLinkOrmV2_0Package.XML_ENTITY_20__CACHE_INTERCEPTOR; case EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS: return EclipseLinkOrmV2_0Package.XML_ENTITY_20__QUERY_REDIRECTORS; default: return -1; } } if (baseClass == XmlAccessMethodsHolder.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS: return EclipseLinkOrmPackage.XML_ACCESS_METHODS_HOLDER__ACCESS_METHODS; default: return -1; } } if (baseClass == XmlFetchGroupContainer_2_1.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__FETCH_GROUPS: return EclipseLinkOrmV2_1Package.XML_FETCH_GROUP_CONTAINER_21__FETCH_GROUPS; default: return -1; } } if (baseClass == XmlEntity_2_1.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR: return EclipseLinkOrmV2_1Package.XML_ENTITY_21__CLASS_EXTRACTOR; case EclipseLinkOrmPackage.XML_ENTITY__PARENT_CLASS: return EclipseLinkOrmV2_1Package.XML_ENTITY_21__PARENT_CLASS; default: return -1; } } if (baseClass == XmlReadOnly.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__READ_ONLY: return EclipseLinkOrmPackage.XML_READ_ONLY__READ_ONLY; default: return -1; } } if (baseClass == XmlCustomizerHolder.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER: return EclipseLinkOrmPackage.XML_CUSTOMIZER_HOLDER__CUSTOMIZER; default: return -1; } } if (baseClass == XmlChangeTrackingHolder.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING: return EclipseLinkOrmPackage.XML_CHANGE_TRACKING_HOLDER__CHANGE_TRACKING; default: return -1; } } if (baseClass == XmlCacheHolder.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__CACHE: return EclipseLinkOrmPackage.XML_CACHE_HOLDER__CACHE; case EclipseLinkOrmPackage.XML_ENTITY__EXISTENCE_CHECKING: return EclipseLinkOrmPackage.XML_CACHE_HOLDER__EXISTENCE_CHECKING; default: return -1; } } if (baseClass == XmlConvertersHolder.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__CONVERTERS: return EclipseLinkOrmPackage.XML_CONVERTERS_HOLDER__CONVERTERS; case EclipseLinkOrmPackage.XML_ENTITY__TYPE_CONVERTERS: return EclipseLinkOrmPackage.XML_CONVERTERS_HOLDER__TYPE_CONVERTERS; case EclipseLinkOrmPackage.XML_ENTITY__OBJECT_TYPE_CONVERTERS: return EclipseLinkOrmPackage.XML_CONVERTERS_HOLDER__OBJECT_TYPE_CONVERTERS; case EclipseLinkOrmPackage.XML_ENTITY__STRUCT_CONVERTERS: return EclipseLinkOrmPackage.XML_CONVERTERS_HOLDER__STRUCT_CONVERTERS; default: return -1; } } if (baseClass == XmlQueryContainer.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__NAMED_STORED_PROCEDURE_QUERIES: return EclipseLinkOrmPackage.XML_QUERY_CONTAINER__NAMED_STORED_PROCEDURE_QUERIES; default: return -1; } } if (baseClass == XmlPropertyContainer.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_ENTITY__PROPERTIES: return EclipseLinkOrmPackage.XML_PROPERTY_CONTAINER__PROPERTIES; default: return -1; } } return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); } /** * * * @generated */ @Override public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { if (baseClass == XmlEntity_1_1.class) { switch (baseFeatureID) { case EclipseLinkOrmV1_1Package.XML_ENTITY_11__PRIMARY_KEY: return EclipseLinkOrmPackage.XML_ENTITY__PRIMARY_KEY; default: return -1; } } if (baseClass == XmlEntity_2_0.class) { switch (baseFeatureID) { case EclipseLinkOrmV2_0Package.XML_ENTITY_20__CACHE_INTERCEPTOR: return EclipseLinkOrmPackage.XML_ENTITY__CACHE_INTERCEPTOR; case EclipseLinkOrmV2_0Package.XML_ENTITY_20__QUERY_REDIRECTORS: return EclipseLinkOrmPackage.XML_ENTITY__QUERY_REDIRECTORS; default: return -1; } } if (baseClass == XmlAccessMethodsHolder.class) { switch (baseFeatureID) { case EclipseLinkOrmPackage.XML_ACCESS_METHODS_HOLDER__ACCESS_METHODS: return EclipseLinkOrmPackage.XML_ENTITY__ACCESS_METHODS; default: return -1; } } if (baseClass == XmlFetchGroupContainer_2_1.class) { switch (baseFeatureID) { case EclipseLinkOrmV2_1Package.XML_FETCH_GROUP_CONTAINER_21__FETCH_GROUPS: return EclipseLinkOrmPackage.XML_ENTITY__FETCH_GROUPS; default: return -1; } } if (baseClass == XmlEntity_2_1.class) { switch (baseFeatureID) { case EclipseLinkOrmV2_1Package.XML_ENTITY_21__CLASS_EXTRACTOR: return EclipseLinkOrmPackage.XML_ENTITY__CLASS_EXTRACTOR; case EclipseLinkOrmV2_1Package.XML_ENTITY_21__PARENT_CLASS: return EclipseLinkOrmPackage.XML_ENTITY__PARENT_CLASS; default: return -1; } } if (baseClass == XmlReadOnly.class) { switch (baseFeatureID) { case EclipseLinkOrmPackage.XML_READ_ONLY__READ_ONLY: return EclipseLinkOrmPackage.XML_ENTITY__READ_ONLY; default: return -1; } } if (baseClass == XmlCustomizerHolder.class) { switch (baseFeatureID) { case EclipseLinkOrmPackage.XML_CUSTOMIZER_HOLDER__CUSTOMIZER: return EclipseLinkOrmPackage.XML_ENTITY__CUSTOMIZER; default: return -1; } } if (baseClass == XmlChangeTrackingHolder.class) { switch (baseFeatureID) { case EclipseLinkOrmPackage.XML_CHANGE_TRACKING_HOLDER__CHANGE_TRACKING: return EclipseLinkOrmPackage.XML_ENTITY__CHANGE_TRACKING; default: return -1; } } if (baseClass == XmlCacheHolder.class) { switch (baseFeatureID) { case EclipseLinkOrmPackage.XML_CACHE_HOLDER__CACHE: return EclipseLinkOrmPackage.XML_ENTITY__CACHE; case EclipseLinkOrmPackage.XML_CACHE_HOLDER__EXISTENCE_CHECKING: return EclipseLinkOrmPackage.XML_ENTITY__EXISTENCE_CHECKING; default: return -1; } } if (baseClass == XmlConvertersHolder.class) { switch (baseFeatureID) { case EclipseLinkOrmPackage.XML_CONVERTERS_HOLDER__CONVERTERS: return EclipseLinkOrmPackage.XML_ENTITY__CONVERTERS; case EclipseLinkOrmPackage.XML_CONVERTERS_HOLDER__TYPE_CONVERTERS: return EclipseLinkOrmPackage.XML_ENTITY__TYPE_CONVERTERS; case EclipseLinkOrmPackage.XML_CONVERTERS_HOLDER__OBJECT_TYPE_CONVERTERS: return EclipseLinkOrmPackage.XML_ENTITY__OBJECT_TYPE_CONVERTERS; case EclipseLinkOrmPackage.XML_CONVERTERS_HOLDER__STRUCT_CONVERTERS: return EclipseLinkOrmPackage.XML_ENTITY__STRUCT_CONVERTERS; default: return -1; } } if (baseClass == XmlQueryContainer.class) { switch (baseFeatureID) { case EclipseLinkOrmPackage.XML_QUERY_CONTAINER__NAMED_STORED_PROCEDURE_QUERIES: return EclipseLinkOrmPackage.XML_ENTITY__NAMED_STORED_PROCEDURE_QUERIES; default: return -1; } } if (baseClass == XmlPropertyContainer.class) { switch (baseFeatureID) { case EclipseLinkOrmPackage.XML_PROPERTY_CONTAINER__PROPERTIES: return EclipseLinkOrmPackage.XML_ENTITY__PROPERTIES; default: return -1; } } return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); } /** * * * @generated */ @Override public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (parentClass: "); result.append(parentClass); result.append(", readOnly: "); result.append(readOnly); result.append(", existenceChecking: "); result.append(existenceChecking); result.append(", excludeDefaultMappings: "); result.append(excludeDefaultMappings); result.append(')'); return result.toString(); } public TextRange getReadOnlyTextRange() { return getAttributeTextRange(EclipseLink.READ_ONLY); } // ********** translators ********** public static Translator buildTranslator(String elementName, EStructuralFeature structuralFeature) { return new SimpleTranslator( elementName, structuralFeature, EclipseLinkOrmPackage.eINSTANCE.getXmlEntity(), buildTranslatorChildren()); } private static Translator[] buildTranslatorChildren() { return new Translator[] { buildNameTranslator(), buildClassTranslator(), buildParentClassTranslator(), buildAccessTranslator(), buildCacheableTranslator(), buildMetadataCompleteTranslator(), buildReadOnlyTranslator(), buildExistenceCheckingTranslator(), buildExcludeDefaultMappingsTranslator(), buildDescriptionTranslator(), buildAccessMethodsTranslator(), buildCustomizerTranslator(), buildChangeTrackingTranslator(), buildTableTranslator(), buildSecondaryTableTranslator(), buildPrimaryKeyJoinColumnTranslator(), buildIdClassTranslator(), buildPrimaryKeyTranslator(), buildInheritanceTranslator(), buildDiscriminatorValueTranslator(), buildDiscriminatorColumnTranslator(), buildClassExtractorTranslator(), buildOptimisticLockingTranslator(), buildCacheTranslator(), buildCacheInterceptorTranslator(), buildFetchGroupsTranslator(), buildConverterTranslator(), buildTypeConverterTranslator(), buildObjectTypeConverterTranslator(), buildStructConverterTranslator(), buildCopyPolicyTranslator(), buildInstantiationCoypPolicyTranslator(), buildCloneCopyPolicyTranslator(), buildSequenceGeneratorTranslator(), buildTableGeneratorTranslator(), buildNamedQueryTranslator(), buildNamedNativeQueryTranslator(), buildNamedStoredProcedureQueryTranslator(), buildSqlResultSetMappingTranslator(), buildQueryRedirectorsTranslator(), buildExcludeDefaultListenersTranslator(), buildExcludeSuperclassListenersTranslator(), buildEntityListenersTranslator(), buildPrePersistTranslator(), buildPostPersistTranslator(), buildPreRemoveTranslator(), buildPostRemoveTranslator(), buildPreUpdateTranslator(), buildPostUpdateTranslator(), buildPostLoadTranslator(), buildPropertyTranslator(), buildAttributeOverrideTranslator(), buildAssociationOverrideTranslator(), Attributes.buildTranslator()}; } protected static Translator buildCustomizerTranslator() { return XmlClassReference.buildTranslator(EclipseLink.CUSTOMIZER, EclipseLinkOrmPackage.eINSTANCE.getXmlCustomizerHolder_Customizer()); } protected static Translator buildChangeTrackingTranslator() { return XmlChangeTracking.buildTranslator(EclipseLink.CHANGE_TRACKING, EclipseLinkOrmPackage.eINSTANCE.getXmlChangeTrackingHolder_ChangeTracking()); } protected static Translator buildPrimaryKeyTranslator() { return XmlPrimaryKey.buildTranslator(EclipseLink1_1.PRIMARY_KEY, EclipseLinkOrmV1_1Package.eINSTANCE.getXmlEntity_1_1_PrimaryKey()); } protected static Translator buildClassExtractorTranslator() { return XmlClassReference.buildTranslator(EclipseLink2_1.CLASS_EXTRACTOR, EclipseLinkOrmV2_1Package.eINSTANCE.getXmlEntity_2_1_ClassExtractor()); } protected static Translator buildOptimisticLockingTranslator() { return XmlOptimisticLocking.buildTranslator(EclipseLink.OPTIMISTIC_LOCKING, EclipseLinkOrmPackage.eINSTANCE.getXmlEntity_OptimisticLocking()); } protected static Translator buildCacheTranslator() { return XmlCache.buildTranslator(EclipseLink.CACHE, EclipseLinkOrmPackage.eINSTANCE.getXmlCacheHolder_Cache()); } protected static Translator buildCacheInterceptorTranslator() { return XmlClassReference.buildTranslator(EclipseLink2_0.CACHE_INTERCEPTOR, EclipseLinkOrmV2_0Package.eINSTANCE.getXmlEntity_2_0_CacheInterceptor()); } protected static Translator buildFetchGroupsTranslator() { return XmlFetchGroup.buildTranslator(EclipseLink2_1.FETCH_GROUP, EclipseLinkOrmV2_1Package.eINSTANCE.getXmlFetchGroupContainer_2_1_FetchGroups()); } protected static Translator buildQueryRedirectorsTranslator() { return XmlQueryRedirectors.buildTranslator(EclipseLink2_0.QUERY_REDIRECTORS, EclipseLinkOrmV2_0Package.eINSTANCE.getXmlEntity_2_0_QueryRedirectors()); } protected static Translator buildConverterTranslator() { return XmlConverter.buildTranslator(EclipseLink.CONVERTER, EclipseLinkOrmPackage.eINSTANCE.getXmlConvertersHolder_Converters()); } protected static Translator buildTypeConverterTranslator() { return XmlTypeConverter.buildTranslator(EclipseLink.TYPE_CONVERTER, EclipseLinkOrmPackage.eINSTANCE.getXmlConvertersHolder_TypeConverters()); } protected static Translator buildObjectTypeConverterTranslator() { return XmlObjectTypeConverter.buildTranslator(EclipseLink.OBJECT_TYPE_CONVERTER, EclipseLinkOrmPackage.eINSTANCE.getXmlConvertersHolder_ObjectTypeConverters()); } protected static Translator buildStructConverterTranslator() { return XmlStructConverter.buildTranslator(EclipseLink.STRUCT_CONVERTER, EclipseLinkOrmPackage.eINSTANCE.getXmlConvertersHolder_StructConverters()); } protected static Translator buildCopyPolicyTranslator() { return XmlCopyPolicy.buildTranslator(EclipseLink.COPY_POLICY, EclipseLinkOrmPackage.eINSTANCE.getXmlEntity_CopyPolicy()); } protected static Translator buildInstantiationCoypPolicyTranslator() { return XmlInstantiationCopyPolicy.buildTranslator(EclipseLink.INSTANTIATION_COPY_POLICY, EclipseLinkOrmPackage.eINSTANCE.getXmlEntity_InstantiationCopyPolicy()); } protected static Translator buildCloneCopyPolicyTranslator() { return XmlCloneCopyPolicy.buildTranslator(EclipseLink.CLONE_COPY_POLICY, EclipseLinkOrmPackage.eINSTANCE.getXmlEntity_CloneCopyPolicy()); } protected static Translator buildReadOnlyTranslator() { return new Translator(EclipseLink.READ_ONLY, EclipseLinkOrmPackage.eINSTANCE.getXmlReadOnly_ReadOnly(), Translator.DOM_ATTRIBUTE); } protected static Translator buildExistenceCheckingTranslator() { return new Translator(EclipseLink.EXISTENCE_CHECKING, EclipseLinkOrmPackage.eINSTANCE.getXmlCacheHolder_ExistenceChecking(), Translator.DOM_ATTRIBUTE); } protected static Translator buildExcludeDefaultMappingsTranslator() { return new Translator(EclipseLink.EXCLUDE_DEFAULT_MAPPINGS, EclipseLinkOrmPackage.eINSTANCE.getXmlEntity_ExcludeDefaultMappings(), Translator.DOM_ATTRIBUTE); } protected static Translator buildNamedStoredProcedureQueryTranslator() { return XmlNamedStoredProcedureQuery.buildTranslator(EclipseLink.NAMED_STORED_PROCEDURE_QUERY, EclipseLinkOrmPackage.eINSTANCE.getXmlQueryContainer_NamedStoredProcedureQueries()); } protected static Translator buildPropertyTranslator() { return XmlProperty.buildTranslator(EclipseLink.PROPERTY, EclipseLinkOrmPackage.eINSTANCE.getXmlPropertyContainer_Properties()); } protected static Translator buildAccessMethodsTranslator() { return XmlAccessMethods.buildTranslator(EclipseLink.ACCESS_METHODS, EclipseLinkOrmPackage.eINSTANCE.getXmlAccessMethodsHolder_AccessMethods()); } protected static Translator buildParentClassTranslator() { return new Translator(EclipseLink2_1.PARENT_CLASS, EclipseLinkOrmV2_1Package.eINSTANCE.getXmlEntity_2_1_ParentClass(), Translator.DOM_ATTRIBUTE); } }