Examples of FlexibleMapAccessor


Examples of org.ofbiz.base.util.collections.FlexibleMapAccessor

        protected FlexibleStringExpander methodExdr;
        protected FlexibleStringExpander classExdr;
       
        public IfValidateMethod(ModelMenuItem modelMenuItem, Element condElement) {
            super (modelMenuItem, condElement);
            this.fieldAcsr = new FlexibleMapAccessor(condElement.getAttribute("field-name"));
            this.methodExdr = new FlexibleStringExpander(condElement.getAttribute("method"));
            this.classExdr = new FlexibleStringExpander(condElement.getAttribute("class"));
        }
View Full Code Here

Examples of org.ofbiz.base.util.collections.FlexibleMapAccessor

        protected String type;
        protected FlexibleStringExpander formatExdr;
       
        public IfCompare(ModelMenuItem modelMenuItem, Element condElement) {
            super (modelMenuItem, condElement);
            this.fieldAcsr = new FlexibleMapAccessor(condElement.getAttribute("field-name"));
            this.valueExdr = new FlexibleStringExpander(condElement.getAttribute("value"));
           
            this.operator = condElement.getAttribute("operator");
            this.type = condElement.getAttribute("type");
View Full Code Here

Examples of org.ofbiz.base.util.collections.FlexibleMapAccessor

        protected String type;
        protected FlexibleStringExpander formatExdr;
       
        public IfCompareField(ModelMenuItem modelMenuItem, Element condElement) {
            super (modelMenuItem, condElement);
            this.fieldAcsr = new FlexibleMapAccessor(condElement.getAttribute("field-name"));
            this.toFieldAcsr = new FlexibleMapAccessor(condElement.getAttribute("to-field-name"));
           
            this.operator = condElement.getAttribute("operator");
            this.type = condElement.getAttribute("type");

            this.formatExdr = new FlexibleStringExpander(condElement.getAttribute("format"));
View Full Code Here

Examples of org.ofbiz.base.util.collections.FlexibleMapAccessor

        protected FlexibleMapAccessor fieldAcsr;
        protected FlexibleStringExpander exprExdr;
       
        public IfRegexp(ModelMenuItem modelMenuItem, Element condElement) {
            super (modelMenuItem, condElement);
            this.fieldAcsr = new FlexibleMapAccessor(condElement.getAttribute("field-name"));
            this.exprExdr = new FlexibleStringExpander(condElement.getAttribute("expr"));
        }
View Full Code Here

Examples of org.ofbiz.base.util.collections.FlexibleMapAccessor

    public static class IfEmpty extends MenuCondition {
        protected FlexibleMapAccessor fieldAcsr;
       
        public IfEmpty(ModelMenuItem modelMenuItem, Element condElement) {
            super (modelMenuItem, condElement);
            this.fieldAcsr = new FlexibleMapAccessor(condElement.getAttribute("field-name"));
        }
View Full Code Here

Examples of org.ofbiz.base.util.collections.FlexibleMapAccessor

    /**
     * @param string
     */
    public void setDefaultMapName(String string) {
        this.defaultMapName = new FlexibleMapAccessor(string);
    }
View Full Code Here

Examples of org.ofbiz.base.util.collections.FlexibleMapAccessor

        protected String toScope;
        protected String fromScope;
       
        public SetField(ModelMenu modelMenu, Element setElement) {
            super (modelMenu, setElement);
            this.field = new FlexibleMapAccessor(setElement.getAttribute("field"));
            this.fromField = UtilValidate.isNotEmpty(setElement.getAttribute("from-field")) ? new FlexibleMapAccessor(setElement.getAttribute("from-field")) : null;
            this.valueExdr = UtilValidate.isNotEmpty(setElement.getAttribute("value")) ? new FlexibleStringExpander(setElement.getAttribute("value")) : null;
            this.defaultExdr = UtilValidate.isNotEmpty(setElement.getAttribute("default-value")) ? new FlexibleStringExpander(setElement.getAttribute("default-value")) : null;
            this.globalExdr = new FlexibleStringExpander(setElement.getAttribute("global"));
            this.type = setElement.getAttribute("type");
            this.toScope = setElement.getAttribute("to-scope");
View Full Code Here

Examples of org.ofbiz.base.util.collections.FlexibleMapAccessor

        protected FlexibleStringExpander globalExdr;
       
        public PropertyMap(ModelMenu modelMenu, Element setElement) {
            super (modelMenu, setElement);
            this.resourceExdr = new FlexibleStringExpander(setElement.getAttribute("resource"));
            this.mapNameAcsr = new FlexibleMapAccessor(setElement.getAttribute("map-name"));
            this.globalExdr = new FlexibleStringExpander(setElement.getAttribute("global"));
        }
View Full Code Here

Examples of org.ofbiz.base.util.collections.FlexibleMapAccessor

        public PropertyToField(ModelMenu modelMenu, Element setElement) {
            super (modelMenu, setElement);
            this.resourceExdr = new FlexibleStringExpander(setElement.getAttribute("resource"));
            this.propertyExdr = new FlexibleStringExpander(setElement.getAttribute("property"));
            this.fieldAcsr = new FlexibleMapAccessor(setElement.getAttribute("field"));
            this.defaultExdr = new FlexibleStringExpander(setElement.getAttribute("default"));
            noLocale = "true".equals(setElement.getAttribute("no-locale"));
            this.argListAcsr = new FlexibleMapAccessor(setElement.getAttribute("arg-list-name"));
            this.globalExdr = new FlexibleStringExpander(setElement.getAttribute("global"));
        }
View Full Code Here

Examples of org.ofbiz.base.util.collections.FlexibleMapAccessor

        protected Map<FlexibleMapAccessor, FlexibleMapAccessor> fieldMap;
       
        public Service(ModelMenu modelMenu, Element serviceElement) {
            super (modelMenu, serviceElement);
            this.serviceNameExdr = new FlexibleStringExpander(serviceElement.getAttribute("service-name"));
            this.resultMapNameAcsr = UtilValidate.isNotEmpty(serviceElement.getAttribute("result-map-name")) ? new FlexibleMapAccessor(serviceElement.getAttribute("result-map-name")) : null;
            this.autoFieldMapExdr = new FlexibleStringExpander(serviceElement.getAttribute("auto-field-map"));
           
            List fieldMapElementList = UtilXml.childElementList(serviceElement, "field-map");
            if (fieldMapElementList.size() > 0) {
                this.fieldMap = new HashMap<FlexibleMapAccessor, FlexibleMapAccessor>();
                Iterator fieldMapElementIter = fieldMapElementList.iterator();
                while (fieldMapElementIter.hasNext()) {
                    Element fieldMapElement = (Element) fieldMapElementIter.next();
                    // set the env-name for each field-name, noting that if no field-name is specified it defaults to the env-name
                    this.fieldMap.put(
                            new FlexibleMapAccessor(UtilFormatOut.checkEmpty(fieldMapElement.getAttribute("field-name"), fieldMapElement.getAttribute("env-name"))),
                            new FlexibleMapAccessor(fieldMapElement.getAttribute("env-name")));
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.