Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.app.model.src.impl
Class SrcFactoryImpl

java.lang.Object
  extended by EFactoryImpl
      extended by com.ibm.etools.systems.app.model.src.impl.SrcFactoryImpl
All Implemented Interfaces:
SrcFactory

public class SrcFactoryImpl
extends EFactoryImpl
implements SrcFactory

An implementation of the model Factory.


Field Summary
static String copyright
           
 
Fields inherited from interface com.ibm.etools.systems.app.model.src.SrcFactory
eINSTANCE
 
Constructor Summary
SrcFactoryImpl()
          Creates an instance of the factory.
 
Method Summary
 EObject create(EClass eClass)
           
 CallableBlock createCallableBlock()
           
 CallableBlockWithSignature createCallableBlockWithSignature()
           
 CallsRelationship createCallsRelationship()
           
 IncludesRelationship createIncludesRelationship()
           
 IncludesRelationship createIncludesRelationship(ApplicationModel model, SourceContainer source, SourceContainer target, int position, String type)
          Searches for an existing IncludesRelationship with the same source, target and position and returns it if one exists.
 InvokesRelationship createInvokesRelationship()
           
 InvokesRelationship createInvokesRelationship(ApplicationModel model, Artifact source, Artifact target, int sourcePosition, String type, String subType)
          Searches for an existing InvokesRelationship with the same source, target, sourcePosition, type and subType and returns it if one exists.
 SourceContainer createSourceContainer()
           
 SourceContainer createSourceContainer(ApplicationModel model, String name, String type, String subtype, String location)
          Check if the specified model alreayd contains a SourceContainer with the specified name, type, subtype and location.
 SourceContainer createSourceContainer(ApplicationModel model, String name, String type, String subtype, String location, boolean caseSensitive)
          Searches for an existing SourceContainer with the same name, type, subtype and location and returns it if one exists.
static SrcPackage getPackage()
          Deprecated.  
 SrcPackage getSrcPackage()
           
static SrcFactory init()
          Creates the default factory implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Constructor Detail

SrcFactoryImpl

public SrcFactoryImpl()
Creates an instance of the factory.

Method Detail

init

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


create

public EObject create(EClass eClass)


createIncludesRelationship

public IncludesRelationship createIncludesRelationship()

Specified by:
createIncludesRelationship in interface SrcFactory
Returns:
a new object of class 'Includes Relationship'.

createIncludesRelationship

public IncludesRelationship createIncludesRelationship(ApplicationModel model,
                                                       SourceContainer source,
                                                       SourceContainer target,
                                                       int position,
                                                       String type)
Searches for an existing IncludesRelationship with the same source, target and position and returns it if one exists. Otherwise a new InvokesRelationship is created with the specified attributes, added to the list of relationships in the model, and returned.

Specified by:
createIncludesRelationship in interface SrcFactory

createCallableBlock

public CallableBlock createCallableBlock()

Specified by:
createCallableBlock in interface SrcFactory
Returns:
a new object of class 'Callable Block'.

createSourceContainer

public SourceContainer createSourceContainer()

Specified by:
createSourceContainer in interface SrcFactory
Returns:
a new object of class 'Source Container'.

createSourceContainer

public SourceContainer createSourceContainer(ApplicationModel model,
                                             String name,
                                             String type,
                                             String subtype,
                                             String location)
Check if the specified model alreayd contains a SourceContainer with the specified name, type, subtype and location. If it does then it is returned. Otherwise a new SourceContainer is created with those attributes and returned. The default is to treat all attributes as case sensitive.

Specified by:
createSourceContainer in interface SrcFactory

createSourceContainer

public SourceContainer createSourceContainer(ApplicationModel model,
                                             String name,
                                             String type,
                                             String subtype,
                                             String location,
                                             boolean caseSensitive)
Description copied from interface: SrcFactory
Searches for an existing SourceContainer with the same name, type, subtype and location and returns it if one exists. Otherwise a new SourceContainer is created with the specified attributes, added to the list of artifacts in the model, and returned.

Specified by:
createSourceContainer in interface SrcFactory
See Also:
createSourceContainer(ApplicationModel, String, String, String, String)

createInvokesRelationship

public InvokesRelationship createInvokesRelationship()

Specified by:
createInvokesRelationship in interface SrcFactory
Returns:
a new object of class 'Invokes Relationship'.

createInvokesRelationship

public InvokesRelationship createInvokesRelationship(ApplicationModel model,
                                                     Artifact source,
                                                     Artifact target,
                                                     int sourcePosition,
                                                     String type,
                                                     String subType)
Searches for an existing InvokesRelationship with the same source, target, sourcePosition, type and subType and returns it if one exists. Otherwise a new InvokesRelationship is created with the specified attributes, added to the list of relationships in the model, and returned.

Specified by:
createInvokesRelationship in interface SrcFactory

createCallableBlockWithSignature

public CallableBlockWithSignature createCallableBlockWithSignature()

Specified by:
createCallableBlockWithSignature in interface SrcFactory
Returns:
a new object of class 'Callable Block With Signature'.

createCallsRelationship

public CallsRelationship createCallsRelationship()

Specified by:
createCallsRelationship in interface SrcFactory
Returns:
a new object of class 'Calls Relationship'.

getSrcPackage

public SrcPackage getSrcPackage()

Specified by:
getSrcPackage in interface SrcFactory
Returns:
the package supported by this factory.

getPackage

public static SrcPackage getPackage()
Deprecated. 


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.