com.sun.javatest
Class TemplateParameterFilter

java.lang.Object
  extended by com.sun.javatest.TestFilter
      extended by com.sun.javatest.ObservableTestFilter
          extended by com.sun.javatest.ParameterFilter
              extended by com.sun.javatest.TemplateParameterFilter

public class TemplateParameterFilter
extends ParameterFilter


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.javatest.ObservableTestFilter
ObservableTestFilter.Observer
 
Nested classes/interfaces inherited from class com.sun.javatest.TestFilter
TestFilter.Fault
 
Field Summary
 
Fields inherited from class com.sun.javatest.ObservableTestFilter
observers
 
Constructor Summary
TemplateParameterFilter()
           
 
Method Summary
 boolean accepts(TestDescription td)
          Determines whether a TestDescription should be accepted or rejected by this filter.
 boolean accepts(TestDescription td, TestFilter.Observer o)
          Determines whether a TestDescription should be accepted or rejected by this filter; if rejected, it is reported to the provided observer.
 java.lang.String getDescription()
          Get a description of this filter, as might be used to give more details about this filter than provided by TestFilter.getName().
 java.lang.String getName()
          Get the name of this filter, as might be used to choose of of a set of filters.
 java.lang.String getReason()
          Get the reason why this filter would reject a test, as might be used in reports.
 void update(InterviewParameters ip)
           
 
Methods inherited from class com.sun.javatest.ParameterFilter
getTestFilters, isTestsFiltered, setFilterTests, update
 
Methods inherited from class com.sun.javatest.ObservableTestFilter
addObserver, notifyUpdated, removeObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateParameterFilter

public TemplateParameterFilter()
Method Detail

update

public void update(InterviewParameters ip)

accepts

public boolean accepts(TestDescription td)
                throws TestFilter.Fault
Description copied from class: TestFilter
Determines whether a TestDescription should be accepted or rejected by this filter.

Overrides:
accepts in class ParameterFilter
Parameters:
td - the TestDescription to check
Returns:
true if td should be included in collection; false otherwise.
Throws:
TestFilter.Fault - if an error occurs while trying to determine if this test should be accepted or not.

accepts

public boolean accepts(TestDescription td,
                       TestFilter.Observer o)
                throws TestFilter.Fault
Description copied from class: TestFilter
Determines whether a TestDescription should be accepted or rejected by this filter; if rejected, it is reported to the provided observer.

Overrides:
accepts in class ParameterFilter
Parameters:
td - The TestDescription to check.
o - An observer, which will be notified if the test is rejected by this filter.
Returns:
true if td should be included in collection; false otherwise.
Throws:
TestFilter.Fault - if an error occurs while trying to determine if this test should be accepted or not.

getName

public java.lang.String getName()
Description copied from class: TestFilter
Get the name of this filter, as might be used to choose of of a set of filters. This string should be localized.

Overrides:
getName in class ParameterFilter
Returns:
the name of this filter

getDescription

public java.lang.String getDescription()
Description copied from class: TestFilter
Get a description of this filter, as might be used to give more details about this filter than provided by TestFilter.getName(). This string should be localized.

Overrides:
getDescription in class ParameterFilter
Returns:
a description of this filter

getReason

public java.lang.String getReason()
Description copied from class: TestFilter
Get the reason why this filter would reject a test, as might be used in reports. This string should be localized.

Overrides:
getReason in class ParameterFilter
Returns:
a rejection reason for this filter


Copyright 1996-2009 Sun Microsystems, Inc. All Rights Reserved.