Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.app.model.impl
Class ModelFactoryImpl

java.lang.Object
  extended by EFactoryImpl
      extended by com.ibm.etools.systems.app.model.impl.ModelFactoryImpl
All Implemented Interfaces:
ModelFactory

public class ModelFactoryImpl
extends EFactoryImpl
implements ModelFactory

An implementation of the model Factory.


Field Summary
static String copyright
           
 
Fields inherited from interface com.ibm.etools.systems.app.model.ModelFactory
eINSTANCE
 
Constructor Summary
ModelFactoryImpl()
          Creates an instance of the factory.
 
Method Summary
 EObject create(EClass eClass)
           
 ApplicationModel createApplicationModel()
           
 Artifact createArtifact()
           
 Relationship createRelationship()
           
 ModelPackage getModelPackage()
           
static ModelPackage getPackage()
          Deprecated.  
static ModelFactory init()
          Creates the default factory implementation.
 ApplicationModel load(String filename)
          Load the model
 void save(ApplicationModel model, String filename)
          Save the model.
 
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

ModelFactoryImpl

public ModelFactoryImpl()
Creates an instance of the factory.

Method Detail

init

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


create

public EObject create(EClass eClass)


createRelationship

public Relationship createRelationship()

Specified by:
createRelationship in interface ModelFactory
Returns:
a new object of class 'Relationship'.

createArtifact

public Artifact createArtifact()

Specified by:
createArtifact in interface ModelFactory
Returns:
a new object of class 'Artifact'.

createApplicationModel

public ApplicationModel createApplicationModel()

Specified by:
createApplicationModel in interface ModelFactory
Returns:
a new object of class 'Application Model'.

getModelPackage

public ModelPackage getModelPackage()

Specified by:
getModelPackage in interface ModelFactory
Returns:
the package supported by this factory.

getPackage

public static ModelPackage getPackage()
Deprecated. 


save

public void save(ApplicationModel model,
                 String filename)
Save the model.

Specified by:
save in interface ModelFactory

load

public ApplicationModel load(String filename)
Load the model

Specified by:
load in interface ModelFactory

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.