net.sourceforge.wurfl.lang.oneparam.bool
Class ContainsCondition

java.lang.Object
  extended by net.sourceforge.wurfl.lang.twoparam.TwoParamOp<V,Curry,R>
      extended by net.sourceforge.wurfl.lang.oneparam.OneParamOp<V,Boolean>
          extended by net.sourceforge.wurfl.lang.oneparam.bool.Condition<String>
              extended by net.sourceforge.wurfl.lang.oneparam.bool.ContainsCondition
All Implemented Interfaces:
Descriptable

public class ContainsCondition
extends Condition<String>

Contains condition. Support for nested runtime operation.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.wurfl.lang.oneparam.bool.Condition
Condition.Type
 
Field Summary
 
Fields inherited from class net.sourceforge.wurfl.lang.twoparam.TwoParamOp
logger
 
Constructor Summary
ContainsCondition()
          Only intended for Spring managed bean
ContainsCondition(String target)
           
ContainsCondition(StringOp targetOp)
           
 
Method Summary
 Boolean eval(String str)
          Only for semantic reason, 'eval' a variable is better than 'execute'
 String getDescription()
           
 void setTarget(String target)
           
 void setTargetOp(StringOp targetOp)
           
 
Methods inherited from class net.sourceforge.wurfl.lang.oneparam.bool.Condition
and, execute, or, toString
 
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
 

Constructor Detail

ContainsCondition

public ContainsCondition()
Only intended for Spring managed bean


ContainsCondition

public ContainsCondition(String target)

ContainsCondition

public ContainsCondition(StringOp targetOp)
Method Detail

setTarget

public void setTarget(String target)

setTargetOp

public void setTargetOp(StringOp targetOp)

eval

public final Boolean eval(String str)
Description copied from class: Condition
Only for semantic reason, 'eval' a variable is better than 'execute'

Specified by:
eval in class Condition<String>
Returns:

getDescription

public String getDescription()


Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.