org.ofbiz.minilang.method.ifops
Class IfCompare

java.lang.Object
  extended by org.ofbiz.minilang.method.MethodOperation
      extended by org.ofbiz.minilang.method.ifops.IfCompare

public class IfCompare
extends MethodOperation

Iff the comparison between the constant and the specified field is true process sub-operations


Nested Class Summary
static class IfCompare.IfCompareFactory
           
 
Nested classes/interfaces inherited from class org.ofbiz.minilang.method.MethodOperation
MethodOperation.DeprecatedOperation, MethodOperation.Factory<M extends MethodOperation>
 
Field Summary
protected  java.util.List<MethodOperation> elseSubOps
           
protected  ContextAccessor<java.lang.Object> fieldAcsr
           
protected  java.lang.String format
           
protected  ContextAccessor<java.util.Map<java.lang.String,? extends java.lang.Object>> mapAcsr
           
static java.lang.String module
           
protected  java.lang.String operator
           
protected  java.util.List<MethodOperation> subOps
           
protected  java.lang.String type
           
protected  java.lang.String value
           
 
Fields inherited from class org.ofbiz.minilang.method.MethodOperation
simpleMethod
 
Constructor Summary
IfCompare(org.w3c.dom.Element element, SimpleMethod simpleMethod)
           
 
Method Summary
 boolean exec(MethodContext methodContext)
          Execute the operation; if false is returned then no further operations will be executed
 java.lang.String expandedString(MethodContext methodContext)
          Create an expanded string representation of the operation, is for the current context
 java.util.List<MethodOperation> getAllSubOps()
           
 java.lang.String rawString()
          Create a raw string representation of the operation, would be similar to original XML
 
Methods inherited from class org.ofbiz.minilang.method.MethodOperation
getSimpleMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

subOps

protected java.util.List<MethodOperation> subOps

elseSubOps

protected java.util.List<MethodOperation> elseSubOps

mapAcsr

protected ContextAccessor<java.util.Map<java.lang.String,? extends java.lang.Object>> mapAcsr

fieldAcsr

protected ContextAccessor<java.lang.Object> fieldAcsr

value

protected java.lang.String value

operator

protected java.lang.String operator

type

protected java.lang.String type

format

protected java.lang.String format
Constructor Detail

IfCompare

public IfCompare(org.w3c.dom.Element element,
                 SimpleMethod simpleMethod)
Method Detail

exec

public boolean exec(MethodContext methodContext)
Description copied from class: MethodOperation
Execute the operation; if false is returned then no further operations will be executed

Specified by:
exec in class MethodOperation

getAllSubOps

public java.util.List<MethodOperation> getAllSubOps()

rawString

public java.lang.String rawString()
Description copied from class: MethodOperation
Create a raw string representation of the operation, would be similar to original XML

Specified by:
rawString in class MethodOperation

expandedString

public java.lang.String expandedString(MethodContext methodContext)
Description copied from class: MethodOperation
Create an expanded string representation of the operation, is for the current context

Specified by:
expandedString in class MethodOperation