public interface EClassifier extends ENamedElement
The following features are supported:
EcorePackage.getEClassifier()
Modifier and Type | Method and Description |
---|---|
int |
getClassifierID()
Returns the ID relative to the
containing package. |
java.lang.Object |
getDefaultValue()
Returns the value of the 'Default Value' attribute
|
EPackage |
getEPackage()
Returns the value of the 'EPackage' container reference.
|
EList<ETypeParameter> |
getETypeParameters()
Returns the value of the 'EType Parameters' containment reference list.
|
java.lang.Class<?> |
getInstanceClass()
Returns the value of the 'Instance Class' attribute
|
java.lang.String |
getInstanceClassName()
Returns the value of the 'Instance Class Name' attribute
|
java.lang.String |
getInstanceTypeName()
Returns the value of the 'Instance Type Name' attribute
|
boolean |
isInstance(java.lang.Object object)
Returns whether the object is an instance of this classifier.
|
void |
setInstanceClass(java.lang.Class<?> value)
Sets the value of the '
Instance Class ' attribute. |
void |
setInstanceClassName(java.lang.String value)
Sets the value of the '
Instance Class Name ' attribute |
void |
setInstanceTypeName(java.lang.String value)
Sets the value of the '
Instance Type Name ' attribute |
getName, setName
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
java.lang.String getInstanceClassName()
It represents the name of the Java instance class that this meta object represents.
getInstanceClass()
,
setInstanceClassName(String)
,
EcorePackage.getEClassifier_InstanceClassName()
void setInstanceClassName(java.lang.String value)
Instance Class Name
' attribute.
value
- the new value of the 'Instance Class Name' attribute.getInstanceClassName()
java.lang.Class<?> getInstanceClass()
It represents the actual Java instance class that this meta object represents.
setInstanceClass(Class)
,
EcorePackage.getEClassifier_InstanceClass()
void setInstanceClass(java.lang.Class<?> value)
Instance Class
' attribute.value
- the new value of the 'Instance Class' attribute.getInstanceClass()
java.lang.Object getDefaultValue()
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.
EcorePackage.getEClassifier_DefaultValue()
java.lang.String getInstanceTypeName()
It represents the parameterized Java type that this meta object represents.
setInstanceTypeName(String)
,
EcorePackage.getEClassifier_InstanceTypeName()
void setInstanceTypeName(java.lang.String value)
Instance Type Name
' attribute.
value
- the new value of the 'Instance Type Name' attribute.getInstanceTypeName()
EPackage getEPackage()
EClassifiers
'.
EcorePackage.getEClassifier_EPackage()
,
EPackage.getEClassifiers()
EList<ETypeParameter> getETypeParameters()
ETypeParameter
.
A classifier can optionally introduce type parameters.
EcorePackage.getEClassifier_ETypeParameters()
boolean isInstance(java.lang.Object object)
object
- the object in question.Class.isInstance(java.lang.Object)
int getClassifierID()
containing
package.