/*
 * $Id: DOMTextImpl.java 220 2007-07-16 10:32:15Z sugimotokenichi $
 * Copyright (C) 2005 SUGIMOTO Ken-ichi
 * 作成日: 2005/10/30
 */
package feat2.template.impl;

import org.w3c.dom.DOMException;
import org.w3c.dom.Text;

/**
 * DOM APIのTextの実装。
 * @author SUGIMOTO Ken-ichi
 */
public class DOMTextImpl extends DOMCharacterDataImpl implements Text {

    public DOMTextImpl(HTMLNodeImpl htmlNode) {
        super(htmlNode);
    }

    public String getLocalName() {
        return "#text";
    }

    public String getNodeName() {
        return "#text";
    }

    public Text splitText(int offset) throws DOMException {
        throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "");
    }

}
