Class IfInstanceOf
- java.lang.Object
-
- org.apache.ofbiz.minilang.MiniLangElement
-
- org.apache.ofbiz.minilang.method.MethodOperation
-
- org.apache.ofbiz.minilang.method.ifops.IfInstanceOf
-
public final class IfInstanceOf extends MethodOperation
Implements the <if-instance-of> element.- See Also:
- Mini-language Referenc
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IfInstanceOf.IfInstanceOfFactory
A <if-instance-of> element factory.-
Nested classes/interfaces inherited from class org.apache.ofbiz.minilang.method.MethodOperation
MethodOperation.DeprecatedOperation, MethodOperation.Factory<M extends MethodOperation>
-
-
Field Summary
-
Fields inherited from class org.apache.ofbiz.minilang.MiniLangElement
simpleMethod
-
-
Constructor Summary
Constructors Constructor Description IfInstanceOf(org.w3c.dom.Element element, SimpleMethod simpleMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exec(MethodContext methodContext)
Executes the operation.void
gatherArtifactInfo(ArtifactInfoContext aic)
Updatesaic
with this element's artifact information.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
-
IfInstanceOf
public IfInstanceOf(org.w3c.dom.Element element, SimpleMethod simpleMethod) throws MiniLangException
- Throws:
MiniLangException
-
-
Method Detail
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classMiniLangElement
-
-