

package com.xmlcalabash.model;

import net.sf.saxon.s9api.XdmNode;
import com.xmlcalabash.core.XProcRuntime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author ndw
 */
public class DocumentBinding extends Binding {
    private String href = null;
    
    /* Creates a new instance of DocumentBinding */
    public DocumentBinding() {
        super(null, null);
        bindingType = DOCUMENT_BINDING;
    }

    public DocumentBinding(XProcRuntime xproc, XdmNode node) {
        super(xproc, node);
        bindingType = DOCUMENT_BINDING;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getHref() {
        return href;
    }

    protected void dump(int depth) {
        String indent = "";
        for (int count = 0; count < depth; count++) {
            indent += " ";
        }

        logger.trace(indent + "URI binding to " + getHref());
    }
}
