org.ofbiz.minilang.method
Class MethodOperation

java.lang.Object
  extended by org.ofbiz.minilang.method.MethodOperation
Direct Known Subclasses:
AddError, Assert, Calculate, CallBsh, CallClassMethod, CallObjectMethod, CallService, CallServiceAsynch, CallSimpleMapProcessor, CallSimpleMethod, CheckErrors, CheckId, CheckPermission, ClearCacheLine, ClearEntityCaches, ClearField, CloneValue, CreateObject, CreateValue, EntityAnd, EntityCondition, EntityCount, EntityData, EntityOne, EnvToEnv, EnvToField, FieldToEnv, FieldToField, FieldToList, FieldToRequest, FieldToResult, FieldToSession, FilterListByAnd, FilterListByDate, FindByAnd, FindByPrimaryKey, FirstFromList, GetRelated, GetRelatedOne, IfCompare, IfCompareField, IfEmpty, IfHasPermission, IfInstanceOf, IfNotEmpty, IfRegexp, IfValidateMethod, Iterate, IterateMap, ListToList, Log, Loop, MakeNextSeqId, MakeValue, MapToMap, MasterIf, NowDateToEnv, NowTimestampToEnv, OrderMapList, OrderValueList, PropertyToField, RefreshValue, RemoveByAnd, RemoveList, RemoveRelated, RemoveValue, RequestParametersToList, RequestToField, Return, SequencedIdToEnv, SessionToField, SetCalendar, SetCurrentUserLogin, SetNonpkFields, SetOperation, SetPkFields, SetServiceFields, StoreList, StoreValue, StringAppend, StringToField, StringToList, ToString, TransactionBegin, TransactionCommit, TransactionRollback, WebappPropertyToField, While

public abstract class MethodOperation
extends java.lang.Object

A single operation, does the specified operation on the given field


Nested Class Summary
static interface MethodOperation.DeprecatedOperation
           
static interface MethodOperation.Factory<M extends MethodOperation>
           
 
Field Summary
protected  SimpleMethod simpleMethod
           
 
Constructor Summary
MethodOperation(org.w3c.dom.Element element, SimpleMethod simpleMethod)
           
 
Method Summary
abstract  boolean exec(MethodContext methodContext)
          Execute the operation; if false is returned then no further operations will be executed
abstract  java.lang.String expandedString(MethodContext methodContext)
          Create an expanded string representation of the operation, is for the current context
 SimpleMethod getSimpleMethod()
           
abstract  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
 

Field Detail

simpleMethod

protected SimpleMethod simpleMethod
Constructor Detail

MethodOperation

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

getSimpleMethod

public SimpleMethod getSimpleMethod()

exec

public abstract boolean exec(MethodContext methodContext)
Execute the operation; if false is returned then no further operations will be executed


rawString

public abstract java.lang.String rawString()
Create a raw string representation of the operation, would be similar to original XML


expandedString

public abstract java.lang.String expandedString(MethodContext methodContext)
Create an expanded string representation of the operation, is for the current context