Class ValidateMethodCondition
java.lang.Object
org.apache.ofbiz.minilang.MiniLangElement
org.apache.ofbiz.minilang.method.MethodOperation
org.apache.ofbiz.minilang.method.conditional.ValidateMethodCondition
- All Implemented Interfaces:
Conditional
Implements the <if-validate-method> element.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A <if-validate-method> element factory.Nested classes/interfaces inherited from class org.apache.ofbiz.minilang.method.MethodOperation
MethodOperation.DeprecatedOperation, MethodOperation.Factory<M extends MethodOperation>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkCondition
(MethodContext methodContext) boolean
exec
(MethodContext methodContext) Executes the operation.void
Updatesaic
with this element's artifact information.void
prettyPrint
(StringBuilder messageBuffer, MethodContext methodContext) toString()
Methods inherited from class org.apache.ofbiz.minilang.method.MethodOperation
expandedString, rawString
Methods inherited from class org.apache.ofbiz.minilang.MiniLangElement
getLineNumber, getSimpleMethod, getTagName, outputTraceMessage
-
Constructor Details
-
ValidateMethodCondition
- Throws:
MiniLangException
-
-
Method Details
-
checkCondition
- Specified by:
checkCondition
in interfaceConditional
- Throws:
MiniLangException
-
exec
Description copied from class:MethodOperation
Executes the operation. Returnstrue
if script execution should continue, orfalse
if script execution should stop.- Specified by:
exec
in classMethodOperation
- Throws:
MiniLangException
-
gatherArtifactInfo
Description copied from class:MiniLangElement
Updatesaic
with this element's artifact information.- Overrides:
gatherArtifactInfo
in classMiniLangElement
- Parameters:
aic
- The artifact information context
-
prettyPrint
- Specified by:
prettyPrint
in interfaceConditional
-
toString
- Overrides:
toString
in classMiniLangElement
-