org.eclipse.emf.ecore.xcore.impl
Class XcoreFactoryImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
org.eclipse.emf.ecore.impl.EModelElementImpl
org.eclipse.emf.ecore.impl.EFactoryImpl
org.eclipse.emf.ecore.xcore.impl.XcoreFactoryImpl
- All Implemented Interfaces:
- Notifier, EFactory, EModelElement, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject, XcoreFactory
public class XcoreFactoryImpl
- extends EFactoryImpl
- implements XcoreFactory
An implementation of the model Factory.
Methods inherited from class org.eclipse.emf.ecore.impl.EFactoryImpl |
basicCreate, basicSetEPackage, collapseWhiteSpace, convertToString, createFromString, eGet, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eSet, eStaticClass, eUnset, getEPackage, replaceWhiteSpace, setEPackage, split |
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl |
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eContents, eCrossReferences, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetProxyURI, eSettings |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
XcoreFactoryImpl
public XcoreFactoryImpl()
- Creates an instance of the factory.
init
public static XcoreFactory init()
- Creates the default factory implementation.
create
public EObject create(EClass eClass)
-
- Specified by:
create
in interface EFactory
- Overrides:
create
in class EFactoryImpl
- Parameters:
eClass
- the class of the new instance.
- Returns:
- a new instance of the class.
createFromString
public java.lang.Object createFromString(EDataType eDataType,
java.lang.String initialValue)
-
- Specified by:
createFromString
in interface EFactory
- Overrides:
createFromString
in class EFactoryImpl
initialValue
- literal value of the instance.
- Returns:
- an instance of the data type.
- See Also:
EFactory.convertToString(EDataType, Object)
convertToString
public java.lang.String convertToString(EDataType eDataType,
java.lang.Object instanceValue)
-
- Specified by:
convertToString
in interface EFactory
- Overrides:
convertToString
in class EFactoryImpl
- Parameters:
eDataType
- the data type of the value.instanceValue
- the value.
- Returns:
- the literal value of the instance.
- See Also:
EFactory.createFromString(EDataType, String)
createXAnnotation
public XAnnotation createXAnnotation()
-
- Specified by:
createXAnnotation
in interface XcoreFactory
- Returns:
- a new object of class 'XAnnotation'.
createXAnnotationDirective
public XAnnotationDirective createXAnnotationDirective()
-
- Specified by:
createXAnnotationDirective
in interface XcoreFactory
- Returns:
- a new object of class 'XAnnotation Directive'.
createXAttribute
public XAttribute createXAttribute()
-
- Specified by:
createXAttribute
in interface XcoreFactory
- Returns:
- a new object of class 'XAttribute'.
createXClass
public XClass createXClass()
-
- Specified by:
createXClass
in interface XcoreFactory
- Returns:
- a new object of class 'XClass'.
createXDataType
public XDataType createXDataType()
-
- Specified by:
createXDataType
in interface XcoreFactory
- Returns:
- a new object of class 'XData Type'.
createXEnum
public XEnum createXEnum()
-
- Specified by:
createXEnum
in interface XcoreFactory
- Returns:
- a new object of class 'XEnum'.
createXEnumLiteral
public XEnumLiteral createXEnumLiteral()
-
- Specified by:
createXEnumLiteral
in interface XcoreFactory
- Returns:
- a new object of class 'XEnum Literal'.
createXGenericType
public XGenericType createXGenericType()
-
- Specified by:
createXGenericType
in interface XcoreFactory
- Returns:
- a new object of class 'XGeneric Type'.
createXImportDirective
public XImportDirective createXImportDirective()
-
- Specified by:
createXImportDirective
in interface XcoreFactory
- Returns:
- a new object of class 'XImport Directive'.
createXOperation
public XOperation createXOperation()
-
- Specified by:
createXOperation
in interface XcoreFactory
- Returns:
- a new object of class 'XOperation'.
createXPackage
public XPackage createXPackage()
-
- Specified by:
createXPackage
in interface XcoreFactory
- Returns:
- a new object of class 'XPackage'.
createXParameter
public XParameter createXParameter()
-
- Specified by:
createXParameter
in interface XcoreFactory
- Returns:
- a new object of class 'XParameter'.
createXReference
public XReference createXReference()
-
- Specified by:
createXReference
in interface XcoreFactory
- Returns:
- a new object of class 'XReference'.
createXStringToStringMapEntry
public java.util.Map.Entry<java.lang.String,java.lang.String> createXStringToStringMapEntry()
-
createXTypeParameter
public XTypeParameter createXTypeParameter()
-
- Specified by:
createXTypeParameter
in interface XcoreFactory
- Returns:
- a new object of class 'XType Parameter'.
createXMultiplicityFromString
public int[] createXMultiplicityFromString(EDataType eDataType,
java.lang.String initialValue)
-
convertXMultiplicityToString
public java.lang.String convertXMultiplicityToString(EDataType eDataType,
java.lang.Object instanceValue)
-
getXcorePackage
public XcorePackage getXcorePackage()
-
- Specified by:
getXcorePackage
in interface XcoreFactory
- Returns:
- the package supported by this factory.
getPackage
@Deprecated
public static XcorePackage getPackage()
- Deprecated.
-