public class If extends AbstractAction
Constructor and Description |
---|
If() |
Modifier and Type | Method and Description |
---|---|
boolean |
getTest()
Returns the test result.
|
boolean |
isTrim()
Returns whether to trim the result.
|
void |
render(ActionContext ac,
boolean nested)
Processes the action and renders the output to
ActionContext.getOut() . |
void |
setTest(boolean cond)
Sets the test result.
|
void |
setTrim(boolean trim)
Sets whether to trim the result.
|
java.lang.String |
toString() |
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScope
public boolean getTest()
public void setTest(boolean cond)
public boolean isTrim()
Default: true.
public void setTrim(boolean trim)
public void render(ActionContext ac, boolean nested) throws DspException, java.io.IOException
Action
ActionContext.getOut()
.nested
- whether there is any nested content.DspException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.