net.sourceforge.wurfl.lang.oneparam.string
Class IfStringOp
java.lang.Object
net.sourceforge.wurfl.lang.twoparam.TwoParamOp<V,Curry,R>
net.sourceforge.wurfl.lang.oneparam.OneParamOp<R,R>
net.sourceforge.wurfl.lang.oneparam.ChainableOp<String>
net.sourceforge.wurfl.lang.oneparam.string.StringOp
net.sourceforge.wurfl.lang.oneparam.string.IfStringOp
- All Implemented Interfaces:
- Descriptable
public class IfStringOp
- extends StringOp
Date: 24/06/11
- Since:
- 1.3.5
- Version:
- $Id$
| Fields inherited from class net.sourceforge.wurfl.lang.twoparam.TwoParamOp |
logger |
| Methods inherited from class net.sourceforge.wurfl.lang.oneparam.string.StringOp |
toString |
| Methods inherited from class net.sourceforge.wurfl.lang.oneparam.ChainableOp |
then |
condition
protected Condition<String> condition
body
protected StringOp body
elseB
protected StringOp elseB
IfStringOp
public IfStringOp()
- Only intended for Spring managed bean.
IfStringOp
public IfStringOp(Condition<String> con,
StringOp body,
StringOp elseBody)
setCondition
public void setCondition(Condition<String> con)
setBodyOp
public void setBodyOp(StringOp body)
setBody
public void setBody(String body)
setElseBodyOp
public void setElseBodyOp(StringOp elseBody)
setElseBody
public void setElseBody(String elseBody)
getDescription
public String getDescription()
execute
public String 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,String>
Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.