org.apache.tuscany.sdo.impl
Class DataGraphImpl

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.apache.tuscany.sdo.impl.DataGraphImpl
All Implemented Interfaces:
DataGraph, Serializable, org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class DataGraphImpl
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements DataGraph, org.eclipse.emf.common.notify.Adapter, Serializable

An implementation of the model object 'EData Graph'.

See Also:
Serialized Form

Nested Class Summary
static class DataGraphImpl.EDataGraphExternalizable
           
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  ChangeSummary eChangeSummary
          The cached value of the 'EChange Summary' reference.
protected  DataGraphImpl.EDataGraphExternalizable eDataGraphExternalizable
           
protected  org.eclipse.emf.ecore.EObject eRootObject
          The cached value of the 'ERoot Object' reference.
protected  org.eclipse.emf.ecore.util.ExtendedMetaData extendedMetaData
          The cached extended metadata to wrap the resource set's package registry.
protected static org.eclipse.emf.ecore.resource.ResourceSet RESOURCE_SET_EDEFAULT
          The default value of the 'Resource Set' attribute.
protected  org.eclipse.emf.ecore.resource.ResourceSet resourceSet
          The cached value of the 'Resource Set' attribute.
protected static org.eclipse.emf.ecore.resource.Resource ROOT_RESOURCE_EDEFAULT
          The default value of the 'Root Resource' attribute.
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected DataGraphImpl()
           
 
Method Summary
 org.eclipse.emf.common.notify.NotificationChain basicSetEChangeSummary(ChangeSummary newEChangeSummary, org.eclipse.emf.common.notify.NotificationChain msgs)
           
protected  org.eclipse.emf.ecore.resource.Resource createChangeSummaryResource()
           
protected  ChangeSummaryImpl createEChangeSummary()
           
protected  DataGraphImpl.EDataGraphExternalizable createEDataGraphExternalizable()
           
 DataObject createEDataObject(Type type)
           
protected  org.eclipse.emf.ecore.resource.ResourceSet createResourceSet()
           
 DataObject createRootObject(String namespaceURI, String typeName)
          Creates a new root data object of the specified type.
 DataObject createRootObject(Type type)
          Creates a new root data object of the specified type.
protected  org.eclipse.emf.ecore.resource.Resource createRootResource()
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, Class baseClass, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 org.eclipse.emf.ecore.EObject eObjectForURIFragmentSegment(String uriFragmentSegment)
           
 void eSet(int featureID, Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 ChangeSummary getChangeSummary()
          Returns the change summary associated with this data graph.
 org.eclipse.emf.ecore.resource.Resource getDataGraphResource()
           
 ChangeSummary getEChangeSummary()
           
 org.eclipse.emf.ecore.EClassifier getEClassifier(String namespaceURI, String typeName)
           
 org.eclipse.emf.ecore.EObject getERootObject()
           
protected  org.eclipse.emf.ecore.util.ExtendedMetaData getExtendedMetaData()
           
 org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
           
 DataObject getRootObject()
          Returns the root data object of this data graph.
 org.eclipse.emf.ecore.resource.Resource getRootResource()
           
 org.eclipse.emf.common.notify.Notifier getTarget()
           
 Type getType(String namespaceURI, String typeName)
           
 Object getWriteReplacement()
           
protected  void initializeResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
           
 boolean isAdapterForType(Object type)
           
 void notifyChanged(org.eclipse.emf.common.notify.Notification msg)
           
 void setEChangeSummary(ChangeSummary newEChangeSummary)
           
 void setERootObject(org.eclipse.emf.ecore.EObject newERootObject)
           
 void setERootObjectGen(org.eclipse.emf.ecore.EObject newERootObject)
           
 void setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet newResourceSet)
           
 void setResourceSetGen(org.eclipse.emf.ecore.resource.ResourceSet newResourceSet)
           
 void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
           
 String toString()
           
 Object writeReplace()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eNotify
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

RESOURCE_SET_EDEFAULT

protected static final org.eclipse.emf.ecore.resource.ResourceSet RESOURCE_SET_EDEFAULT
The default value of the 'Resource Set' attribute.

See Also:
getResourceSet()

resourceSet

protected org.eclipse.emf.ecore.resource.ResourceSet resourceSet
The cached value of the 'Resource Set' attribute.

See Also:
getResourceSet()

ROOT_RESOURCE_EDEFAULT

protected static final org.eclipse.emf.ecore.resource.Resource ROOT_RESOURCE_EDEFAULT
The default value of the 'Root Resource' attribute.

See Also:
getRootResource()

eChangeSummary

protected ChangeSummary eChangeSummary
The cached value of the 'EChange Summary' reference.

See Also:
getEChangeSummary()

eRootObject

protected org.eclipse.emf.ecore.EObject eRootObject
The cached value of the 'ERoot Object' reference.

See Also:
getERootObject()

extendedMetaData

protected org.eclipse.emf.ecore.util.ExtendedMetaData extendedMetaData
The cached extended metadata to wrap the resource set's package registry.


eDataGraphExternalizable

protected DataGraphImpl.EDataGraphExternalizable eDataGraphExternalizable
Constructor Detail

DataGraphImpl

protected DataGraphImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class org.eclipse.emf.ecore.impl.EObjectImpl

isAdapterForType

public boolean isAdapterForType(Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification msg)
Specified by:
notifyChanged in interface org.eclipse.emf.common.notify.Adapter

getTarget

public org.eclipse.emf.common.notify.Notifier getTarget()
Specified by:
getTarget in interface org.eclipse.emf.common.notify.Adapter

setTarget

public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
Specified by:
setTarget in interface org.eclipse.emf.common.notify.Adapter

getExtendedMetaData

protected org.eclipse.emf.ecore.util.ExtendedMetaData getExtendedMetaData()

getResourceSet

public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()


createResourceSet

protected org.eclipse.emf.ecore.resource.ResourceSet createResourceSet()

createRootResource

protected org.eclipse.emf.ecore.resource.Resource createRootResource()

createChangeSummaryResource

protected org.eclipse.emf.ecore.resource.Resource createChangeSummaryResource()

initializeResourceSet

protected void initializeResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)

setResourceSetGen

public void setResourceSetGen(org.eclipse.emf.ecore.resource.ResourceSet newResourceSet)


setResourceSet

public void setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet newResourceSet)

getRootResource

public org.eclipse.emf.ecore.resource.Resource getRootResource()


getDataGraphResource

public org.eclipse.emf.ecore.resource.Resource getDataGraphResource()

getEChangeSummary

public ChangeSummary getEChangeSummary()


basicSetEChangeSummary

public org.eclipse.emf.common.notify.NotificationChain basicSetEChangeSummary(ChangeSummary newEChangeSummary,
                                                                              org.eclipse.emf.common.notify.NotificationChain msgs)


setEChangeSummary

public void setEChangeSummary(ChangeSummary newEChangeSummary)


getERootObject

public org.eclipse.emf.ecore.EObject getERootObject()


setERootObjectGen

public void setERootObjectGen(org.eclipse.emf.ecore.EObject newERootObject)


setERootObject

public void setERootObject(org.eclipse.emf.ecore.EObject newERootObject)

getEClassifier

public org.eclipse.emf.ecore.EClassifier getEClassifier(String namespaceURI,
                                                        String typeName)


getType

public Type getType(String namespaceURI,
                    String typeName)

Specified by:
getType in interface DataGraph
Parameters:
namespaceURI - the namespace URI of a type or the location URI of a resource containing a type.
typeName - name of a type.
Returns:
the type with the corresponding namespace and name.

eInverseAdd

public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                   int featureID,
                                                                   Class baseClass,
                                                                   org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eInverseAdd in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eInverseAdd in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      Class baseClass,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Specified by:
eInverseRemove in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

createEDataObject

public DataObject createEDataObject(Type type)

getRootObject

public DataObject getRootObject()
Description copied from interface: DataGraph
Returns the root data object of this data graph.

Specified by:
getRootObject in interface DataGraph
Returns:
the root data object.
See Also:
DataObject.getDataGraph()

createRootObject

public DataObject createRootObject(String namespaceURI,
                                   String typeName)
Description copied from interface: DataGraph
Creates a new root data object of the specified type. An exception is thrown if a root object exists.

Specified by:
createRootObject in interface DataGraph
Parameters:
namespaceURI - namespace of the type.
typeName - name of the type.
Returns:
the new root.
See Also:
DataGraph.createRootObject(Type), DataGraph.getType(String, String)

createRootObject

public DataObject createRootObject(Type type)
Description copied from interface: DataGraph
Creates a new root data object of the specified type. An exception is thrown if a root object exists.

Specified by:
createRootObject in interface DataGraph
Parameters:
type - the type of the new root.
Returns:
the new root.
See Also:
DataGraph.createRootObject(String, String)

getChangeSummary

public ChangeSummary getChangeSummary()
Description copied from interface: DataGraph
Returns the change summary associated with this data graph.

Specified by:
getChangeSummary in interface DataGraph
Returns:
the change summary.
See Also:
ChangeSummary.getDataGraph()

createEChangeSummary

protected ChangeSummaryImpl createEChangeSummary()

getWriteReplacement

public Object getWriteReplacement()

createEDataGraphExternalizable

protected DataGraphImpl.EDataGraphExternalizable createEDataGraphExternalizable()

writeReplace

public Object writeReplace()

eObjectForURIFragmentSegment

public org.eclipse.emf.ecore.EObject eObjectForURIFragmentSegment(String uriFragmentSegment)
Specified by:
eObjectForURIFragmentSegment in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eObjectForURIFragmentSegment in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

toString

public String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.