IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.ras.profile.defauld.defaultprofile
Interface Solution

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
Solution, Solution

public interface Solution
extends org.eclipse.emf.ecore.EObject

A representation of the model object ' Solution'. xmi:ordered=true property order is (these are role names) 1. artifact An asset provides a solution, which is found in a collection of artifacts. The element in a manifest is a simple container for all the artifact references of the asset. It is a required element and specifies no attributes. The element specifies only child elements.

The following features are supported:

See Also:
DefaultprofilePackage.getSolution()

Method Summary
 VisitorStatus accept(IArtifactVisitor visitor)
          Accepts the given visitor.
 boolean addArtifact(Artifact anArtifact)
          Helper method to add an Artifact to this Solution.
 Artifact createArtifact()
          Helper method used to create a Artifact element using the factory assigned to the Solution.
 org.eclipse.emf.common.util.EList getArtifact()
          Returns the value of the 'Artifact' containment reference list.
 IAssetFactory getAssetFactory()
          Get the asset factory with which to create the elements in this Solution.
 void setAssetFactory(IAssetFactory theAssetFactory)
          Set the asset factory with which to create the elements in this Solution.
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getArtifact

public org.eclipse.emf.common.util.EList getArtifact()
Returns the value of the 'Artifact' containment reference list. The list contents are of type Artifact.

Returns:
the value of the 'Artifact' containment reference list.
See Also:
DefaultprofilePackage.getSolution_Artifact()

setAssetFactory

public void setAssetFactory(IAssetFactory theAssetFactory)
Set the asset factory with which to create the elements in this Solution. This method is called by the AssetFactory's create method when the Solution is created. It should never have to be set by the user.

Parameters:
theAssetFactory - with which to create elements

getAssetFactory

public IAssetFactory getAssetFactory()
Get the asset factory with which to create the elements in this Solution.

Returns:
the asset factory

createArtifact

public Artifact createArtifact()
Helper method used to create a Artifact element using the factory assigned to the Solution.

Returns:
a new instance of a Artifact element or null if one could not be created.
See Also:
Artifact

addArtifact

public boolean addArtifact(Artifact anArtifact)
                    throws IllegalArgumentException
Helper method to add an Artifact to this Solution.

Parameters:
anArtifact - to add to the Solution
Returns:
true if successfully added
Throws:
IllegalArgumentException - if anArtifact is null

accept

public VisitorStatus accept(IArtifactVisitor visitor)
Accepts the given visitor. The visitor's visit method is called with this Solution. Each Artifact contained in the Solution will be visited. The visitor returns a VisitorStatus indicating how visition should proceed.

Parameters:
visitor - the visitor used to visit each Artifact
Returns:
a status indicating how visitation should proceed
Throws:
IllegalArgumentException - if visitor is null.
See Also:
IArtifactVisitor.visit(Artifact)

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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