/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  java.lang.String
 *  java.util.Map
 *  org.w3c.dom.DOMException
 *  org.w3c.dom.Document
 *  org.w3c.dom.NamedNodeMap
 *  org.w3c.dom.Node
 *  org.w3c.dom.NodeList
 *  org.w3c.dom.ProcessingInstruction
 */
package org.dom4j.dom;

import java.util.Map;
import org.dom4j.Element;
import org.dom4j.Node;
import org.dom4j.dom.DOMNodeHelper;
import org.dom4j.tree.DefaultProcessingInstruction;
import org.w3c.dom.DOMException;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.NodeList;
import org.w3c.dom.ProcessingInstruction;

public class DOMProcessingInstruction
extends DefaultProcessingInstruction
implements ProcessingInstruction {
    public DOMProcessingInstruction(String string2, String string3) {
        super(string2, string3);
    }

    public DOMProcessingInstruction(String string2, Map map) {
        super(string2, map);
    }

    public DOMProcessingInstruction(Element element, String string2, String string3) {
        super(element, string2, string3);
    }

    private void checkNewChildNode(org.w3c.dom.Node node) throws DOMException {
        throw new DOMException(3, "PI nodes cannot have children");
    }

    public org.w3c.dom.Node appendChild(org.w3c.dom.Node node) throws DOMException {
        super.checkNewChildNode(node);
        return DOMNodeHelper.appendChild((Node)this, node);
    }

    public org.w3c.dom.Node cloneNode(boolean bl) {
        return DOMNodeHelper.cloneNode((Node)this, bl);
    }

    public NamedNodeMap getAttributes() {
        return null;
    }

    public NodeList getChildNodes() {
        return DOMNodeHelper.getChildNodes(this);
    }

    public String getData() {
        return this.getText();
    }

    public org.w3c.dom.Node getFirstChild() {
        return DOMNodeHelper.getFirstChild(this);
    }

    public org.w3c.dom.Node getLastChild() {
        return DOMNodeHelper.getLastChild(this);
    }

    public String getLocalName() {
        return DOMNodeHelper.getLocalName(this);
    }

    public String getNamespaceURI() {
        return DOMNodeHelper.getNamespaceURI(this);
    }

    public org.w3c.dom.Node getNextSibling() {
        return DOMNodeHelper.getNextSibling(this);
    }

    public String getNodeName() {
        return this.getName();
    }

    public String getNodeValue() throws DOMException {
        return DOMNodeHelper.getNodeValue(this);
    }

    public Document getOwnerDocument() {
        return DOMNodeHelper.getOwnerDocument(this);
    }

    public org.w3c.dom.Node getParentNode() {
        return DOMNodeHelper.getParentNode(this);
    }

    public String getPrefix() {
        return DOMNodeHelper.getPrefix(this);
    }

    public org.w3c.dom.Node getPreviousSibling() {
        return DOMNodeHelper.getPreviousSibling(this);
    }

    public boolean hasAttributes() {
        return DOMNodeHelper.hasAttributes(this);
    }

    public boolean hasChildNodes() {
        return DOMNodeHelper.hasChildNodes(this);
    }

    public org.w3c.dom.Node insertBefore(org.w3c.dom.Node node, org.w3c.dom.Node node2) throws DOMException {
        super.checkNewChildNode(node);
        return DOMNodeHelper.insertBefore((Node)this, node, node2);
    }

    public boolean isSupported(String string2, String string3) {
        return DOMNodeHelper.isSupported((Node)this, string2, string3);
    }

    public void normalize() {
        DOMNodeHelper.normalize(this);
    }

    public org.w3c.dom.Node removeChild(org.w3c.dom.Node node) throws DOMException {
        return DOMNodeHelper.removeChild((Node)this, node);
    }

    public org.w3c.dom.Node replaceChild(org.w3c.dom.Node node, org.w3c.dom.Node node2) throws DOMException {
        super.checkNewChildNode(node);
        return DOMNodeHelper.replaceChild((Node)this, node, node2);
    }

    public void setData(String string2) throws DOMException {
        if (this.isReadOnly()) {
            throw new DOMException(7, "This ProcessingInstruction is read only");
        }
        this.setText(string2);
    }

    public void setNodeValue(String string2) throws DOMException {
        DOMNodeHelper.setNodeValue((Node)this, string2);
    }

    public void setPrefix(String string2) throws DOMException {
        DOMNodeHelper.setPrefix((Node)this, string2);
    }

    public boolean supports(String string2, String string3) {
        return DOMNodeHelper.supports((Node)this, string2, string3);
    }
}

