IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.ras.profile.management.artifact.filter
Interface IArtifactFilterFactory


public interface IArtifactFilterFactory

The IArtifactFilterFactory provides a factory for creating IArtifactFilter or derived instances. This interface is not intended to be implemented by clients.

See Also:
IArtifactManager, IArtifactFilter, IArtifactAttributeFilter, ICaseSensitiveArtifactFilter

Method Summary
 IArtifactFilter createArtifactFilter(Artifact theArtifact)
          Creates an IArtifactFilter that provides the ability to filter for a particular Arifact instance.
 IArtifactAttributeFilter createAttributeFilter(String methodName, Object filterObject)
          Creates the IArtifactAttributeFilter with name of the method to invoke on the Artifact and an Object to filter for.
 IArtifactAttributeFilter createStringAttributeFilter(String methodName, String filterString, boolean caseSensitive)
          Creates the IArtifactAttributeFilter with name of the method to invoke on the Artifact, a String to filter for and a case sensitivity setting.
 

Method Detail

createAttributeFilter

public IArtifactAttributeFilter createAttributeFilter(String methodName,
                                                      Object filterObject)
                                               throws SecurityException,
                                                      NullPointerException,
                                                      NoSuchMethodException
Creates the IArtifactAttributeFilter with name of the method to invoke on the Artifact and an Object to filter for.

Parameters:
methodName - the name of the method to invoke on the Artifact
filterObject - the Object that is used to compare against during the filtering process. It can be null
Returns:
a new creately IArtifactAttributeFilter instance
Throws:
NoSuchMethodException - - if a matching method is not found or if the methodName is "" or "".
NullPointerException - - if method name is null
SecurityException - - if access to the information is denied.

createStringAttributeFilter

public IArtifactAttributeFilter createStringAttributeFilter(String methodName,
                                                            String filterString,
                                                            boolean caseSensitive)
                                                     throws SecurityException,
                                                            NullPointerException,
                                                            NoSuchMethodException
Creates the IArtifactAttributeFilter with name of the method to invoke on the Artifact, a String to filter for and a case sensitivity setting.

Parameters:
methodName - the name of the method to invoke on the Artifact
filterString - the String that is used to compare against during the filtering process. It can be null
caseSensitive - indicates if the filter should operate in a case sensitive manner
Returns:
a new creately IArtifactAttributeFilter instance
Throws:
NoSuchMethodException - - if a matching method is not found or if the methodName is "" or "".
NullPointerException - - if method name is null
SecurityException - - if access to the information is denied.

createArtifactFilter

public IArtifactFilter createArtifactFilter(Artifact theArtifact)
                                     throws IllegalArgumentException
Creates an IArtifactFilter that provides the ability to filter for a particular Arifact instance.

Parameters:
theArtifact - to filter for
Returns:
a new creately IArtifactAttributeFilter instance
Throws:
IllegalArgumentException - if theArtifact is null

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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