org.eclipse.emf.ecore.impl
Class EClassifierImpl
java.lang.Object
|
+--org.eclipse.emf.common.notify.impl.NotifierImpl
|
+--org.eclipse.emf.ecore.impl.EObjectImpl
|
+--org.eclipse.emf.ecore.impl.EModelElementImpl
|
+--org.eclipse.emf.ecore.impl.ENamedElementImpl
|
+--org.eclipse.emf.ecore.impl.EClassifierImpl
- All Implemented Interfaces:
- EClassifier, EModelElement, ENamedElement, EObject, InternalEObject, Notifier
- Direct Known Subclasses:
- EClassImpl, EDataTypeImpl
- public abstract class EClassifierImpl
- extends ENamedElementImpl
- implements EClassifier
An implementation of the model object 'EMeta Object'.
The following features are implemented:
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl |
eAllContents, eBaseStructuralFeatureID, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
metaObjectID
protected int metaObjectID
INSTANCE_CLASS_NAME_EDEFAULT
protected static final java.lang.String INSTANCE_CLASS_NAME_EDEFAULT
- The default value of the '
Instance Class Name
' attribute.
- See Also:
getInstanceClassName()
instanceClassName
protected java.lang.String instanceClassName
- The cached value of the '
Instance Class Name
' attribute.
- See Also:
getInstanceClassName()
INSTANCE_CLASS_EDEFAULT
protected static final java.lang.Class INSTANCE_CLASS_EDEFAULT
- The default value of the '
Instance Class
' attribute.
- See Also:
getInstanceClass()
instanceClass
protected java.lang.Class instanceClass
- The cached value of the '
Instance Class
' attribute.
- See Also:
getInstanceClass()
EClassifierImpl
protected EClassifierImpl()
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass
in class ENamedElementImpl
getClassifierID
public int getClassifierID()
-
- Specified by:
getClassifierID
in interface EClassifier
- Following copied from interface:
org.eclipse.emf.ecore.EClassifier
- Returns:
- the relative ID.
eInverseAdd
public NotificationChain eInverseAdd(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
-
- Overrides:
eInverseAdd
in class ENamedElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Returns:
- accumulated notifications.
eInverseRemove
public NotificationChain eInverseRemove(InternalEObject otherEnd,
int featureID,
java.lang.Class baseClass,
NotificationChain msgs)
-
- Overrides:
eInverseRemove
in class ENamedElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Returns:
- accumulated notifications.
setClassifierID
public void setClassifierID(int id)
isInstance
public boolean isInstance(java.lang.Object object)
- Returns whether the object is an instance of this classifier.
- Specified by:
isInstance
in interface EClassifier
- Parameters:
object
- the object in question.- Returns:
- whether the object is an instance.
- See Also:
Class.isInstance(java.lang.Object)
dynamicIsInstance
protected boolean dynamicIsInstance(EObject eObject)
eGet
public java.lang.Object eGet(EStructuralFeature eFeature,
boolean resolve)
-
- Specified by:
eGet
in interface EObject
- Overrides:
eGet
in class ENamedElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature of the value to fetch.resolve
- whether to resolve.- Returns:
- the value of the given feature of the object.
- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
.- See Also:
InternalEList.basicIterator()
,
InternalEList.basicList()
,
EcoreUtil.resolve(EObject, ResourceSet)
,
EObject.eSet(EStructuralFeature, Object)
,
EObject.eUnset(EStructuralFeature)
,
EObject.eIsSet(EStructuralFeature)
,
EObject.eGet(EStructuralFeature)
eIsSet
public boolean eIsSet(EStructuralFeature eFeature)
-
- Specified by:
eIsSet
in interface EObject
- Overrides:
eIsSet
in class ENamedElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature in question.- Returns:
- whether the feature of the object is set.
- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
.- See Also:
EObject.eSet(EStructuralFeature, Object)
,
EObject.eUnset(EStructuralFeature)
,
EObject.eGet(EStructuralFeature, boolean)
eSet
public void eSet(EStructuralFeature eFeature,
java.lang.Object newValue)
-
- Specified by:
eSet
in interface EObject
- Overrides:
eSet
in class ENamedElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature of the value to set.- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
,
or it isn't changeable
.java.lang.ClassCastException
- if there is a type conflict.ArrayStoreException
- if there is a type conflect.- See Also:
EObject.eUnset(EStructuralFeature)
,
EObject.eIsSet(EStructuralFeature)
,
EObject.eGet(EStructuralFeature, boolean)
eUnset
public void eUnset(EStructuralFeature eFeature)
-
- Specified by:
eUnset
in interface EObject
- Overrides:
eUnset
in class ENamedElementImpl
- Following copied from interface:
org.eclipse.emf.ecore.EObject
- Parameters:
feature
- the feature in question.- Throws:
java.lang.IllegalArgumentException
- if the feature is not one the meta class
's
features
,
or it isn't changeable
.- See Also:
EObject.eIsSet(EStructuralFeature)
,
EObject.eSet(EStructuralFeature, Object)
,
EObject.eGet(EStructuralFeature, boolean)
getInstanceClassName
public java.lang.String getInstanceClassName()
-
- Specified by:
getInstanceClassName
in interface EClassifier
- Following copied from interface:
org.eclipse.emf.ecore.EClassifier
- Returns:
- the value of the 'Instance Class Name' attribute.
- See Also:
EClassifier.getInstanceClass()
,
EClassifier.setInstanceClassName(String)
,
EcorePackage.getEClassifier_InstanceClassName()
setInstanceClassName
public void setInstanceClassName(java.lang.String value)
- Description copied from interface:
EClassifier
- Sets the value of the '
Instance Class Name
' attribute.
- Specified by:
setInstanceClassName
in interface EClassifier
- Following copied from interface:
org.eclipse.emf.ecore.EClassifier
- Parameters:
value
- the new value of the 'Instance Class Name' attribute.- See Also:
EClassifier.getInstanceClassName()
setInstanceClassNameGen
public void setInstanceClassNameGen(java.lang.String newInstanceClassName)
-
getInstanceClass
public java.lang.Class getInstanceClass()
- Description copied from interface:
EClassifier
- Returns the value of the 'Instance Class' attribute.
It represents the actual Java instance class that this meta object represents.
- Specified by:
getInstanceClass
in interface EClassifier
- Following copied from interface:
org.eclipse.emf.ecore.EClassifier
- Returns:
- the value of the 'Instance Class' attribute.
- See Also:
EClassifier.setInstanceClass(Class)
,
EcorePackage.getEClassifier_InstanceClass()
getPrimitiveOrArrayClass
protected java.lang.Class getPrimitiveOrArrayClass()
getInstanceClassGen
public java.lang.Class getInstanceClassGen()
setInstanceClass
public void setInstanceClass(java.lang.Class value)
- Description copied from interface:
EClassifier
- Sets the value of the '
Instance Class
' attribute.
- Specified by:
setInstanceClass
in interface EClassifier
- Following copied from interface:
org.eclipse.emf.ecore.EClassifier
- Parameters:
value
- the new value of the 'Instance Class' attribute.- See Also:
EClassifier.getInstanceClass()
setInstanceClassGen
public void setInstanceClassGen(java.lang.Class newInstanceClass)
getDefaultValue
public java.lang.Object getDefaultValue()
- Description copied from interface:
EClassifier
- Returns the value of the 'Default Value' attribute.
The default value for the type, in the Java sense.
For primitive types, it will be the Java primitive default wrapped appropriately.
For enums
, it will be the first enumerator.
And for all other types derived from java.lang.Object
, it will be null.
- Specified by:
getDefaultValue
in interface EClassifier
- Following copied from interface:
org.eclipse.emf.ecore.EClassifier
- Returns:
- the value of the 'Default Value' attribute.
- See Also:
EcorePackage.getEClassifier_DefaultValue()
getEPackage
public EPackage getEPackage()
-
- Specified by:
getEPackage
in interface EClassifier
- Following copied from interface:
org.eclipse.emf.ecore.EClassifier
- Returns:
- the value of the 'EPackage' container reference.
- See Also:
EcorePackage.getEClassifier_EPackage()
,
EPackage.getEClassifiers()
toString
public java.lang.String toString()
-
- Overrides:
toString
in class ENamedElementImpl
eBasicRemoveFromContainer
public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
-
- Overrides:
eBasicRemoveFromContainer
in class EObjectImpl
- Following copied from interface:
org.eclipse.emf.ecore.InternalEObject
- Returns:
- accumulated notifications.