/*
 * Decompiled with CFR 0_110.
 * 
 * Could not load the following classes:
 *  java.lang.Object
 *  java.lang.String
 *  java.util.Map
 */
package org.dom4j.tree;

import java.util.Map;
import org.dom4j.Element;
import org.dom4j.tree.FlyweightProcessingInstruction;

public class DefaultProcessingInstruction
extends FlyweightProcessingInstruction {
    private Element parent;

    public DefaultProcessingInstruction(String string2, String string3) {
        super(string2, string3);
    }

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

    public DefaultProcessingInstruction(Element element, String string2, String string3) {
        super(string2, string3);
        this.parent = element;
    }

    @Override
    public Element getParent() {
        return this.parent;
    }

    @Override
    public boolean isReadOnly() {
        return false;
    }

    @Override
    public void setParent(Element element) {
        this.parent = element;
    }

    @Override
    public void setTarget(String string2) {
        this.target = string2;
    }

    @Override
    public void setText(String string2) {
        this.text = string2;
        this.values = this.parseValues(string2);
    }

    @Override
    public void setValue(String string2, String string3) {
        this.values.put((Object)string2, (Object)string3);
    }

    @Override
    public void setValues(Map map) {
        this.values = map;
        this.text = this.toString(map);
    }

    @Override
    public boolean supportsParent() {
        return true;
    }
}

