net.sourceforge.wurfl.core.operation.strategy
Class Strategy

java.lang.Object
  extended by net.sourceforge.wurfl.lang.twoparam.TwoParamOp<V,Curry,R>
      extended by net.sourceforge.wurfl.lang.oneparam.OneParamOp<R,R>
          extended by net.sourceforge.wurfl.lang.oneparam.ChainableOp<String>
              extended by net.sourceforge.wurfl.lang.oneparam.string.StringOp
                  extended by net.sourceforge.wurfl.core.operation.strategy.Strategy
All Implemented Interfaces:
Descriptable

public abstract class Strategy
extends StringOp

Factory for strategy operation. Date: 24/06/11

Since:
1.3.5
Version:
$Id$

Nested Class Summary
static class Strategy.Type
           
 
Field Summary
protected  Set<String> set
           
protected  IntOp toleranceOp
           
 
Fields inherited from class net.sourceforge.wurfl.lang.twoparam.TwoParamOp
logger
 
Method Summary
 String execute(String userA)
           
static Strategy get(Strategy.Type type, Set<String> candidates, int tolerance)
           
static Strategy get(Strategy.Type type, Set<String> candidates, IntOp tolerance)
           
 String getDescription()
           
protected abstract  StringMatcher getStringMatcher()
           
 Strategy.Type getType()
           
 
Methods inherited from class net.sourceforge.wurfl.lang.oneparam.string.StringOp
toString
 
Methods inherited from class net.sourceforge.wurfl.lang.oneparam.ChainableOp
then
 
Methods inherited from class net.sourceforge.wurfl.lang.oneparam.OneParamOp
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

toleranceOp

protected final IntOp toleranceOp

set

protected final Set<String> set
Method Detail

get

public static Strategy get(Strategy.Type type,
                           Set<String> candidates,
                           int tolerance)

get

public static Strategy get(Strategy.Type type,
                           Set<String> candidates,
                           IntOp tolerance)

getType

public Strategy.Type getType()

getDescription

public String getDescription()

execute

public final String execute(String userA)
Specified by:
execute in class OneParamOp<String,String>

getStringMatcher

protected abstract StringMatcher getStringMatcher()


Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.