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

import org.dom4j.Element;
import org.dom4j.Namespace;

public class DefaultNamespace
extends Namespace {
    private Element parent;

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

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

    @Override
    protected int createHashCode() {
        int n = super.createHashCode();
        if (this.parent != null) {
            n ^= this.parent.hashCode();
        }
        return n;
    }

    @Override
    public boolean equals(Object object) {
        if (object instanceof DefaultNamespace && ((DefaultNamespace)object).parent == this.parent) {
            return super.equals(object);
        }
        return false;
    }

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

    @Override
    public int hashCode() {
        return super.hashCode();
    }

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

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

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

