Bind.java 854 Bytes
/*
 * 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 Bind
extends BindingNode {
    public Bind(Element parent, Node prevSibling) {
        super(parent, prevSibling, null, "bind", "bind", null, XFA.BINDTAG, "bind");
    }

    @Override
    public void updateAbsoluteDataRef() {
        String sRef = "";
        if (this.getEnum(XFA.MATCHTAG) == 2031619) {
            sRef = this.getAttribute(XFA.REFTAG).toString();
        }
        this.updateAbsoluteDataRef(sRef, "", 0, false);
    }

    @Override
    String getBindingContext() {
        return this.getContextRef(this.getXFAParent(), "", 0);
    }
}