no.sesat.search.query
Interface Clause

All Superinterfaces:
Serializable, no.sesat.commons.visitor.Visitable
All Known Subinterfaces:
AndClause, AndNotClause, BinaryClause, DefaultOperatorClause, EmailClause, IntegerClause, LeafClause, NotClause, NumberGroupClause, OrClause, PhoneNumberClause, PhraseClause, UnaryClause, UrlClause, WordClause, XorClause
All Known Implementing Classes:
AbstractBinaryClause, AbstractClause, AbstractLeafClause, AbstractUnaryClause, AndClauseImpl, AndNotClauseImpl, DefaultOperatorClauseImpl, EmailClauseImpl, IntegerClauseImpl, NotClauseImpl, NumberGroupClauseImpl, OrClauseImpl, PhoneNumberClauseImpl, PhraseClauseImpl, UrlClauseImpl, WordClauseImpl, XorClauseImpl

public interface Clause
extends no.sesat.commons.visitor.Visitable

A Clause in this project represents a single term or operation on or between terms in a Query string. A heirarchy of Clause objects will therefore represent a Query and avoid unneccessary string manipulations. All Clause subclasses MUST be immutable. State describing information will be stored in the wrapping Query class.

Version:
$Id: Clause.java 7225 2009-04-09 00:32:20Z ssmiweve $

Method Summary
 Set<TokenPredicate> getKnownPredicates()
          get the set of known predicates.
 Set<TokenPredicate> getPossiblePredicates()
          the set of possible predicates.
 String getTerm()
          get the term.
 
Methods inherited from interface no.sesat.commons.visitor.Visitable
accept
 

Method Detail

getTerm

String getTerm()
get the term.

Returns:
the term.

getKnownPredicates

Set<TokenPredicate> getKnownPredicates()
get the set of known predicates.

Returns:
the set of known predicates.

getPossiblePredicates

Set<TokenPredicate> getPossiblePredicates()
the set of possible predicates.

Returns:
the set of possible predicates.


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.