|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.engine.model.AbstractModel
org.springframework.webflow.engine.model.IfModel
public class IfModel
Model support for if elements.
Defines a boolean expression to evaluate a target state to transition to if that expression evaluates to true. Optionally, this element may define an 'else' attribute to define a state to transition to if the expression evaluates to false.
Constructor Summary | |
---|---|
IfModel(String test,
String then)
Create an if model |
Method Summary | |
---|---|
Model |
createCopy()
Create a deep copy of this model. |
String |
getElse()
|
String |
getTest()
|
String |
getThen()
|
boolean |
isMergeableWith(Model model)
Determine if the model is able to be merged into the current model |
void |
merge(Model model)
Merge the model into the current model |
void |
setElse(String elze)
|
void |
setTest(String test)
|
void |
setThen(String then)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IfModel(String test, String then)
test
- the boolean condition to testthen
- the state to transition to if the boolean expression evaluates to trueMethod Detail |
---|
public boolean isMergeableWith(Model model)
Model
model
- the model to compare
public void merge(Model model)
Model
model
- the model to merge withpublic Model createCopy()
Model
public String getTest()
public void setTest(String test)
test
- the test to setpublic String getThen()
public void setThen(String then)
then
- the then to setpublic String getElse()
public void setElse(String elze)
elze
- the else to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |