org.ofbiz.minilang.method.conditional
Class EmptyCondition
java.lang.Object
org.ofbiz.minilang.MiniLangElement
org.ofbiz.minilang.method.MethodOperation
org.ofbiz.minilang.method.conditional.EmptyCondition
- All Implemented Interfaces:
- Conditional
public final class EmptyCondition
- extends MethodOperation
- implements Conditional
Implements the <if-empty> element.
- See Also:
- Mini-language Reference
|
Field Summary |
static java.lang.String |
module
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
module
public static final java.lang.String module
EmptyCondition
public EmptyCondition(org.w3c.dom.Element element,
SimpleMethod simpleMethod)
throws MiniLangException
- Throws:
MiniLangException
checkCondition
public boolean checkCondition(MethodContext methodContext)
throws MiniLangException
- Specified by:
checkCondition in interface Conditional
- Throws:
MiniLangException
exec
public boolean exec(MethodContext methodContext)
throws MiniLangException
- Description copied from class:
MethodOperation
- Executes the operation.
Returns
true if script execution should continue, or
false if script execution should stop.
- Specified by:
exec in class MethodOperation
- Throws:
MiniLangException
gatherArtifactInfo
public void gatherArtifactInfo(ArtifactInfoContext aic)
- Description copied from class:
MiniLangElement
- Updates
aic with this element's artifact information.
- Overrides:
gatherArtifactInfo in class MiniLangElement
- Parameters:
aic - The artifact information context
prettyPrint
public void prettyPrint(java.lang.StringBuilder messageBuffer,
MethodContext methodContext)
- Specified by:
prettyPrint in interface Conditional
toString
public java.lang.String toString()
- Overrides:
toString in class MiniLangElement