|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EFactory
A representation of the model object 'EFactory'.
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()
Method Summary | |
---|---|
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 |
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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
EPackage 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)
|
Copyright 2001-2012 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |