net.sourceforge.wurfl.lang.oneparam.bool
Class Condition<V>

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<V>
All Implemented Interfaces:
Descriptable
Direct Known Subclasses:
AndCondition, ContainsCondition, EqualsCondition, FalseCondition, IsBotCondition, IsMobileBrowserCondition, MultipleCondition, NotCondition, OrCondition, StartsWithCondition, TrueCondition

public abstract class Condition<V>
extends OneParamOp<V,Boolean>
implements Descriptable

ConditionalOperation semantics.


Nested Class Summary
static class Condition.Type
           
 
Field Summary
 
Fields inherited from class net.sourceforge.wurfl.lang.twoparam.TwoParamOp
logger
 
Constructor Summary
Condition()
           
 
Method Summary
 Condition<V> and(Condition<V> condition)
           
abstract  Boolean eval(V variable)
          Only for semantic reason, 'eval' a variable is better than 'execute'
 Boolean execute(V variable)
          Call in turn 'eval'
 Condition<V> or(Condition<V> condition)
           
 String 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
 
Methods inherited from interface net.sourceforge.wurfl.lang.Descriptable
getDescription
 

Constructor Detail

Condition

public Condition()
Method Detail

or

public final Condition<V> or(Condition<V> condition)

and

public final Condition<V> and(Condition<V> condition)

toString

public String toString()
Overrides:
toString in class Object

execute

public final Boolean execute(V variable)
Call in turn 'eval'

Specified by:
execute in class OneParamOp<V,Boolean>
Parameters:
variable -
Returns:

eval

public abstract Boolean eval(V variable)
Only for semantic reason, 'eval' a variable is better than 'execute'

Parameters:
variable -
Returns:


Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.