org.eclipse.emf.ecore.impl
Class ETypedElementImpl

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.impl.FlatEObjectImpl
                  extended byorg.eclipse.emf.ecore.impl.EModelElementImpl
                      extended byorg.eclipse.emf.ecore.impl.ENamedElementImpl
                          extended byorg.eclipse.emf.ecore.impl.ETypedElementImpl
All Implemented Interfaces:
EModelElement, ENamedElement, EObject, ETypedElement, InternalEObject, Notifier
Direct Known Subclasses:
EOperationImpl, EParameterImpl, EStructuralFeatureImpl

public abstract class ETypedElementImpl
extends ENamedElementImpl
implements ETypedElement

An implementation of the model object 'ETyped Element'.

The following features are implemented:


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.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected  EClassifier eType
          The cached value of the 'EType' reference
protected static int LOWER_BOUND_EDEFAULT
          The default value of the 'Lower Bound' attribute
protected  int lowerBound
          The cached value of the 'Lower Bound' attribute
protected static boolean MANY_EDEFAULT
          The default value of the 'Many' attribute
protected static boolean ORDERED_EDEFAULT
          The default value of the 'Ordered' attribute
protected static int ORDERED_EFLAG
          The flag representing the value of the 'Ordered' attribute
protected static boolean REQUIRED_EDEFAULT
          The default value of the 'Required' attribute
protected static boolean UNIQUE_EDEFAULT
          The default value of the 'Unique' attribute
protected static int UNIQUE_EFLAG
          The flag representing the value of the 'Unique' attribute
protected static int UPPER_BOUND_EDEFAULT
          The default value of the 'Upper Bound' attribute
protected  int upperBound
          The cached value of the 'Upper Bound' attribute
 
Fields inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
name, NAME_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eAnnotations, EFROZEN, ELAST_EMODEL_ELEMENT_FLAG
 
Fields inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eProxyURI
 
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.ETypedElement
UNBOUNDED_MULTIPLICITY, UNSPECIFIED_MULTIPLICITY
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected ETypedElementImpl()
           
 
Method Summary
 EClassifier basicGetEType()
           
 Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
protected  void freeze()
           
 EClassifier getEType()
          Returns the value of the 'EType' reference
 EClassifier getETypeGen()
           
 int getLowerBound()
           
 int getUpperBound()
           
 boolean isMany()
          Returns the value of the 'Many' attribute
 boolean isOrdered()
           
 boolean isRequired()
          Returns the value of the 'Required' attribute
 boolean isUnique()
           
 void setEType(EClassifier newEType)
           
 void setLowerBound(int newLowerBound)
           
 void setOrdered(boolean newOrdered)
           
 void setUnique(boolean newUnique)
           
 void setUpperBound(int newUpperBound)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
getName, getNameGen, setName
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eInverseAdd, eInverseRemove, eObjectForURIFragmentSegment, eURIFragmentSegment, freeze, getEAnnotation, getEAnnotations, isFrozen, setFrozen
 
Methods inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eIsProxy, eProperties, eProxyURI, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eSetClass, eSetDeliver
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, 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, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
 
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.ENamedElement
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
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

ORDERED_EDEFAULT

protected static final boolean ORDERED_EDEFAULT
The default value of the 'Ordered' attribute.

See Also:
isOrdered(), Constant Field Values

ORDERED_EFLAG

protected static final int ORDERED_EFLAG
The flag representing the value of the 'Ordered' attribute.

See Also:
isOrdered(), Constant Field Values

UNIQUE_EDEFAULT

protected static final boolean UNIQUE_EDEFAULT
The default value of the 'Unique' attribute.

See Also:
isUnique(), Constant Field Values

UNIQUE_EFLAG

protected static final int UNIQUE_EFLAG
The flag representing the value of the 'Unique' attribute.

See Also:
isUnique(), Constant Field Values

LOWER_BOUND_EDEFAULT

protected static final int LOWER_BOUND_EDEFAULT
The default value of the 'Lower Bound' attribute.

See Also:
getLowerBound(), Constant Field Values

lowerBound

protected int lowerBound
The cached value of the 'Lower Bound' attribute.

See Also:
getLowerBound()

UPPER_BOUND_EDEFAULT

protected static final int UPPER_BOUND_EDEFAULT
The default value of the 'Upper Bound' attribute.

See Also:
getUpperBound(), Constant Field Values

upperBound

protected int upperBound
The cached value of the 'Upper Bound' attribute.

See Also:
getUpperBound()

MANY_EDEFAULT

protected static final boolean MANY_EDEFAULT
The default value of the 'Many' attribute.

See Also:
isMany(), Constant Field Values

REQUIRED_EDEFAULT

protected static final boolean REQUIRED_EDEFAULT
The default value of the 'Required' attribute.

See Also:
isRequired(), Constant Field Values

eType

protected EClassifier eType
The cached value of the 'EType' reference.

See Also:
getEType()
Constructor Detail

ETypedElementImpl

protected ETypedElementImpl()

Method Detail

freeze

protected void freeze()
Overrides:
freeze in class EModelElementImpl

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class ENamedElementImpl

isOrdered

public boolean isOrdered()

Specified by:
isOrdered in interface ETypedElement
Returns:
the value of the 'Ordered' attribute.
See Also:
ETypedElement.setOrdered(boolean), EcorePackage.getETypedElement_Ordered()

setOrdered

public void setOrdered(boolean newOrdered)

Specified by:
setOrdered in interface ETypedElement
Parameters:
newOrdered - the new value of the 'Ordered' attribute.
See Also:
ETypedElement.isOrdered()

isUnique

public boolean isUnique()

Specified by:
isUnique in interface ETypedElement
Returns:
the value of the 'Unique' attribute.
See Also:
ETypedElement.setUnique(boolean), EcorePackage.getETypedElement_Unique()

setUnique

public void setUnique(boolean newUnique)

Specified by:
setUnique in interface ETypedElement
Parameters:
newUnique - the new value of the 'Unique' attribute.
See Also:
ETypedElement.isUnique()

getLowerBound

public int getLowerBound()

Specified by:
getLowerBound in interface ETypedElement
Returns:
the value of the 'Lower Bound' attribute.
See Also:
ETypedElement.setLowerBound(int), EcorePackage.getETypedElement_LowerBound()

setLowerBound

public void setLowerBound(int newLowerBound)

Specified by:
setLowerBound in interface ETypedElement
Parameters:
newLowerBound - the new value of the 'Lower Bound' attribute.
See Also:
ETypedElement.getLowerBound()

getUpperBound

public int getUpperBound()

Specified by:
getUpperBound in interface ETypedElement
Returns:
the value of the 'Upper Bound' attribute.
See Also:
ETypedElement.setUpperBound(int), EcorePackage.getETypedElement_UpperBound()

setUpperBound

public void setUpperBound(int newUpperBound)

Specified by:
setUpperBound in interface ETypedElement
Parameters:
newUpperBound - the new value of the 'Upper Bound' attribute.
See Also:
ETypedElement.getUpperBound()

isMany

public boolean isMany()
Description copied from interface: ETypedElement
Returns the value of the 'Many' attribute.

It represents whether more than one value may appear in a valid instance.

Specified by:
isMany in interface ETypedElement
Returns:
the value of the 'Many' attribute.
See Also:
EcorePackage.getETypedElement_Many()

isRequired

public boolean isRequired()
Description copied from interface: ETypedElement
Returns the value of the 'Required' attribute.

It represents whether at least one value is required for a valid instance.

Specified by:
isRequired in interface ETypedElement
Returns:
the value of the 'Required' attribute.
See Also:
EcorePackage.getETypedElement_Required()

getETypeGen

public EClassifier getETypeGen()


getEType

public EClassifier getEType()
Description copied from interface: ETypedElement
Returns the value of the 'EType' reference.

It represents the type of the element.

Specified by:
getEType in interface ETypedElement
Returns:
the value of the 'EType' reference.
See Also:
ETypedElement.setEType(EClassifier), EcorePackage.getETypedElement_EType()

basicGetEType

public EClassifier basicGetEType()


setEType

public void setEType(EClassifier newEType)

Specified by:
setEType in interface ETypedElement
Parameters:
newEType - the new value of the 'EType' reference.
See Also:
ETypedElement.getEType()

eGet

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

Specified by:
eGet in interface InternalEObject
Overrides:
eGet in class ENamedElementImpl

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface InternalEObject
Overrides:
eSet in class ENamedElementImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface InternalEObject
Overrides:
eUnset in class ENamedElementImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface InternalEObject
Overrides:
eIsSet in class ENamedElementImpl

toString

public String toString()

Overrides:
toString in class ENamedElementImpl

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