no.sesat.search.query.token
Class TokenPredicateImpl

java.lang.Object
  extended by no.sesat.search.query.token.AbstractTokenPredicate
      extended by no.sesat.search.query.token.TokenPredicateImpl
All Implemented Interfaces:
Serializable, TokenPredicate, org.apache.commons.collections.Predicate

public class TokenPredicateImpl
extends AbstractTokenPredicate

The default implementation used. Should not be used directly. The Categories enumerations delegated to this class. The anonymous TokenPredicates are instances of this class. Must be unique by the name field.

Version:
$Id: TokenPredicateImpl.java 7225 2009-04-09 00:32:20Z ssmiweve $
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface no.sesat.search.query.token.TokenPredicate
EXACT_PREFIX
 
Method Summary
 TokenPredicate exactPeer()
          A token predicate that requires an exact match against the whole query.
 String name()
          The name of the TokenPredicate.
 
Methods inherited from class no.sesat.search.query.token.AbstractTokenPredicate
equals, evaluate, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

name

public String name()
Description copied from interface: TokenPredicate
The name of the TokenPredicate. Must be uppercase. Must be unique across all skins.

Returns:
TokenPredicate name.

exactPeer

public TokenPredicate exactPeer()
Description copied from interface: TokenPredicate
A token predicate that requires an exact match against the whole query. A exact peer instance must return itself.

Returns:


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