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

import org.dom4j.CharacterData;
import org.dom4j.Element;
import org.dom4j.tree.AbstractNode;

public abstract class AbstractCharacterData
extends AbstractNode
implements CharacterData {
    @Override
    public void appendText(String string2) {
        this.setText(new StringBuffer().append(this.getText()).append(string2).toString());
    }

    @Override
    public String getPath(Element element) {
        Element element2 = this.getParent();
        if (element2 != null && element2 != element) {
            return new StringBuffer().append(element2.getPath(element)).append("/text()").toString();
        }
        return "text()";
    }

    @Override
    public String getUniquePath(Element element) {
        Element element2 = this.getParent();
        if (element2 != null && element2 != element) {
            return new StringBuffer().append(element2.getUniquePath(element)).append("/text()").toString();
        }
        return "text()";
    }
}

