org.nuiton.wikitty.query.conditions
Class Keyword

java.lang.Object
  extended by org.nuiton.wikitty.query.conditions.AbstractCondition
      extended by org.nuiton.wikitty.query.conditions.TerminalOperator
          extended by org.nuiton.wikitty.query.conditions.TerminalBinaryOperator
              extended by org.nuiton.wikitty.query.conditions.Keyword
All Implemented Interfaces:
Serializable, Condition

public class Keyword
extends TerminalBinaryOperator

Search keyword in all wikitty. All field is converted to String representation and comparaison is done in ignore case mode, if one field contains value the wikitty must be returned. ex:

  • field value is 'bonjour le monde'
  • keyword is 'le' or 'bon' or 'nde' wikitty with this field must be returned

    Since:
    3.3 Last update: $Date$ by : $Author$
    Version:
    $Revision$
    Author:
    poussin
    See Also:
    Serialized Form

    Field Summary
     
    Fields inherited from class org.nuiton.wikitty.query.conditions.TerminalBinaryOperator
    element, value
     
    Constructor Summary
    Keyword()
               
    Keyword(ConditionValueString value)
               
    Keyword(String value)
               
     
    Method Summary
     Condition addCondition(Condition c)
              For non terminal condition this method add subCondition.
     
    Methods inherited from class org.nuiton.wikitty.query.conditions.TerminalBinaryOperator
    accept, getElement, getValue, waitCondition
     
    Methods inherited from class org.nuiton.wikitty.query.conditions.AbstractCondition
    copy, equals, hashCode, toString
     
    Methods inherited from class java.lang.Object
    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
     

    Constructor Detail

    Keyword

    public Keyword()

    Keyword

    public Keyword(String value)

    Keyword

    public Keyword(ConditionValueString value)
    Method Detail

    addCondition

    public Condition addCondition(Condition c)
    Description copied from class: AbstractCondition
    For non terminal condition this method add subCondition. For terminal this method must return an exception When you overriden this method, you must call #checkAddCondition in first

    Specified by:
    addCondition in interface Condition
    Overrides:
    addCondition in class TerminalBinaryOperator
    Returns:
    this


    Copyright © 2009-2012 CodeLutin. All Rights Reserved.