public interface EFactory extends EModelElement
A factory is responsible for creating class instances,
and for converting data type instances to and from String.
The following features are supported:
EcorePackage.getEFactory()| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertToString(EDataType eDataType,
java.lang.Object instanceValue)
Returns the literal value of the instance.
|
EObject |
create(EClass eClass)
Creates a new instance of the class and returns it.
|
java.lang.Object |
createFromString(EDataType eDataType,
java.lang.String literalValue)
Creates an instance of the data type from the literal value.
|
EPackage |
getEPackage()
Returns the value of the 'EPackage' reference.
|
void |
setEPackage(EPackage value)
Sets the value of the '
EPackage' reference |
getEAnnotation, getEAnnotationseAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnseteAdapters, eDeliver, eNotify, eSetDeliverEPackage getEPackage()
EFactory Instance'.
It represent the package of this factory.
setEPackage(EPackage),
EcorePackage.getEFactory_EPackage(),
EPackage.getEFactoryInstance()void setEPackage(EPackage value)
EPackage' reference.
value - the new value of the 'EPackage' reference.getEPackage()EObject create(EClass eClass)
eClass - the class of the new instance.java.lang.Object createFromString(EDataType eDataType, java.lang.String literalValue)
literalValue - literal value of the instance.convertToString(EDataType, Object)java.lang.String convertToString(EDataType eDataType, java.lang.Object instanceValue)
eDataType - the data type of the value.instanceValue - the value.createFromString(EDataType, String)