|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.yan.xml.nut.Nut
jfun.yan.xml.nut.ComponentNut
jfun.yan.xml.nuts.optional.ConditionalNut
jfun.yan.xml.nuts.optional.IfElseNut
public class IfElseNut
Nut class for conditional statement. For example:
<nut name="if" class="IfElseNut"/> <components> <if cond="true" then="$a" else="$b"> </components>Evaluates to the component referenced by "b".
The "else" attribute is optional.
| Constructor Summary | |
|---|---|
IfElseNut()
|
|
| Method Summary | |
|---|---|
Component |
eval()
|
| Methods inherited from class jfun.yan.xml.nuts.optional.ConditionalNut |
|---|
getElse, getThen, isCond, set, setCond, setElse, setThen |
| Methods inherited from class jfun.yan.xml.nut.Nut |
|---|
cast, checkDuplicate, checkMandatory, checkMandatory, convert, getComponentClassLoader, getId, getNutClassLoader, getNutEnvironment, getParameterWiring, getPropertyWiring, getSequenceNumber, getTagLocation, getTagName, initGloballyDefined, initNutEnvironment, initSequenceNumber, initTagLocation, initTagName, isGloballyDefined, raise, raise, register, registerEagerInstantiation, setId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IfElseNut()
| Method Detail |
|---|
public Component eval()
eval in class ComponentNut
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||