org.ofbiz.minilang.method.conditional
Class Assert
java.lang.Object
org.ofbiz.minilang.method.MethodOperation
org.ofbiz.minilang.method.conditional.Assert
public class Assert
- extends MethodOperation
Operation used to check each sub-condition independently and for each one that fails (does not evaluate to true), adds an error to the error message list.
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.lang.String |
rawString()
Create a raw string representation of the operation, would be similar to original XML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
module
public static final java.lang.String module
errorListAcsr
protected ContextAccessor<java.util.List<java.lang.Object>> errorListAcsr
titleExdr
protected FlexibleStringExpander titleExdr
conditionalList
protected java.util.List<Conditional> conditionalList
- List of Conditional objects
Assert
public Assert(org.w3c.dom.Element element,
SimpleMethod simpleMethod)
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
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