org.eclipse.jpt.core.resource.common
Class AbstractJpaEObject

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.jpt.core.resource.common.AbstractJpaEObject
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, JpaEObject
Direct Known Subclasses:
AbstractXmlAttributeMapping, AbstractXmlBaseTable, AbstractXmlNamedColumn, AbstractXmlTypeMapping, Attributes, CascadeTypeImpl, ColumnResult, EntityListener, EntityListeners, EntityResult, EventMethod, FieldResult, Inheritance, Lob, MapKeyImpl, SqlResultSetMapping, XmlAssociationOverrideImpl, XmlAttributeOverrideImpl, XmlEntityMappings, XmlGeneratedValueImpl, XmlIdClass, XmlJavaClassRef, XmlMappingFileRef, XmlNamedNativeQuery, XmlNamedQuery, XmlPersistence, XmlPersistenceUnit, XmlPersistenceUnitDefaults, XmlPersistenceUnitMetadata, XmlProperties, XmlProperty, XmlQueryHint, XmlSequenceGeneratorImpl, XmlTableGeneratorImpl, XmlUniqueConstraintImpl

public abstract class AbstractJpaEObject
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements JpaEObject

A representation of the model object 'Xml EObject'. 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.

See Also:
org.eclipse.jpt.core.resource.common.CommonPackage#getXmlEObject()

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 boolean containsOffset(int textOffset)
          Return true if this object's text representation contains the text offset
 org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> eAdapters()
           
 void eNotify(org.eclipse.emf.common.notify.Notification notification)
          override to prevent notification when the object's state is unchanged
 TextRange getFullTextRange()
           
 org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode getNode()
           
 org.eclipse.core.resources.IResource getPlatformResource()
          Return the resource that most directly contains this object
 JpaXmlResource getResource()
          Return the JpaXmlResource containing this object.
 JpaEObject getRoot()
          Return the root object of the model
 TextRange getSelectionTextRange()
          Return the text range to be used for selection.
 TextRange getValidationTextRange()
          Return the text range to be used for validation.
 boolean isAllFeaturesUnset()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eIsSet, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eDeliver, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

getPlatformResource

public org.eclipse.core.resources.IResource getPlatformResource()
Description copied from interface: JpaEObject
Return the resource that most directly contains this object

Specified by:
getPlatformResource in interface JpaEObject

getResource

public JpaXmlResource getResource()
Description copied from interface: JpaEObject
Return the JpaXmlResource containing this object.

Specified by:
getResource in interface JpaEObject

getRoot

public JpaEObject getRoot()
Description copied from interface: JpaEObject
Return the root object of the model

Specified by:
getRoot in interface JpaEObject

eNotify

public void eNotify(org.eclipse.emf.common.notify.Notification notification)
override to prevent notification when the object's state is unchanged

Specified by:
eNotify in interface org.eclipse.emf.common.notify.Notifier
Overrides:
eNotify in class org.eclipse.emf.common.notify.impl.BasicNotifierImpl

isAllFeaturesUnset

public boolean isAllFeaturesUnset()
Specified by:
isAllFeaturesUnset in interface JpaEObject

eAdapters

public org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> eAdapters()
Specified by:
eAdapters in interface org.eclipse.emf.common.notify.Notifier
Overrides:
eAdapters in class org.eclipse.emf.ecore.impl.EObjectImpl

getNode

public org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode getNode()

getValidationTextRange

public TextRange getValidationTextRange()
Description copied from interface: JpaEObject
Return the text range to be used for validation. This is the source range that will be highlighted for a validation error.

Specified by:
getValidationTextRange in interface JpaEObject

getSelectionTextRange

public TextRange getSelectionTextRange()
Description copied from interface: JpaEObject
Return the text range to be used for selection. This is the source range that will be highlighted when selecting in the structure view.

Specified by:
getSelectionTextRange in interface JpaEObject

getFullTextRange

public TextRange getFullTextRange()

containsOffset

public boolean containsOffset(int textOffset)
Description copied from interface: JpaEObject
Return true if this object's text representation contains the text offset

Specified by:
containsOffset in interface JpaEObject