|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The IArtifactManagerAdapter is used to adapt an object to one
that allows it to be managed by the IArtifactManager. This
abstracts the underlying object type from the behaviors expected by the
IArtifactManager.
This interface is expected to be implemented by clients. Word of caution,
it's highly probable that this interface will grow over time.
| Method Summary | |
void |
accept(IArtifactVisitor visitor)
Accepts the given visitor. |
boolean |
addArtifact(Artifact anArtifact)
Adds an Artifact to the artifact hierarchy being managed. |
Object |
getAdapted()
Retrieves the object that is being adapted to be managed by an instance of an IArtifactManager. |
boolean |
isAdapterForType(Object type)
Returns whether the adapter is of the given type. |
| Method Detail |
public void accept(IArtifactVisitor visitor)
IArtifactManagerAdapter
will adapt to an object containing an Artifact hierarchy.
Each Artifact contained in the hierarchy will be visited.
visitor - the visitor used to visit each Artifact
IllegalArgumentException - if visitor is null.IArtifactVisitor.visit(Artifact)public boolean isAdapterForType(Object type)
IArtifactManagerAdapter may be the adapter for many types
that contain an Artifact hierarchy.
type - the type.
true if the adapter is of the given type.public Object getAdapted()
IArtifactManager.
public boolean addArtifact(Artifact anArtifact)
throws IllegalArgumentException
Artifact to the artifact hierarchy being managed.
anArtifact - to add to the artifact hierarchy
true if successfully added
IllegalArgumentException - if anArtifact is null
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.