org.eclipse.emf.ecore.sdo.impl
Class ETypeImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.emf.ecore.sdo.impl.ETypeImpl
All Implemented Interfaces:
Adapter, EObject, EType, InternalEObject, Notifier, Type

public class ETypeImpl
extends EObjectImpl
implements EType, Adapter

An implementation of the model object 'EType'.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.common.notify.Adapter
Adapter.Internal
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  EList eAllStructuralFeatures
           
protected  EClassifier eClassifier
          The cached value of the 'EClassifier' reference
protected static Class INSTANCE_CLASS_EDEFAULT
          The default value of the 'Instance Class' attribute
protected static String NAME_EDEFAULT
          The default value of the 'Name' attribute
protected  EList properties
           
protected  Map propertyNameToPropertyMap
           
protected static String URI_EDEFAULT
          The default value of the 'URI' 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 ETypeImpl()
           
 
Method Summary
protected  EList adaptProperties(List eStructuralFeatures)
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
 EClassifier getEClassifier()
           
 EProperty getEProperty(String propertyName)
           
 Class getInstanceClass()
           
 String getName()
           
 List getProperties()
          Returns the list of the properties of this type.
 EList getPropertiesGen()
           
 Property getProperty(String propertyName)
           
 Notifier getTarget()
           
 String getURI()
           
 boolean isAdapterForType(Object type)
           
 boolean isInstance(Object object)
           
 void notifyChanged(Notification msg)
           
 void setEClassifier(EClassifier newEClassifier)
           
 void setTarget(Notifier newTarget)
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
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, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

NAME_EDEFAULT

protected static final String NAME_EDEFAULT
The default value of the 'Name' attribute.

See Also:
getName()

URI_EDEFAULT

protected static final String URI_EDEFAULT
The default value of the 'URI' attribute.

See Also:
getURI()

INSTANCE_CLASS_EDEFAULT

protected static final Class INSTANCE_CLASS_EDEFAULT
The default value of the 'Instance Class' attribute.

See Also:
getInstanceClass()

eClassifier

protected EClassifier eClassifier
The cached value of the 'EClassifier' reference.

See Also:
getEClassifier()

properties

protected EList properties

eAllStructuralFeatures

protected EList eAllStructuralFeatures

propertyNameToPropertyMap

protected Map propertyNameToPropertyMap
Constructor Detail

ETypeImpl

protected ETypeImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()


getName

public String getName()

Specified by:
getName in interface Type
Returns:
the type name.

getURI

public String getURI()

Specified by:
getURI in interface Type
Returns:
the namespace URI.

getInstanceClass

public Class getInstanceClass()

Specified by:
getInstanceClass in interface Type
Returns:
the Java class.

getPropertiesGen

public EList getPropertiesGen()


adaptProperties

protected EList adaptProperties(List eStructuralFeatures)

getProperties

public List getProperties()
Description copied from interface: Type
Returns the list of the properties of this type.

The expression

   type.getProperties().indexOf(property)
yields the property's index relative to this type. As such, these expressions are equivalent:
    dataObject.get(i)
    dataObject.get((Property)dataObject.getType().getProperties().get(i));

Specified by:
getProperties in interface Type
Returns:
the properties of the type.
See Also:
Property.getContainingType()

getEClassifier

public EClassifier getEClassifier()

Specified by:
getEClassifier in interface EType
Returns:
the value of the 'EClassifier' reference.
See Also:
EType.setEClassifier(EClassifier), SDOPackage.getEType_EClassifier()

setEClassifier

public void setEClassifier(EClassifier newEClassifier)

Specified by:
setEClassifier in interface EType
Parameters:
newEClassifier - the new value of the 'EClassifier' reference.
See Also:
EType.getEClassifier()

isInstance

public boolean isInstance(Object object)

Specified by:
isInstance in interface Type
Parameters:
object - the object in question.
Returns:
true if the object is an instance.
See Also:
Class.isInstance(java.lang.Object)

getProperty

public Property getProperty(String propertyName)

Specified by:
getProperty in interface Type
Returns:
the property with the specified name.
See Also:
Type.getProperties()

getEProperty

public EProperty getEProperty(String propertyName)

Specified by:
getEProperty in interface EType

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)


isAdapterForType

public boolean isAdapterForType(Object type)
Specified by:
isAdapterForType in interface Adapter

notifyChanged

public void notifyChanged(Notification msg)
Specified by:
notifyChanged in interface Adapter

getTarget

public Notifier getTarget()
Specified by:
getTarget in interface Adapter

setTarget

public void setTarget(Notifier newTarget)
Specified by:
setTarget in interface Adapter

eGet

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

Specified by:
eGet in interface InternalEObject

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.