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

import java.io.IOException;
import java.io.Writer;
import org.dom4j.Text;
import org.dom4j.Visitor;
import org.dom4j.tree.AbstractCharacterData;

public abstract class AbstractText
extends AbstractCharacterData
implements Text {
    @Override
    public void accept(Visitor visitor) {
        visitor.visit((Text)this);
    }

    @Override
    public String asXML() {
        return this.getText();
    }

    @Override
    public short getNodeType() {
        return 3;
    }

    public String toString() {
        return new StringBuffer().append(super.toString()).append(" [Text: \"").append(this.getText()).append("\"]").toString();
    }

    @Override
    public void write(Writer writer) throws IOException {
        writer.write(this.getText());
    }
}

