org.eclipse.emf.henshin.model
Interface HenshinFactory

All Superinterfaces:
EFactory, EModelElement, EObject, Notifier
All Known Implementing Classes:
HenshinFactoryImpl

public interface HenshinFactory
extends EFactory

The Factory for the Henshin model. It provides a create method for each non-abstract class of the model.

See Also:
HenshinPackage

Field Summary
static HenshinFactory eINSTANCE
          The singleton instance of the factory.
 
Method Summary
 And createAnd()
          Returns a new object of class 'And'.
 Annotation createAnnotation()
          Returns a new object of class 'Annotation'.
 Attribute createAttribute()
          Returns a new object of class 'Attribute'.
 Attribute createAttribute(Node node, EAttribute type, String value)
          Returns a new object of class 'Attribute'.
 AttributeCondition createAttributeCondition()
          Returns a new object of class 'Attribute Condition'.
 ConditionalUnit createConditionalUnit()
          Returns a new object of class 'Conditional Unit'.
 Edge createEdge()
          Returns a new object of class 'Edge'.
 Edge createEdge(Node source, Node target, EReference type)
          Creates a new edge between two nodes.
 Graph createGraph()
          Returns a new object of class 'Graph'.
 Graph createGraph(String name)
          Returns a new object of class 'Graph'.
 IndependentUnit createIndependentUnit()
          Returns a new object of class 'Independent Unit'.
 IteratedUnit createIteratedUnit()
          Returns a new object of class 'Iterated Unit'.
 LoopUnit createLoopUnit()
          Returns a new object of class 'Loop Unit'.
 Mapping createMapping()
          Returns a new object of class 'Mapping'.
 Mapping createMapping(Node origin, Node image)
          Returns a new object of class 'Mapping'.
 Module createModule()
          Returns a new object of class 'Module'.
 NestedCondition createNestedCondition()
          Returns a new object of class 'Nested Condition'.
 Node createNode()
          Returns a new object of class 'Node'.
 Node createNode(Graph graph, EClass type, String name)
          Create a new node and add it to a given graph.
 Not createNot()
          Returns a new object of class 'Not'.
 Or createOr()
          Returns a new object of class 'Or'.
 Parameter createParameter()
          Returns a new object of class 'Parameter'.
 Parameter createParameter(String name)
          Returns a new object of class 'Parameter'.
 ParameterMapping createParameterMapping()
          Returns a new object of class 'Parameter Mapping'.
 PriorityUnit createPriorityUnit()
          Returns a new object of class 'Priority Unit'.
 Rule createRule()
          Returns a new object of class 'Rule'.
 Rule createRule(String name)
          Returns a new object of class 'Rule'.
 SequentialUnit createSequentialUnit()
          Returns a new object of class 'Sequential Unit'.
 Xor createXor()
          Returns a new object of class 'Xor'.
 HenshinPackage getHenshinPackage()
          Returns the package supported by this factory.
 
Methods inherited from interface org.eclipse.emf.ecore.EFactory
convertToString, create, createFromString, 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
 

Field Detail

eINSTANCE

static final HenshinFactory eINSTANCE
The singleton instance of the factory.

Method Detail

createAnnotation

Annotation createAnnotation()
Returns a new object of class 'Annotation'.

Returns:
a new object of class 'Annotation'.

createModule

Module createModule()
Returns a new object of class 'Module'.

Returns:
a new object of class 'Module'.

createRule

Rule createRule()
Returns a new object of class 'Rule'.

Returns:
a new object of class 'Rule'.

createRule

Rule createRule(String name)
Returns a new object of class 'Rule'.

Parameters:
name - The name of the rule.
Returns:
a new object of class 'Rule'.

createAttributeCondition

AttributeCondition createAttributeCondition()
Returns a new object of class 'Attribute Condition'.

Returns:
a new object of class 'Attribute Condition'.

createParameter

Parameter createParameter()
Returns a new object of class 'Parameter'.

Returns:
a new object of class 'Parameter'.

createParameter

Parameter createParameter(String name)
Returns a new object of class 'Parameter'.

Parameters:
name - Name of the parameter.
Returns:
a new object of class 'Parameter'.

createGraph

Graph createGraph()
Returns a new object of class 'Graph'.

Returns:
a new object of class 'Graph'.

createGraph

Graph createGraph(String name)
Returns a new object of class 'Graph'.

Parameters:
name - Name of the graph.
Returns:
a new object of class 'Graph'.

createMapping

Mapping createMapping()
Returns a new object of class 'Mapping'.

Returns:
a new object of class 'Mapping'.

createMapping

Mapping createMapping(Node origin,
                      Node image)
Returns a new object of class 'Mapping'. Sets the origin and the image of the created mapping.

Parameters:
origin - Origin of the mapping.
image - Image of the mapping.
Returns:
a new object of class 'Mapping'.

createNode

Node createNode()
Returns a new object of class 'Node'.

Returns:
a new object of class 'Node'.

createNode

Node createNode(Graph graph,
                EClass type,
                String name)
Create a new node and add it to a given graph.

Parameters:
graph - The graph.
type - The type of the node.
name - The name of the node.
Returns:
a new object of class 'Node'.

createAttribute

Attribute createAttribute()
Returns a new object of class 'Attribute'.

Returns:
a new object of class 'Attribute'.

createAttribute

Attribute createAttribute(Node node,
                          EAttribute type,
                          String value)
Returns a new object of class 'Attribute'.

Parameters:
type - Attribute type.
value - Attribute value.
Returns:
a new object of class 'Attribute'.

createEdge

Edge createEdge()
Returns a new object of class 'Edge'.

Returns:
a new object of class 'Edge'.

createEdge

Edge createEdge(Node source,
                Node target,
                EReference type)
Creates a new edge between two nodes. The edge is automatically added to the graph of the source node if not null.

Parameters:
source - Source node.
target - Target node.
type - Edge type.
Returns:
The created edge.

createIndependentUnit

IndependentUnit createIndependentUnit()
Returns a new object of class 'Independent Unit'.

Returns:
a new object of class 'Independent Unit'.

createSequentialUnit

SequentialUnit createSequentialUnit()
Returns a new object of class 'Sequential Unit'.

Returns:
a new object of class 'Sequential Unit'.

createConditionalUnit

ConditionalUnit createConditionalUnit()
Returns a new object of class 'Conditional Unit'.

Returns:
a new object of class 'Conditional Unit'.

createPriorityUnit

PriorityUnit createPriorityUnit()
Returns a new object of class 'Priority Unit'.

Returns:
a new object of class 'Priority Unit'.

createIteratedUnit

IteratedUnit createIteratedUnit()
Returns a new object of class 'Iterated Unit'.

Returns:
a new object of class 'Iterated Unit'.

createLoopUnit

LoopUnit createLoopUnit()
Returns a new object of class 'Loop Unit'.

Returns:
a new object of class 'Loop Unit'.

createNestedCondition

NestedCondition createNestedCondition()
Returns a new object of class 'Nested Condition'.

Returns:
a new object of class 'Nested Condition'.

createAnd

And createAnd()
Returns a new object of class 'And'.

Returns:
a new object of class 'And'.

createOr

Or createOr()
Returns a new object of class 'Or'.

Returns:
a new object of class 'Or'.

createNot

Not createNot()
Returns a new object of class 'Not'.

Returns:
a new object of class 'Not'.

createXor

Xor createXor()
Returns a new object of class 'Xor'.

Returns:
a new object of class 'Xor'.

createParameterMapping

ParameterMapping createParameterMapping()
Returns a new object of class 'Parameter Mapping'.

Returns:
a new object of class 'Parameter Mapping'.

getHenshinPackage

HenshinPackage getHenshinPackage()
Returns the package supported by this factory.

Returns:
the package supported by this factory.