IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.ras.type.descriptor
Interface IArtifactDescriptorFactory


public interface IArtifactDescriptorFactory

The IArtifactDescriptorFactory interface provides a mechanism to create objects that implement the IArtifactDescriptor. These objects can then be inserted into the IArtifactDescriptorManager that is responsible for managing all artifact descriptors used by RAS. This interface is not intended to be implemented by clients.


Method Summary
 IArtifactDescriptor createDescriptor(String theID, String theType, boolean isEditable)
          Constructs an ArtifactDescriptorImpl setting the artifact resource type to ArtifactResourceTypeEnum.FILE by default.
 IArtifactDescriptor createDescriptor(String theID, String theType, boolean isEditable, ArtifactResourceTypeEnum theResourceType)
          Constructs an IArtifactDescriptor requiring all properties to be supplied by the client.
 

Method Detail

createDescriptor

public IArtifactDescriptor createDescriptor(String theID,
                                            String theType,
                                            boolean isEditable,
                                            ArtifactResourceTypeEnum theResourceType)
                                     throws IllegalArgumentException
Constructs an IArtifactDescriptor requiring all properties to be supplied by the client.

Parameters:
theID - the id representing ArtifactDescriptorImpl
theType - the Artifact type for the ArtifactDescriptorImpl
isEditable - indicates if the ArtifactDescriptorImpl should be editable
theResourceType - the ArtifactResourceTypeEnum representing the physical resource type of the artifact.
Returns:
a new artifact descriptor
Throws:
IllegalArgumentException - if any of the Object type parameters are null or if any String parameter is empty.

createDescriptor

public IArtifactDescriptor createDescriptor(String theID,
                                            String theType,
                                            boolean isEditable)
                                     throws IllegalArgumentException
Constructs an ArtifactDescriptorImpl setting the artifact resource type to ArtifactResourceTypeEnum.FILE by default.

Parameters:
theID - the id representing ArtifactDescriptorImpl
theType - the Artifact type for the ArtifactDescriptorImpl
isEditable - indicates if the ArtifactDescriptorImpl should be editable
Returns:
a new artifact descriptor
Throws:
IllegalArgumentException - if any of the Object type parameters are null or if a String parameter is empty.

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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