Class RegexpCondition
- java.lang.Object
-
- org.apache.ofbiz.minilang.MiniLangElement
-
- org.apache.ofbiz.minilang.method.MethodOperation
-
- org.apache.ofbiz.minilang.method.conditional.RegexpCondition
-
- All Implemented Interfaces:
Conditional
public class RegexpCondition extends MethodOperation implements Conditional
Implements the <if-regexp> element.- See Also:
- Mini-language Reference
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RegexpCondition.RegexpConditionFactory
A <if-regexp> element factory.-
Nested classes/interfaces inherited from class org.apache.ofbiz.minilang.method.MethodOperation
MethodOperation.DeprecatedOperation, MethodOperation.Factory<M extends MethodOperation>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Fields inherited from class org.apache.ofbiz.minilang.MiniLangElement
simpleMethod
-
-
Constructor Summary
Constructors Constructor Description RegexpCondition(org.w3c.dom.Element element, SimpleMethod simpleMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkCondition(MethodContext methodContext)
boolean
exec(MethodContext methodContext)
Executes the operation.void
gatherArtifactInfo(ArtifactInfoContext aic)
Updatesaic
with this element's artifact information.void
prettyPrint(java.lang.StringBuilder messageBuffer, MethodContext methodContext)
java.lang.String
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 Detail
-
RegexpCondition
public RegexpCondition(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 interfaceConditional
- Throws:
MiniLangException
-
exec
public boolean exec(MethodContext methodContext) throws MiniLangException
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
public void gatherArtifactInfo(ArtifactInfoContext aic)
Description copied from class:MiniLangElement
Updatesaic
with this element's artifact information.- Overrides:
gatherArtifactInfo
in classMiniLangElement
- Parameters:
aic
- The artifact information context
-
prettyPrint
public void prettyPrint(java.lang.StringBuilder messageBuffer, MethodContext methodContext)
- Specified by:
prettyPrint
in interfaceConditional
-
toString
public java.lang.String toString()
- Overrides:
toString
in classMiniLangElement
-
-