org.jvoicexml.xml
Interface XmlWritable

All Known Subinterfaces:
CcxmlNode, SrgsNode, SsmlNode, VoiceXmlNode, XmlNode
All Known Implementing Classes:
AbstractCatchElement, AbstractEventStrategy, AbstractXmlNode, Accept, Assign, Assign, Audio, Block, Break, Cancel, Catch, Ccxml, CcxmlDocument, ChildNodeEventStrategy, Choice, Clear, Createcall, Createccxml, Createconference, Data, Desc, Destroyconference, Dialogprepare, Dialogstart, Dialogterminate, Disconnect, Disconnect, Else, Else, Elseif, Elseif, Emphasis, Enumerate, Error, Eventprocessor, Example, Exit, Exit, Fetch, Field, Filled, Foreach, Form, Goto, Goto, Grammar, Help, If, If, Initial, Item, Join, Lexicon, Link, Log, Log, Mark, Menu, Merge, Meta, Meta, Metadata, Metadata, Move, Noinput, Nomatch, ObjectTag, OneOf, Option, P, Param, Phoneme, Prompt, Property, Prosody, RecognitionEventStrategy, Record, Redirect, Reject, Reprompt, Return, Rule, Ruleref, S, SayAs, Script, Script, Send, Speak, SrgsXmlDocument, SsmlDocument, Sub, Subdialog, Submit, Tag, Text, Text, Throw, Token, Transfer, Transition, Unjoin, Value, Var, Var, Voice, VoiceXmlComment, VoiceXmlDocument, VoiceXmlDocumentType, Vxml, XmlCDataSection, XmlDocument

public interface XmlWritable

Objects that can write themselves as XML text do so using this interface.

Version:
$Revision: 154 $

Copyright © 2005-2006 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
David Brownell, Dirk Schnelle

Method Summary
 void writeChildrenXml(XmlWriter writer)
          Used to write any children of a node.
 void writeXml(XmlWriter writer)
          This is the primary method used to write an object and its children as XML text.
 

Method Detail

writeXml

void writeXml(XmlWriter writer)
              throws IOException
This is the primary method used to write an object and its children as XML text. Implementations with children should use writeChildrenXml to write those children, to allow selective overriding.

Parameters:
writer - XMLWriter used when writing XML text.
Throws:
IOException - Error in writing.

writeChildrenXml

void writeChildrenXml(XmlWriter writer)
                      throws IOException
Used to write any children of a node.

Parameters:
writer - XMLWriter used when writing XML text.
Throws:
IOException - Error in writing.


Copyright © 2005-2007 JVoiceXML group.