IBM Rational Software Modeler
Release 6.0

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

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

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

A representation of the model object ' Usage'. xmi:ordered=false property order is (these are role names) 1. artifactActivity 2. contextRef 3. assetActivity

The following features are supported:

See Also:
DefaultprofilePackage.getUsage()

Method Summary
 VisitorStatus accept(com.ibm.xtools.ras.profile.defauld.navigation.internal.IActivityVisitor visitor)
          Accepts the given visitor.
 Activity createActivity()
          Helper method used to create an Activity element using the factory assigned to the Usage.
 Artifact createArtifact()
          Helper method used to create an Artifact element using the factory assigned to the Usage.
 ArtifactActivity createArtifactActivity()
          Helper method used to create an ArtifactActivity element using the factory assigned to the Usage.
 AssetActivity createAssetActivity()
          Helper method used to create an AssetActivity element using the factory assigned to the Usage.
 ContextRef createContextRef()
          Helper method used to create a ContextRef element using the factory assigned to the Usage.
 org.eclipse.emf.common.util.EList getArtifactActivity()
          Returns the value of the 'Artifact Activity' containment reference list.
 org.eclipse.emf.common.util.EList getAssetActivity()
          Returns the value of the 'Asset Activity' containment reference list.
 IAssetFactory getAssetFactory()
          Get the asset factory with which to create the elements in this Solution.
 org.eclipse.emf.common.util.EList getContextRef()
          Returns the value of the 'Context Ref' containment reference list.
 Artifact getReference()
          Returns the value of the 'Reference' reference.
 void setAssetFactory(IAssetFactory theAssetFactory)
          Set the asset factory with which to create the elements in this Usage.
 void setReference(Artifact value)
          Sets the value of the ' Reference' reference.
 
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

getReference

public Artifact getReference()
Returns the value of the 'Reference' reference. {optional}

Returns:
the value of the 'Reference' reference.
See Also:
setReference(Artifact), DefaultprofilePackage.getUsage_Reference()

setReference

public void setReference(Artifact value)
Sets the value of the ' Reference' reference.

Parameters:
value - the new value of the 'Reference' reference.
See Also:
getReference()

getContextRef

public org.eclipse.emf.common.util.EList getContextRef()
Returns the value of the 'Context Ref' containment reference list. The list contents are of type ContextRef.

Returns:
the value of the 'Context Ref' containment reference list.
See Also:
DefaultprofilePackage.getUsage_ContextRef()

getArtifactActivity

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

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

getAssetActivity

public org.eclipse.emf.common.util.EList getAssetActivity()
Returns the value of the 'Asset Activity' containment reference list. The list contents are of type AssetActivity.

Returns:
the value of the 'Asset Activity' containment reference list.
See Also:
DefaultprofilePackage.getUsage_AssetActivity()

setAssetFactory

public void setAssetFactory(IAssetFactory theAssetFactory)
Set the asset factory with which to create the elements in this Usage. This method is called by the AssetFactory's create method when the Usage 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

createActivity

public Activity createActivity()
Helper method used to create an Activity element using the factory assigned to the Usage.

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

createArtifact

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

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

createContextRef

public ContextRef createContextRef()
Helper method used to create a ContextRef element using the factory assigned to the Usage.

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

createArtifactActivity

public ArtifactActivity createArtifactActivity()
Helper method used to create an ArtifactActivity element using the factory assigned to the Usage.

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

createAssetActivity

public AssetActivity createAssetActivity()
Helper method used to create an AssetActivity element using the factory assigned to the Usage.

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

accept

public VisitorStatus accept(com.ibm.xtools.ras.profile.defauld.navigation.internal.IActivityVisitor visitor)
Accepts the given visitor. The visitor's visit method is called with this Usage. Each Activity contained in the Usage will be visited. The visitor returns a VisitorStatus indicating how visition should proceed.

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

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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