IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.ras.profile.core
Interface IAssetFactory


public interface IAssetFactory

This wraps the emf package and factory so that EObject intances can be created without knowing profile being used. In other words when you create an object the factory will take care of finding the right factory to create the element. For instance if you have a component profile asset and you create a Solution then it uses the component profile factory. If instead you create a Description, then it uses the default profile factory. This interface is not intended to be implemented by clients.


Method Summary
 org.eclipse.emf.ecore.EObject create(Class theEObjectClass)
          This creates a new EObject for the asset's data model.
 String getProfileId()
          Retrieves the profile id of the profile for which the asset factory can create elements.
 

Method Detail

getProfileId

public String getProfileId()
Retrieves the profile id of the profile for which the asset factory can create elements.

Returns:
the profile id for the asset factory.

create

public org.eclipse.emf.ecore.EObject create(Class theEObjectClass)
This creates a new EObject for the asset's data model. This takes in the Class of the object you are trying to create. For instance to create a Solution object you pass in "Solution.class".

Parameters:
theEObjectClass - the Class of the object you are trying to create. For instance to create a Solution object you pass in "Solution.class".
Returns:
the EObject or null if the theEObjectClass was unknown.

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.