net.sourceforge.wurfl.lang.oneparam.string
Class IfStringOp

java.lang.Object
  extended by net.sourceforge.wurfl.lang.twoparam.TwoParamOp<V,Curry,R>
      extended by net.sourceforge.wurfl.lang.oneparam.OneParamOp<R,R>
          extended by net.sourceforge.wurfl.lang.oneparam.ChainableOp<String>
              extended by net.sourceforge.wurfl.lang.oneparam.string.StringOp
                  extended by 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$

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

elseB

protected StringOp elseB
Constructor Detail

IfStringOp

public IfStringOp()
Only intended for Spring managed bean.


IfStringOp

public IfStringOp(Condition<String> con,
                  StringOp body,
                  StringOp elseBody)
Method Detail

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.