org.ofbiz.minilang.method.conditional
Class EmptyCondition

java.lang.Object
  extended by org.ofbiz.minilang.MiniLangElement
      extended by org.ofbiz.minilang.method.MethodOperation
          extended by 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

Nested Class Summary
static class EmptyCondition.EmptyConditionFactory
          A <if-empty> element factory.
 
Nested classes/interfaces inherited from class org.ofbiz.minilang.method.MethodOperation
MethodOperation.DeprecatedOperation, MethodOperation.Factory<M extends MethodOperation>
 
Field Summary
static java.lang.String module
           
 
Fields inherited from class org.ofbiz.minilang.MiniLangElement
simpleMethod
 
Constructor Summary
EmptyCondition(org.w3c.dom.Element element, SimpleMethod simpleMethod)
           
 
Method Summary
 boolean checkCondition(MethodContext methodContext)
           
 boolean exec(MethodContext methodContext)
          Executes the operation.
 void gatherArtifactInfo(ArtifactInfoContext aic)
          Updates aic with this element's artifact information.
 void prettyPrint(java.lang.StringBuilder messageBuffer, MethodContext methodContext)
           
 java.lang.String toString()
           
 
Methods inherited from class org.ofbiz.minilang.method.MethodOperation
expandedString, rawString
 
Methods inherited from class org.ofbiz.minilang.MiniLangElement
getLineNumber, getSimpleMethod, getTagName, outputTraceMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module
Constructor Detail

EmptyCondition

public EmptyCondition(org.w3c.dom.Element element,
                      SimpleMethod simpleMethod)
               throws MiniLangException
Throws:
MiniLangException
Method Detail

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