Examples of ContextAccessor


Examples of org.ofbiz.minilang.method.ContextAccessor

    protected ContextAccessor envAcsr;
    protected ContextAccessor toEnvAcsr;

    public EnvToEnv(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        envAcsr = new ContextAccessor(element.getAttribute("env-name"));
        toEnvAcsr = new ContextAccessor(element.getAttribute("to-env-name"));
    }
View Full Code Here

Examples of org.ofbiz.minilang.method.ContextAccessor

    protected String countStr;


    public Loop(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        this.fieldAcsr = new ContextAccessor(element.getAttribute("field"));
        this.countStr = element.getAttribute("count");

        SimpleMethod.readOperations(element, subOps, simpleMethod);
    }
View Full Code Here

Examples of org.ofbiz.minilang.method.ContextAccessor

    protected ContextAccessor entryAcsr;
    protected ContextAccessor listAcsr;

    public Iterate(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        this.entryAcsr = new ContextAccessor(element.getAttribute("entry-name"));
        this.listAcsr = new ContextAccessor(element.getAttribute("list-name"));

        SimpleMethod.readOperations(element, subOps, simpleMethod);
    }
View Full Code Here

Examples of org.ofbiz.minilang.method.ContextAccessor

    protected boolean setIfNull; // default to false
    protected boolean setIfEmpty; // default to true

    public SetOperation(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        this.field = new ContextAccessor(element.getAttribute("field"));
        this.fromField = new ContextAccessor(element.getAttribute("from-field"));
        this.valueExdr = new FlexibleStringExpander(element.getAttribute("value"));
        this.defaultExdr = new FlexibleStringExpander(element.getAttribute("default-value"));
        this.type = element.getAttribute("type");
        // default to false, anything but true is false
        this.setIfNull = "true".equals(element.getAttribute("set-if-null"));
View Full Code Here

Examples of org.ofbiz.minilang.method.ContextAccessor

    ContextAccessor valueAcsr;
    String doCacheClearStr;

    public CreateValue(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        valueAcsr = new ContextAccessor(element.getAttribute("value-name"));
        doCacheClearStr = element.getAttribute("do-cache-clear");
    }
View Full Code Here

Examples of org.ofbiz.minilang.method.ContextAccessor

    ContextAccessor valueAcsr;
    ContextAccessor mapAcsr;

    public IterateMap(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        this.keyAcsr = new ContextAccessor(element.getAttribute("key-name"));
        this.valueAcsr = new ContextAccessor(element.getAttribute("value-name"));
        this.mapAcsr = new ContextAccessor(element.getAttribute("map-name"));

        SimpleMethod.readOperations(element, subOps, simpleMethod);
    }
View Full Code Here

Examples of org.ofbiz.minilang.method.ContextAccessor

    FlexibleServletAccessor sessionAcsr;
    String defaultVal;

    public SessionToField(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        mapAcsr = new ContextAccessor(element.getAttribute("map-name"));
        fieldAcsr = new ContextAccessor(element.getAttribute("field-name"));
        sessionAcsr = new FlexibleServletAccessor(element.getAttribute("session-name"), element.getAttribute("field-name"));
        defaultVal = element.getAttribute("default");
    }
View Full Code Here

Examples of org.ofbiz.minilang.method.ContextAccessor

    String relationName;
    String doCacheClearStr;

    public RemoveRelated(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        valueAcsr = new ContextAccessor(element.getAttribute("value-name"));
        relationName = element.getAttribute("relation-name");
        doCacheClearStr = element.getAttribute("do-cache-clear");
    }
View Full Code Here

Examples of org.ofbiz.minilang.method.ContextAccessor

    ContextAccessor fieldAcsr;
    FlexibleServletAccessor sessionAcsr;

    public FieldToSession(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        mapAcsr = new ContextAccessor(element.getAttribute("map-name"));
        fieldAcsr = new ContextAccessor(element.getAttribute("field-name"));
        sessionAcsr = new FlexibleServletAccessor(element.getAttribute("session-name"), element.getAttribute("field-name"));
    }
View Full Code Here

Examples of org.ofbiz.minilang.method.ContextAccessor

    long staggerMax = 1;

    public SequencedIdToEnv(Element element, SimpleMethod simpleMethod) {
        super(element, simpleMethod);
        seqName = element.getAttribute("sequence-name");
        envAcsr = new ContextAccessor(element.getAttribute("env-name"));
        // default false, anything but true is false
        getLongOnly = "true".equals(element.getAttribute("get-long-only"));
        String staggerMaxStr = element.getAttribute("stagger-max");
        if (UtilValidate.isNotEmpty(staggerMaxStr)) {
            try {
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.