SetProperty.java 1.17 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xfa.template.binding;

import com.adobe.xfa.Attribute;
import com.adobe.xfa.Element;
import com.adobe.xfa.Node;
import com.adobe.xfa.XFA;
import com.adobe.xfa.template.binding.BindingNode;
import org.xml.sax.Attributes;

public final class SetProperty
extends BindingNode {
    public SetProperty(Element parent, Node prevSibling) {
        super(parent, prevSibling, null, "setProperty", "setProperty", null, XFA.SETPROPERTYTAG, "setProperty");
    }

    @Override
    public String getBindingContext() {
        String sConnection = this.getAttribute(XFA.CONNECTIONTAG).toString();
        int eUsage = 0;
        if (sConnection.length() > 0) {
            eUsage = 6225921;
        }
        return this.getContextRef(this, sConnection, eUsage);
    }

    @Override
    public void updateAbsoluteDataRef() {
        String sRef = this.getAttribute(XFA.REFTAG).toString();
        String sConnection = this.getAttribute(XFA.CONNECTIONTAG).toString();
        int eUsage = 0;
        if (sConnection.length() > 0) {
            eUsage = 6225921;
        }
        this.updateAbsoluteDataRef(sRef, sConnection, eUsage, true);
    }
}