org.apache.taglibs.rdc.scxml.model
Class If

java.lang.Object
  extended by org.apache.taglibs.rdc.scxml.model.Action
      extended by org.apache.taglibs.rdc.scxml.model.If

public class If
extends Action

The class in this SCXML object model that corresponds to the <if> SCXML element, which serves as a container for conditionally executed elements. <else> and <elseif> can optionally appear within an <if> as immediate children, and serve to partition the elements within an <if>.

Author:
Rahul Akolkar, Jaroslav Gergic

Constructor Summary
If()
          Constructor
 
Method Summary
 void addAction(Action action)
          Add an Action to the list of executable actions contained in this <if>
 java.util.List getActions()
          Get the executable actions contained in this <if>
 java.lang.String getCond()
          Get the conditional expression
 void setCond(java.lang.String cond)
          Set the conditional expression
 
Methods inherited from class org.apache.taglibs.rdc.scxml.model.Action
getParent, getParentState, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

If

public If()
Constructor

Method Detail

getActions

public java.util.List getActions()
Get the executable actions contained in this <if>

Returns:
Returns the actions.

addAction

public void addAction(Action action)
Add an Action to the list of executable actions contained in this <if>

Parameters:
action - The action to add.

getCond

public java.lang.String getCond()
Get the conditional expression

Returns:
Returns the cond.

setCond

public void setCond(java.lang.String cond)
Set the conditional expression

Parameters:
cond - The cond to set.


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.