/******************************************************************************* * Copyright (c) 2009, 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.AbstractXmlAttributeMapping; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.EclipseLinkOrmV2_2Package; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.XmlHashPartitioning_2_2; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.XmlPartitioningGroup_2_2; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.XmlPartitioning_2_2; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.XmlPinnedPartitioning_2_2; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.XmlRangePartitioning_2_2; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.XmlReplicationPartitioning_2_2; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.XmlRoundRobinPartitioning_2_2; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.XmlUnionPartitioning_2_2; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.XmlValuePartitioning_2_2; import org.eclipse.jpt.eclipselink.core.resource.orm.v2_2.XmlVariableOneToOne_2_2; import org.eclipse.jpt.eclipselink.core.EclipseLinkMappingKeys; import org.eclipse.wst.common.internal.emf.resource.Translator; /** * * A representation of the model object 'Xml Variable One To One Impl'. * * 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.2 * @since 2.2 * * * * * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlVariableOneToOne() * @model kind="class" * @generated */ public class XmlVariableOneToOne extends AbstractXmlAttributeMapping implements XmlAttributeMapping, XmlVariableOneToOne_2_2 { /** * The cached value of the '{@link #getAccessMethods() Access Methods}' containment reference. * * * @see #getAccessMethods() * @generated * @ordered */ protected XmlAccessMethods accessMethods; /** * The cached value of the '{@link #getProperties() Properties}' containment reference list. * * * @see #getProperties() * @generated * @ordered */ protected EList properties; /** * The cached value of the '{@link #getPartitioning() Partitioning}' containment reference. * * * @see #getPartitioning() * @generated * @ordered */ protected XmlPartitioning_2_2 partitioning; /** * The cached value of the '{@link #getReplicationPartitioning() Replication Partitioning}' containment reference. * * * @see #getReplicationPartitioning() * @generated * @ordered */ protected XmlReplicationPartitioning_2_2 replicationPartitioning; /** * The cached value of the '{@link #getRoundRobinPartitioning() Round Robin Partitioning}' containment reference. * * * @see #getRoundRobinPartitioning() * @generated * @ordered */ protected XmlRoundRobinPartitioning_2_2 roundRobinPartitioning; /** * The cached value of the '{@link #getPinnedPartitioning() Pinned Partitioning}' containment reference. * * * @see #getPinnedPartitioning() * @generated * @ordered */ protected XmlPinnedPartitioning_2_2 pinnedPartitioning; /** * The cached value of the '{@link #getRangePartitioning() Range Partitioning}' containment reference. * * * @see #getRangePartitioning() * @generated * @ordered */ protected XmlRangePartitioning_2_2 rangePartitioning; /** * The cached value of the '{@link #getValuePartitioning() Value Partitioning}' containment reference. * * * @see #getValuePartitioning() * @generated * @ordered */ protected XmlValuePartitioning_2_2 valuePartitioning; /** * The cached value of the '{@link #getHashPartitioning() Hash Partitioning}' containment reference. * * * @see #getHashPartitioning() * @generated * @ordered */ protected XmlHashPartitioning_2_2 hashPartitioning; /** * The cached value of the '{@link #getUnionPartitioning() Union Partitioning}' containment reference. * * * @see #getUnionPartitioning() * @generated * @ordered */ protected XmlUnionPartitioning_2_2 unionPartitioning; /** * The default value of the '{@link #getPartitioned() Partitioned}' attribute. * * * @see #getPartitioned() * @generated * @ordered */ protected static final String PARTITIONED_EDEFAULT = null; /** * The cached value of the '{@link #getPartitioned() Partitioned}' attribute. * * * @see #getPartitioned() * @generated * @ordered */ protected String partitioned = PARTITIONED_EDEFAULT; /** * The default value of the '{@link #isNonCacheable() Non Cacheable}' attribute. * * * @see #isNonCacheable() * @generated * @ordered */ protected static final boolean NON_CACHEABLE_EDEFAULT = false; /** * The cached value of the '{@link #isNonCacheable() Non Cacheable}' attribute. * * * @see #isNonCacheable() * @generated * @ordered */ protected boolean nonCacheable = NON_CACHEABLE_EDEFAULT; /** * * * @generated */ protected XmlVariableOneToOne() { super(); } /** * * * @generated */ @Override protected EClass eStaticClass() { return EclipseLinkOrmPackage.Literals.XML_VARIABLE_ONE_TO_ONE; } /** * 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_VARIABLE_ONE_TO_ONE__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.XmlVariableOneToOne#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_VARIABLE_ONE_TO_ONE__ACCESS_METHODS, null, msgs); if (newAccessMethods != null) msgs = ((InternalEObject)newAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ACCESS_METHODS, null, msgs); msgs = basicSetAccessMethods(newAccessMethods, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ACCESS_METHODS, newAccessMethods, newAccessMethods)); } /** * 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_VARIABLE_ONE_TO_ONE__PROPERTIES); } return properties; } /** * Returns the value of the 'Partitioning' containment reference. * *

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

* * @return the value of the 'Partitioning' containment reference. * @see #setPartitioning(XmlPartitioning_2_2) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPartitioningGroup_2_2_Partitioning() * @model containment="true" * @generated */ public XmlPartitioning_2_2 getPartitioning() { return partitioning; } /** * * * @generated */ public NotificationChain basicSetPartitioning(XmlPartitioning_2_2 newPartitioning, NotificationChain msgs) { XmlPartitioning_2_2 oldPartitioning = partitioning; partitioning = newPartitioning; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING, oldPartitioning, newPartitioning); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVariableOneToOne#getPartitioning Partitioning}' containment reference. * * * @param value the new value of the 'Partitioning' containment reference. * @see #getPartitioning() * @generated */ public void setPartitioning(XmlPartitioning_2_2 newPartitioning) { if (newPartitioning != partitioning) { NotificationChain msgs = null; if (partitioning != null) msgs = ((InternalEObject)partitioning).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING, null, msgs); if (newPartitioning != null) msgs = ((InternalEObject)newPartitioning).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING, null, msgs); msgs = basicSetPartitioning(newPartitioning, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING, newPartitioning, newPartitioning)); } /** * Returns the value of the 'Replication Partitioning' containment reference. * *

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

* * @return the value of the 'Replication Partitioning' containment reference. * @see #setReplicationPartitioning(XmlReplicationPartitioning_2_2) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPartitioningGroup_2_2_ReplicationPartitioning() * @model containment="true" * @generated */ public XmlReplicationPartitioning_2_2 getReplicationPartitioning() { return replicationPartitioning; } /** * * * @generated */ public NotificationChain basicSetReplicationPartitioning(XmlReplicationPartitioning_2_2 newReplicationPartitioning, NotificationChain msgs) { XmlReplicationPartitioning_2_2 oldReplicationPartitioning = replicationPartitioning; replicationPartitioning = newReplicationPartitioning; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING, oldReplicationPartitioning, newReplicationPartitioning); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVariableOneToOne#getReplicationPartitioning Replication Partitioning}' containment reference. * * * @param value the new value of the 'Replication Partitioning' containment reference. * @see #getReplicationPartitioning() * @generated */ public void setReplicationPartitioning(XmlReplicationPartitioning_2_2 newReplicationPartitioning) { if (newReplicationPartitioning != replicationPartitioning) { NotificationChain msgs = null; if (replicationPartitioning != null) msgs = ((InternalEObject)replicationPartitioning).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING, null, msgs); if (newReplicationPartitioning != null) msgs = ((InternalEObject)newReplicationPartitioning).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING, null, msgs); msgs = basicSetReplicationPartitioning(newReplicationPartitioning, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING, newReplicationPartitioning, newReplicationPartitioning)); } /** * Returns the value of the 'Round Robin Partitioning' containment reference. * *

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

* * @return the value of the 'Round Robin Partitioning' containment reference. * @see #setRoundRobinPartitioning(XmlRoundRobinPartitioning_2_2) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPartitioningGroup_2_2_RoundRobinPartitioning() * @model containment="true" * @generated */ public XmlRoundRobinPartitioning_2_2 getRoundRobinPartitioning() { return roundRobinPartitioning; } /** * * * @generated */ public NotificationChain basicSetRoundRobinPartitioning(XmlRoundRobinPartitioning_2_2 newRoundRobinPartitioning, NotificationChain msgs) { XmlRoundRobinPartitioning_2_2 oldRoundRobinPartitioning = roundRobinPartitioning; roundRobinPartitioning = newRoundRobinPartitioning; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING, oldRoundRobinPartitioning, newRoundRobinPartitioning); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVariableOneToOne#getRoundRobinPartitioning Round Robin Partitioning}' containment reference. * * * @param value the new value of the 'Round Robin Partitioning' containment reference. * @see #getRoundRobinPartitioning() * @generated */ public void setRoundRobinPartitioning(XmlRoundRobinPartitioning_2_2 newRoundRobinPartitioning) { if (newRoundRobinPartitioning != roundRobinPartitioning) { NotificationChain msgs = null; if (roundRobinPartitioning != null) msgs = ((InternalEObject)roundRobinPartitioning).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING, null, msgs); if (newRoundRobinPartitioning != null) msgs = ((InternalEObject)newRoundRobinPartitioning).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING, null, msgs); msgs = basicSetRoundRobinPartitioning(newRoundRobinPartitioning, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING, newRoundRobinPartitioning, newRoundRobinPartitioning)); } /** * Returns the value of the 'Pinned Partitioning' containment reference. * *

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

* * @return the value of the 'Pinned Partitioning' containment reference. * @see #setPinnedPartitioning(XmlPinnedPartitioning_2_2) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPartitioningGroup_2_2_PinnedPartitioning() * @model containment="true" * @generated */ public XmlPinnedPartitioning_2_2 getPinnedPartitioning() { return pinnedPartitioning; } /** * * * @generated */ public NotificationChain basicSetPinnedPartitioning(XmlPinnedPartitioning_2_2 newPinnedPartitioning, NotificationChain msgs) { XmlPinnedPartitioning_2_2 oldPinnedPartitioning = pinnedPartitioning; pinnedPartitioning = newPinnedPartitioning; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING, oldPinnedPartitioning, newPinnedPartitioning); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVariableOneToOne#getPinnedPartitioning Pinned Partitioning}' containment reference. * * * @param value the new value of the 'Pinned Partitioning' containment reference. * @see #getPinnedPartitioning() * @generated */ public void setPinnedPartitioning(XmlPinnedPartitioning_2_2 newPinnedPartitioning) { if (newPinnedPartitioning != pinnedPartitioning) { NotificationChain msgs = null; if (pinnedPartitioning != null) msgs = ((InternalEObject)pinnedPartitioning).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING, null, msgs); if (newPinnedPartitioning != null) msgs = ((InternalEObject)newPinnedPartitioning).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING, null, msgs); msgs = basicSetPinnedPartitioning(newPinnedPartitioning, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING, newPinnedPartitioning, newPinnedPartitioning)); } /** * Returns the value of the 'Range Partitioning' containment reference. * *

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

* * @return the value of the 'Range Partitioning' containment reference. * @see #setRangePartitioning(XmlRangePartitioning_2_2) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPartitioningGroup_2_2_RangePartitioning() * @model containment="true" * @generated */ public XmlRangePartitioning_2_2 getRangePartitioning() { return rangePartitioning; } /** * * * @generated */ public NotificationChain basicSetRangePartitioning(XmlRangePartitioning_2_2 newRangePartitioning, NotificationChain msgs) { XmlRangePartitioning_2_2 oldRangePartitioning = rangePartitioning; rangePartitioning = newRangePartitioning; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING, oldRangePartitioning, newRangePartitioning); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVariableOneToOne#getRangePartitioning Range Partitioning}' containment reference. * * * @param value the new value of the 'Range Partitioning' containment reference. * @see #getRangePartitioning() * @generated */ public void setRangePartitioning(XmlRangePartitioning_2_2 newRangePartitioning) { if (newRangePartitioning != rangePartitioning) { NotificationChain msgs = null; if (rangePartitioning != null) msgs = ((InternalEObject)rangePartitioning).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING, null, msgs); if (newRangePartitioning != null) msgs = ((InternalEObject)newRangePartitioning).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING, null, msgs); msgs = basicSetRangePartitioning(newRangePartitioning, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING, newRangePartitioning, newRangePartitioning)); } /** * Returns the value of the 'Value Partitioning' containment reference. * *

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

* * @return the value of the 'Value Partitioning' containment reference. * @see #setValuePartitioning(XmlValuePartitioning_2_2) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPartitioningGroup_2_2_ValuePartitioning() * @model containment="true" * @generated */ public XmlValuePartitioning_2_2 getValuePartitioning() { return valuePartitioning; } /** * * * @generated */ public NotificationChain basicSetValuePartitioning(XmlValuePartitioning_2_2 newValuePartitioning, NotificationChain msgs) { XmlValuePartitioning_2_2 oldValuePartitioning = valuePartitioning; valuePartitioning = newValuePartitioning; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING, oldValuePartitioning, newValuePartitioning); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVariableOneToOne#getValuePartitioning Value Partitioning}' containment reference. * * * @param value the new value of the 'Value Partitioning' containment reference. * @see #getValuePartitioning() * @generated */ public void setValuePartitioning(XmlValuePartitioning_2_2 newValuePartitioning) { if (newValuePartitioning != valuePartitioning) { NotificationChain msgs = null; if (valuePartitioning != null) msgs = ((InternalEObject)valuePartitioning).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING, null, msgs); if (newValuePartitioning != null) msgs = ((InternalEObject)newValuePartitioning).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING, null, msgs); msgs = basicSetValuePartitioning(newValuePartitioning, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING, newValuePartitioning, newValuePartitioning)); } /** * Returns the value of the 'Hash Partitioning' containment reference. * *

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

* * @return the value of the 'Hash Partitioning' containment reference. * @see #setHashPartitioning(XmlHashPartitioning_2_2) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPartitioningGroup_2_2_HashPartitioning() * @model containment="true" * @generated */ public XmlHashPartitioning_2_2 getHashPartitioning() { return hashPartitioning; } /** * * * @generated */ public NotificationChain basicSetHashPartitioning(XmlHashPartitioning_2_2 newHashPartitioning, NotificationChain msgs) { XmlHashPartitioning_2_2 oldHashPartitioning = hashPartitioning; hashPartitioning = newHashPartitioning; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING, oldHashPartitioning, newHashPartitioning); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVariableOneToOne#getHashPartitioning Hash Partitioning}' containment reference. * * * @param value the new value of the 'Hash Partitioning' containment reference. * @see #getHashPartitioning() * @generated */ public void setHashPartitioning(XmlHashPartitioning_2_2 newHashPartitioning) { if (newHashPartitioning != hashPartitioning) { NotificationChain msgs = null; if (hashPartitioning != null) msgs = ((InternalEObject)hashPartitioning).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING, null, msgs); if (newHashPartitioning != null) msgs = ((InternalEObject)newHashPartitioning).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING, null, msgs); msgs = basicSetHashPartitioning(newHashPartitioning, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING, newHashPartitioning, newHashPartitioning)); } /** * Returns the value of the 'Union Partitioning' containment reference. * *

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

* * @return the value of the 'Union Partitioning' containment reference. * @see #setUnionPartitioning(XmlUnionPartitioning_2_2) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPartitioningGroup_2_2_UnionPartitioning() * @model containment="true" * @generated */ public XmlUnionPartitioning_2_2 getUnionPartitioning() { return unionPartitioning; } /** * * * @generated */ public NotificationChain basicSetUnionPartitioning(XmlUnionPartitioning_2_2 newUnionPartitioning, NotificationChain msgs) { XmlUnionPartitioning_2_2 oldUnionPartitioning = unionPartitioning; unionPartitioning = newUnionPartitioning; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING, oldUnionPartitioning, newUnionPartitioning); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVariableOneToOne#getUnionPartitioning Union Partitioning}' containment reference. * * * @param value the new value of the 'Union Partitioning' containment reference. * @see #getUnionPartitioning() * @generated */ public void setUnionPartitioning(XmlUnionPartitioning_2_2 newUnionPartitioning) { if (newUnionPartitioning != unionPartitioning) { NotificationChain msgs = null; if (unionPartitioning != null) msgs = ((InternalEObject)unionPartitioning).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING, null, msgs); if (newUnionPartitioning != null) msgs = ((InternalEObject)newUnionPartitioning).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING, null, msgs); msgs = basicSetUnionPartitioning(newUnionPartitioning, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING, newUnionPartitioning, newUnionPartitioning)); } /** * Returns the value of the 'Partitioned' attribute. * *

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

* * @return the value of the 'Partitioned' attribute. * @see #setPartitioned(String) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlPartitioningGroup_2_2_Partitioned() * @model dataType="org.eclipse.emf.ecore.xml.type.String" * @generated */ public String getPartitioned() { return partitioned; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVariableOneToOne#getPartitioned Partitioned}' attribute. * * * @param value the new value of the 'Partitioned' attribute. * @see #getPartitioned() * @generated */ public void setPartitioned(String newPartitioned) { String oldPartitioned = partitioned; partitioned = newPartitioned; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONED, oldPartitioned, partitioned)); } /** * Returns the value of the 'Non Cacheable' attribute. * *

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

* * @return the value of the 'Non Cacheable' attribute. * @see #setNonCacheable(boolean) * @see org.eclipse.jpt.eclipselink.core.resource.orm.EclipseLinkOrmPackage#getXmlVariableOneToOne_2_2_NonCacheable() * @model dataType="org.eclipse.emf.ecore.xml.type.Boolean" * @generated */ public boolean isNonCacheable() { return nonCacheable; } /** * Sets the value of the '{@link org.eclipse.jpt.eclipselink.core.resource.orm.XmlVariableOneToOne#isNonCacheable Non Cacheable}' attribute. * * * @param value the new value of the 'Non Cacheable' attribute. * @see #isNonCacheable() * @generated */ public void setNonCacheable(boolean newNonCacheable) { boolean oldNonCacheable = nonCacheable; nonCacheable = newNonCacheable; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__NON_CACHEABLE, oldNonCacheable, nonCacheable)); } /** * * * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ACCESS_METHODS: return basicSetAccessMethods(null, msgs); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PROPERTIES: return ((InternalEList)getProperties()).basicRemove(otherEnd, msgs); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING: return basicSetPartitioning(null, msgs); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING: return basicSetReplicationPartitioning(null, msgs); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING: return basicSetRoundRobinPartitioning(null, msgs); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING: return basicSetPinnedPartitioning(null, msgs); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING: return basicSetRangePartitioning(null, msgs); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING: return basicSetValuePartitioning(null, msgs); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING: return basicSetHashPartitioning(null, msgs); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING: return basicSetUnionPartitioning(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ACCESS_METHODS: return getAccessMethods(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PROPERTIES: return getProperties(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING: return getPartitioning(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING: return getReplicationPartitioning(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING: return getRoundRobinPartitioning(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING: return getPinnedPartitioning(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING: return getRangePartitioning(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING: return getValuePartitioning(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING: return getHashPartitioning(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING: return getUnionPartitioning(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONED: return getPartitioned(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__NON_CACHEABLE: return isNonCacheable(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ACCESS_METHODS: setAccessMethods((XmlAccessMethods)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PROPERTIES: getProperties().clear(); getProperties().addAll((Collection)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING: setPartitioning((XmlPartitioning_2_2)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING: setReplicationPartitioning((XmlReplicationPartitioning_2_2)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING: setRoundRobinPartitioning((XmlRoundRobinPartitioning_2_2)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING: setPinnedPartitioning((XmlPinnedPartitioning_2_2)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING: setRangePartitioning((XmlRangePartitioning_2_2)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING: setValuePartitioning((XmlValuePartitioning_2_2)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING: setHashPartitioning((XmlHashPartitioning_2_2)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING: setUnionPartitioning((XmlUnionPartitioning_2_2)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONED: setPartitioned((String)newValue); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__NON_CACHEABLE: setNonCacheable((Boolean)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ACCESS_METHODS: setAccessMethods((XmlAccessMethods)null); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PROPERTIES: getProperties().clear(); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING: setPartitioning((XmlPartitioning_2_2)null); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING: setReplicationPartitioning((XmlReplicationPartitioning_2_2)null); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING: setRoundRobinPartitioning((XmlRoundRobinPartitioning_2_2)null); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING: setPinnedPartitioning((XmlPinnedPartitioning_2_2)null); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING: setRangePartitioning((XmlRangePartitioning_2_2)null); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING: setValuePartitioning((XmlValuePartitioning_2_2)null); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING: setHashPartitioning((XmlHashPartitioning_2_2)null); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING: setUnionPartitioning((XmlUnionPartitioning_2_2)null); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONED: setPartitioned(PARTITIONED_EDEFAULT); return; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__NON_CACHEABLE: setNonCacheable(NON_CACHEABLE_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ACCESS_METHODS: return accessMethods != null; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PROPERTIES: return properties != null && !properties.isEmpty(); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING: return partitioning != null; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING: return replicationPartitioning != null; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING: return roundRobinPartitioning != null; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING: return pinnedPartitioning != null; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING: return rangePartitioning != null; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING: return valuePartitioning != null; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING: return hashPartitioning != null; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING: return unionPartitioning != null; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONED: return PARTITIONED_EDEFAULT == null ? partitioned != null : !PARTITIONED_EDEFAULT.equals(partitioned); case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__NON_CACHEABLE: return nonCacheable != NON_CACHEABLE_EDEFAULT; } return super.eIsSet(featureID); } /** * * * @generated */ @Override public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) { if (baseClass == XmlAccessMethodsHolder.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ACCESS_METHODS: return EclipseLinkOrmPackage.XML_ACCESS_METHODS_HOLDER__ACCESS_METHODS; default: return -1; } } if (baseClass == XmlPropertyContainer.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PROPERTIES: return EclipseLinkOrmPackage.XML_PROPERTY_CONTAINER__PROPERTIES; default: return -1; } } if (baseClass == XmlAttributeMapping.class) { switch (derivedFeatureID) { default: return -1; } } if (baseClass == XmlPartitioningGroup_2_2.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING: return EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__PARTITIONING; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING: return EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__REPLICATION_PARTITIONING; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING: return EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__ROUND_ROBIN_PARTITIONING; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING: return EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__PINNED_PARTITIONING; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING: return EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__RANGE_PARTITIONING; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING: return EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__VALUE_PARTITIONING; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING: return EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__HASH_PARTITIONING; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING: return EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__UNION_PARTITIONING; case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONED: return EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__PARTITIONED; default: return -1; } } if (baseClass == XmlVariableOneToOne_2_2.class) { switch (derivedFeatureID) { case EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__NON_CACHEABLE: return EclipseLinkOrmV2_2Package.XML_VARIABLE_ONE_TO_ONE_22__NON_CACHEABLE; default: return -1; } } return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); } /** * * * @generated */ @Override public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) { if (baseClass == XmlAccessMethodsHolder.class) { switch (baseFeatureID) { case EclipseLinkOrmPackage.XML_ACCESS_METHODS_HOLDER__ACCESS_METHODS: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ACCESS_METHODS; default: return -1; } } if (baseClass == XmlPropertyContainer.class) { switch (baseFeatureID) { case EclipseLinkOrmPackage.XML_PROPERTY_CONTAINER__PROPERTIES: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PROPERTIES; default: return -1; } } if (baseClass == XmlAttributeMapping.class) { switch (baseFeatureID) { default: return -1; } } if (baseClass == XmlPartitioningGroup_2_2.class) { switch (baseFeatureID) { case EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__PARTITIONING: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONING; case EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__REPLICATION_PARTITIONING: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__REPLICATION_PARTITIONING; case EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__ROUND_ROBIN_PARTITIONING: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__ROUND_ROBIN_PARTITIONING; case EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__PINNED_PARTITIONING: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PINNED_PARTITIONING; case EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__RANGE_PARTITIONING: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__RANGE_PARTITIONING; case EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__VALUE_PARTITIONING: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__VALUE_PARTITIONING; case EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__HASH_PARTITIONING: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__HASH_PARTITIONING; case EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__UNION_PARTITIONING: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__UNION_PARTITIONING; case EclipseLinkOrmV2_2Package.XML_PARTITIONING_GROUP_22__PARTITIONED: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__PARTITIONED; default: return -1; } } if (baseClass == XmlVariableOneToOne_2_2.class) { switch (baseFeatureID) { case EclipseLinkOrmV2_2Package.XML_VARIABLE_ONE_TO_ONE_22__NON_CACHEABLE: return EclipseLinkOrmPackage.XML_VARIABLE_ONE_TO_ONE__NON_CACHEABLE; 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(" (partitioned: "); result.append(partitioned); result.append(", nonCacheable: "); result.append(nonCacheable); result.append(')'); return result.toString(); } public String getMappingKey() { return EclipseLinkMappingKeys.VARIABLE_ONE_TO_ONE_ATTRIBUTE_MAPPING_KEY; } // ********** translators ********** public static Translator buildTranslator(String elementName, EStructuralFeature structuralFeature) { return new SimpleTranslator(elementName, structuralFeature, buildTranslatorChildren()); } private static Translator[] buildTranslatorChildren() { return new Translator[] { buildNameTranslator(), buildAccessTranslator(), }; } }