ter.API.EngineSearch
Class NameCriterion

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

public class NameCriterion
extends Criterion

Title: NameCriterion

Description: This criterion test the name of the member.

Copyright: Copyright (c) 2003

Company: UNICE

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

Constructor Summary
NameCriterion()
          Construct a new instance of this criterion.
 
Method Summary
 java.util.ArrayList isAdditionnalGraphicsComponent()
          Here we add a Jcombobox to take the string to compare with.
 boolean isCriterionValid(java.lang.reflect.Member m)
          test if the member matches to this 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

NameCriterion

public NameCriterion()
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 -

isCriterionValid

public boolean isCriterionValid(java.lang.reflect.Member m)
                         throws SearchEngineException
test if the member matches to this criterion.

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

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