net.sourceforge.wurfl.lang.oneparam.integer
Class IfIntOp

java.lang.Object
  extended by net.sourceforge.wurfl.lang.twoparam.TwoParamOp<V,Curry,R>
      extended by net.sourceforge.wurfl.lang.oneparam.OneParamOp<String,Integer>
          extended by net.sourceforge.wurfl.lang.oneparam.integer.IntOp
              extended by net.sourceforge.wurfl.lang.oneparam.integer.IfIntOp
All Implemented Interfaces:
Descriptable

public class IfIntOp
extends IntOp

Date: 24/06/11

Since:
1.3.5
Version:
$Id$

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.wurfl.lang.oneparam.OneParamOp
OneParamOp.Type
 
Field Summary
protected  IntOp body
           
protected  Condition<String> condition
           
protected  IntOp elseBody
           
 
Fields inherited from class net.sourceforge.wurfl.lang.oneparam.integer.IntOp
logger
 
Constructor Summary
IfIntOp()
          Only intended for Spring managed bean
IfIntOp(Condition<String> condition, IntOp body, IntOp elseBody)
           
 
Method Summary
 Integer execute(String str)
          Execute this object's body if this object's condition evaluates; otherwise execute the 'else' body.
 String getDescription()
           
 void setBody(int body)
           
 void setBodyOp(IntOp body)
           
 void setCondition(Condition<String> condition)
           
 void setElseBody(int elseBody)
           
 void setElseBodyOp(IntOp elseBody)
           
 
Methods inherited from class net.sourceforge.wurfl.lang.oneparam.integer.IntOp
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
 

Field Detail

condition

protected Condition<String> condition

body

protected IntOp body

elseBody

protected IntOp elseBody
Constructor Detail

IfIntOp

public IfIntOp()
Only intended for Spring managed bean


IfIntOp

public IfIntOp(Condition<String> condition,
               IntOp body,
               IntOp elseBody)
Method Detail

setCondition

public void setCondition(Condition<String> condition)

setBodyOp

public void setBodyOp(IntOp body)

setBody

public void setBody(int body)

setElseBodyOp

public void setElseBodyOp(IntOp elseBody)

setElseBody

public void setElseBody(int elseBody)

getDescription

public String getDescription()

execute

public Integer execute(String str)
Execute this object's body if this object's condition evaluates; otherwise execute the 'else' body.

Specified by:
execute in class OneParamOp<String,Integer>


Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.