org.eclipse.emf.ecore
Interface EClassifier

All Superinterfaces:
EModelElement, ENamedElement, EObject, Notifier
All Known Subinterfaces:
EClass, EDataType, EEnum
All Known Implementing Classes:
EClassifierImpl, EClassImpl, EDataTypeImpl, EEnumImpl

public interface EClassifier
extends ENamedElement

A representation of the model object 'EClassifier'.

The following features are supported:

See Also:
EcorePackage.getEClassifier()

Method Summary
 int getClassifierID()
           Returns the ID relative to the containing package.
 Object getDefaultValue()
          Returns the value of the 'Default Value' attribute
 EPackage getEPackage()
          Returns the value of the 'EPackage' container reference.
 Class getInstanceClass()
          Returns the value of the 'Instance Class' attribute
 String getInstanceClassName()
          Returns the value of the 'Instance Class Name' attribute
 boolean isInstance(Object object)
           Returns whether the object is an instance of this classifier.
 void setInstanceClass(Class value)
          Sets the value of the 'Instance Class' attribute.
 void setInstanceClassName(String value)
          Sets the value of the 'Instance Class Name' attribute
 
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
 

Method Detail

getInstanceClassName

public String getInstanceClassName()
Returns the value of the 'Instance Class Name' attribute.

It represents the name of the Java instance class that this meta object represents.

Returns:
the value of the 'Instance Class Name' attribute.
See Also:
getInstanceClass(), setInstanceClassName(String), EcorePackage.getEClassifier_InstanceClassName()

setInstanceClassName

public void setInstanceClassName(String value)
Sets the value of the 'Instance Class Name' attribute.

Parameters:
value - the new value of the 'Instance Class Name' attribute.
See Also:
getInstanceClassName()

getInstanceClass

public Class getInstanceClass()
Returns the value of the 'Instance Class' attribute.

It represents the actual Java instance class that this meta object represents.

Returns:
the value of the 'Instance Class' attribute.
See Also:
setInstanceClass(Class), EcorePackage.getEClassifier_InstanceClass()

setInstanceClass

public void setInstanceClass(Class value)
Sets the value of the 'Instance Class' attribute.

Parameters:
value - the new value of the 'Instance Class' attribute.
See Also:
getInstanceClass()

getDefaultValue

public Object getDefaultValue()
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.

Returns:
the value of the 'Default Value' attribute.
See Also:
EcorePackage.getEClassifier_DefaultValue()

getEPackage

public EPackage getEPackage()
Returns the value of the 'EPackage' container reference. It is bidirectional and its opposite is 'EClassifiers'.

Returns:
the value of the 'EPackage' container reference.
See Also:
EcorePackage.getEClassifier_EPackage(), EPackage.getEClassifiers()

isInstance

public boolean isInstance(Object object)
Returns whether the object is an instance of this classifier.

Parameters:
object - the object in question.
Returns:
whether the object is an instance.
See Also:
Class.isInstance(java.lang.Object)

getClassifierID

public int getClassifierID()
Returns the ID relative to the containing package.

Returns:
the relative ID.

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