org.eclipse.emf.henshin.model.impl
Class HenshinFactoryImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl
              extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
                  extended by org.eclipse.emf.ecore.impl.EModelElementImpl
                      extended by org.eclipse.emf.ecore.impl.EFactoryImpl
                          extended by org.eclipse.emf.henshin.model.impl.HenshinFactoryImpl
All Implemented Interfaces:
Notifier, EFactory, EModelElement, EObject, EStructuralFeature.Internal.DynamicValueHolder, InternalEObject, HenshinFactory

public class HenshinFactoryImpl
extends EFactoryImpl
implements HenshinFactory

An implementation of the model Factory.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
MinimalEObjectImpl.Container.Dynamic
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl
MinimalEObjectImpl.Container
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList<E extends Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EFactoryImpl
EDATE_FORMATS, ePackage
 
Fields inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eAnnotations, eFlags, EFROZEN, ELAST_EMODEL_ELEMENT_FLAG
 
Fields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eContainer
 
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface org.eclipse.emf.henshin.model.HenshinFactory
eINSTANCE
 
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
HenshinFactoryImpl()
          Creates an instance of the factory.
 
Method Summary
 String convertActionToString(EDataType eDataType, Object value)
           
 String convertToString(EDataType eDataType, Object instanceValue)
           
 EObject create(EClass eClass)
           
 Action createActionFromString(EDataType eDataType, String value)
           
 And createAnd()
           
 Annotation createAnnotation()
           
 Attribute createAttribute()
           
 Attribute createAttribute(Node node, EAttribute type, String value)
           
 AttributeCondition createAttributeCondition()
           
 ConditionalUnit createConditionalUnit()
           
 Edge createEdge()
           
 Edge createEdge(Node source, Node target, EReference type)
           
 Object createFromString(EDataType eDataType, String initialValue)
           
 Graph createGraph()
           
 Graph createGraph(String name)
           
 IndependentUnit createIndependentUnit()
           
 IteratedUnit createIteratedUnit()
           
 LoopUnit createLoopUnit()
           
 Mapping createMapping()
           
 Mapping createMapping(Node origin, Node image)
           
 Module createModule()
           
 NestedCondition createNestedCondition()
           
 Node createNode()
           
 Node createNode(Graph graph, EClass type, String name)
           
 Not createNot()
           
 Or createOr()
           
 Parameter createParameter()
           
 Parameter createParameter(String name)
           
 ParameterMapping createParameterMapping()
           
 PriorityUnit createPriorityUnit()
           
 Rule createRule()
           
 Rule createRule(String name)
           
 SequentialUnit createSequentialUnit()
           
 Xor createXor()
           
 HenshinPackage getHenshinPackage()
           
static HenshinPackage getPackage()
          Deprecated.  
static HenshinFactory init()
          Creates the default factory implementation.
 
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.EModelElementImpl
eObjectForURIFragmentSegment, eSetDirectResource, eURIFragmentSegment, freeze, freeze, getEAnnotation, getEAnnotations, isFrozen, setFrozen
 
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
eBasicSetContainer, eInternalContainer
 
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 org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
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.EFactory
getEPackage, setEPackage
 
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
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Constructor Detail

HenshinFactoryImpl

public HenshinFactoryImpl()
Creates an instance of the factory.

Method Detail

init

public static HenshinFactory init()
Creates the default factory implementation.


create

public EObject create(EClass eClass)

Specified by:
create in interface EFactory
Overrides:
create in class EFactoryImpl

createFromString

public Object createFromString(EDataType eDataType,
                               String initialValue)

Specified by:
createFromString in interface EFactory
Overrides:
createFromString in class EFactoryImpl

convertToString

public String convertToString(EDataType eDataType,
                              Object instanceValue)

Specified by:
convertToString in interface EFactory
Overrides:
convertToString in class EFactoryImpl

createAnnotation

public Annotation createAnnotation()

Specified by:
createAnnotation in interface HenshinFactory
Returns:
a new object of class 'Annotation'.

createModule

public Module createModule()

Specified by:
createModule in interface HenshinFactory
Returns:
a new object of class 'Module'.

createRule

public Rule createRule()

Specified by:
createRule in interface HenshinFactory
Returns:
a new object of class 'Rule'.

createRule

public Rule createRule(String name)

Specified by:
createRule in interface HenshinFactory
Parameters:
name - The name of the rule.
Returns:
a new object of class 'Rule'.

createAttributeCondition

public AttributeCondition createAttributeCondition()

Specified by:
createAttributeCondition in interface HenshinFactory
Returns:
a new object of class 'Attribute Condition'.

createParameter

public Parameter createParameter()

Specified by:
createParameter in interface HenshinFactory
Returns:
a new object of class 'Parameter'.

createParameter

public Parameter createParameter(String name)

Specified by:
createParameter in interface HenshinFactory
Parameters:
name - Name of the parameter.
Returns:
a new object of class 'Parameter'.

createGraph

public Graph createGraph()

Specified by:
createGraph in interface HenshinFactory
Returns:
a new object of class 'Graph'.

createGraph

public Graph createGraph(String name)

Specified by:
createGraph in interface HenshinFactory
Parameters:
name - Name of the graph.
Returns:
a new object of class 'Graph'.

createMapping

public Mapping createMapping()

Specified by:
createMapping in interface HenshinFactory
Returns:
a new object of class 'Mapping'.

createMapping

public Mapping createMapping(Node origin,
                             Node image)

Specified by:
createMapping in interface HenshinFactory
Parameters:
origin - Origin of the mapping.
image - Image of the mapping.
Returns:
a new object of class 'Mapping'.

createNode

public Node createNode()

Specified by:
createNode in interface HenshinFactory
Returns:
a new object of class 'Node'.

createNode

public Node createNode(Graph graph,
                       EClass type,
                       String name)

Specified by:
createNode in interface HenshinFactory
Parameters:
graph - The graph.
type - The type of the node.
name - The name of the node.
Returns:
a new object of class 'Node'.

createAttribute

public Attribute createAttribute()

Specified by:
createAttribute in interface HenshinFactory
Returns:
a new object of class 'Attribute'.

createAttribute

public Attribute createAttribute(Node node,
                                 EAttribute type,
                                 String value)

Specified by:
createAttribute in interface HenshinFactory
type - Attribute type.
value - Attribute value.
Returns:
a new object of class 'Attribute'.

createEdge

public Edge createEdge()

Specified by:
createEdge in interface HenshinFactory
Returns:
a new object of class 'Edge'.

createEdge

public Edge createEdge(Node source,
                       Node target,
                       EReference type)

Specified by:
createEdge in interface HenshinFactory
Parameters:
source - Source node.
target - Target node.
type - Edge type.
Returns:
The created edge.

createIndependentUnit

public IndependentUnit createIndependentUnit()

Specified by:
createIndependentUnit in interface HenshinFactory
Returns:
a new object of class 'Independent Unit'.

createSequentialUnit

public SequentialUnit createSequentialUnit()

Specified by:
createSequentialUnit in interface HenshinFactory
Returns:
a new object of class 'Sequential Unit'.

createConditionalUnit

public ConditionalUnit createConditionalUnit()

Specified by:
createConditionalUnit in interface HenshinFactory
Returns:
a new object of class 'Conditional Unit'.

createPriorityUnit

public PriorityUnit createPriorityUnit()

Specified by:
createPriorityUnit in interface HenshinFactory
Returns:
a new object of class 'Priority Unit'.

createIteratedUnit

public IteratedUnit createIteratedUnit()

Specified by:
createIteratedUnit in interface HenshinFactory
Returns:
a new object of class 'Iterated Unit'.

createLoopUnit

public LoopUnit createLoopUnit()

Specified by:
createLoopUnit in interface HenshinFactory
Returns:
a new object of class 'Loop Unit'.

createNestedCondition

public NestedCondition createNestedCondition()

Specified by:
createNestedCondition in interface HenshinFactory
Returns:
a new object of class 'Nested Condition'.

createAnd

public And createAnd()

Specified by:
createAnd in interface HenshinFactory
Returns:
a new object of class 'And'.

createOr

public Or createOr()

Specified by:
createOr in interface HenshinFactory
Returns:
a new object of class 'Or'.

createNot

public Not createNot()

Specified by:
createNot in interface HenshinFactory
Returns:
a new object of class 'Not'.

createActionFromString

public Action createActionFromString(EDataType eDataType,
                                     String value)


convertActionToString

public String convertActionToString(EDataType eDataType,
                                    Object value)


createXor

public Xor createXor()

Specified by:
createXor in interface HenshinFactory
Returns:
a new object of class 'Xor'.

createParameterMapping

public ParameterMapping createParameterMapping()

Specified by:
createParameterMapping in interface HenshinFactory
Returns:
a new object of class 'Parameter Mapping'.

getHenshinPackage

public HenshinPackage getHenshinPackage()

Specified by:
getHenshinPackage in interface HenshinFactory
Returns:
the package supported by this factory.

getPackage

@Deprecated
public static HenshinPackage getPackage()
Deprecated.