| java.lang.Object org.ofbiz.minilang.method.ContextAccessor
ContextAccessor | public class ContextAccessor (Code) | | Used to flexibly access Map values, supporting the "." (dot) syntax for
accessing sub-map values and the "[]" (square bracket) syntax for accessing
list elements. See individual Map operations for more information.
author: David E. Jones version: $Revision: 1.1 $ since: 2.1 |
empty | protected boolean empty(Code) | | |
needsExpand | protected boolean needsExpand(Code) | | |
equals | public boolean equals(Object obj)(Code) | | The equals and hashCode methods are imnplemented just case this object is ever accidently used as a Map key
|
hashCode | public int hashCode()(Code) | | The equals and hashCode methods are imnplemented just case this object is ever accidently used as a Map key
|
isEmpty | public boolean isEmpty()(Code) | | |
put | public void put(MethodContext methodContext, Object value)(Code) | | Based on name put in Map or from List in Map;
If the brackets for a list are empty the value will be appended to the list,
otherwise the value will be set in the position of the number in the brackets.
If a "+" (plus sign) is included inside the square brackets before the index
number the value will inserted/added at that point instead of set at the point.
|
put | public void put(Map theMap, Object value, MethodContext methodContext)(Code) | | Based on name put in Map or from List in Map;
If the brackets for a list are empty the value will be appended to the list,
otherwise the value will be set in the position of the number in the brackets.
If a "+" (plus sign) is included inside the square brackets before the index
number the value will inserted/added at that point instead of set at the point.
|
toString | public String toString()(Code) | | To be used for a string representation of the accessor, returns the original name.
|
|
|