org.jvoicexml.xml.TextContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.jvoicexml.xml Show documentation
Show all versions of org.jvoicexml.xml Show documentation
The Open Source Voice Browser
The newest version!
/*
* File: $HeadURL$
* Version: $LastChangedRevision$
* Date: $Date$
* Author: $LastChangedBy$
*
* JVoiceXML - A free VoiceXML implementation.
*
* Copyright (C) 2010 JVoiceXML group - http://jvoicexml.sourceforge.net
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
package org.jvoicexml.xml;
/**
* A node that can contain {@link Text} child nodes.
* @author Dirk Schnelle-Walka
* @version $Revision$
* @since 0.7.3
*/
public interface TextContainer extends XmlNode {
/**
* Creates a new text within this node. If the last child node already is
* a text node the given trimmed text is appended to that node.
* @param text The text to be added.
* @return The new created text.
*/
Text addText(final String text);
/**
* Retrieves the factory to create node lists.
* @return Factory to create node lists.
*/
XmlNodeFactory extends XmlNode> getNodeFactory();
}