Connect.java 1.02 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 Connect
extends BindingNode {
    public Connect(Element parent, Node prevSibling) {
        super(parent, prevSibling, null, "connect", "connect", null, XFA.CONNECTTAG, "connect");
    }

    @Override
    public String getBindingContext() {
        String sConnection = this.getAttribute(XFA.CONNECTIONTAG).toString();
        int eUsage = XFA.USAGETAG;
        return this.getContextRef(this.getXFAParent(), sConnection, eUsage);
    }

    @Override
    public void updateAbsoluteDataRef() {
        String sRef = this.getAttribute(XFA.REFTAG).toString();
        String sConnection = this.getAttribute(XFA.CONNECTIONTAG).toString();
        int eUsage = XFA.USAGETAG;
        this.updateAbsoluteDataRef(sRef, sConnection, eUsage, false);
    }
}