ter.API.EngineSearch
Class NameRegexpCriterion

java.lang.Object
  |
  +--ter.API.EngineSearch.Criterion
        |
        +--ter.API.EngineSearch.NameRegexpCriterion

public class NameRegexpCriterion
extends Criterion

Title: NameRegexpCriterion

Description: this class filter the member with his name with some regexp

Copyright: Copyright (c) 2003

Company: UNICE

Version:
1.0
Author:
Zerbib Gabriel - Charbit Lucas - Galbois Xavier - Gahide Jérôme

Constructor Summary
NameRegexpCriterion()
          Construct a new instance of this criterion.
 
Method Summary
 void help_actionPerformed(java.awt.event.ActionEvent e)
           
 java.util.ArrayList isAdditionnalGraphicsComponent()
          Here we add a Jcombobox to take the string to compare with.
 boolean isCriterionValid(java.lang.reflect.Member m)
          To implemented for each Criterion
 void setNameToCompare(java.lang.String name)
          Set the name that we want the criterion compare with.
 
Methods inherited from class ter.API.EngineSearch.Criterion
addNonCompatibilityCriterion, getLogicalLink, getName, getNonCompatibilityCriterion, isCriterionUseable, setLogicalLink, setUseCriterion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameRegexpCriterion

public NameRegexpCriterion()
Construct a new instance of this criterion. This overwrite the name of the criterion This also add additionnal component to take graphicaly the name search.

Method Detail

setNameToCompare

public void setNameToCompare(java.lang.String name)
Set the name that we want the criterion compare with.

Parameters:
name - the name to compare with the

isAdditionnalGraphicsComponent

public java.util.ArrayList isAdditionnalGraphicsComponent()
Here we add a Jcombobox to take the string to compare with.

Overrides:
isAdditionnalGraphicsComponent in class Criterion
Returns:
Empty if there no additionnal graphics component for a criterion
Since:
2.0

isCriterionValid

public boolean isCriterionValid(java.lang.reflect.Member m)
                         throws SearchEngineException
Description copied from class: Criterion
To implemented for each Criterion

Specified by:
isCriterionValid in class Criterion
Parameters:
m - the member that we want to check the validity.
Returns:
if the Criterion is Valid for this Member
Throws:
SearchEngineException

help_actionPerformed

public void help_actionPerformed(java.awt.event.ActionEvent e)