net.sourceforge.wurfl.lang.oneparam.integer
Class IfIntOp
java.lang.Object
net.sourceforge.wurfl.lang.twoparam.TwoParamOp<V,Curry,R>
net.sourceforge.wurfl.lang.oneparam.OneParamOp<String,Integer>
net.sourceforge.wurfl.lang.oneparam.integer.IntOp
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$
| Fields inherited from class net.sourceforge.wurfl.lang.oneparam.integer.IntOp |
logger |
| Methods inherited from class net.sourceforge.wurfl.lang.oneparam.integer.IntOp |
toString |
condition
protected Condition<String> condition
body
protected IntOp body
elseBody
protected IntOp elseBody
IfIntOp
public IfIntOp()
- Only intended for Spring managed bean
IfIntOp
public IfIntOp(Condition<String> condition,
IntOp body,
IntOp elseBody)
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.