org.jboss.xml.binding
Class DtdMarshaller

java.lang.Object
  extended byorg.jboss.xml.binding.AbstractMarshaller (src) 
      extended byorg.jboss.xml.binding.DtdMarshaller
All Implemented Interfaces:
Marshaller (src)

public class DtdMarshaller
extends AbstractMarshaller (src)

A DTD based org.jboss.xml.binding.Marshaller implementation.


Nested Class Summary
 
Nested classes inherited from class org.jboss.xml.binding.AbstractMarshaller (src)
AbstractMarshaller.ClassMapping (src) , AbstractMarshaller.Stack (src) , AbstractMarshaller.StackImpl (src)
 
Nested classes inherited from class org.jboss.xml.binding.Marshaller (src)
Marshaller.FACTORY (src)
 
Field Summary
 
Fields inherited from class org.jboss.xml.binding.AbstractMarshaller (src)
encoding, rootQNames, version
 
Fields inherited from interface org.jboss.xml.binding.Marshaller (src)
ENCODING, PROP_MARSHALLER, PROP_OUTPUT_INDENTATION, PROP_OUTPUT_XML_VERSION, VERSION
 
Constructor Summary
DtdMarshaller()
           
 
Method Summary
protected static DTDElement[] getRootList(DTD dtd)
           
 void mapPublicIdToSystemId(java.lang.String publicId, java.lang.String systemId)
           
 void marshal(java.io.Reader dtdReader, ObjectModelProvider (src)  provider, java.lang.Object document, java.io.Writer writer)
           
protected static void removeElements(java.util.Hashtable h, DTD dtd, DTDItem item)
           
 
Methods inherited from class org.jboss.xml.binding.AbstractMarshaller (src)
addRootElement, getClassMapping, getProperty, mapClassToNamespace, mapClassToNamespace, marshal, propertyIsTrueOrNotSet, setEncoding, setProperty, setVersion, writeXmlVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DtdMarshaller

public DtdMarshaller()
Method Detail

mapPublicIdToSystemId

public void mapPublicIdToSystemId(java.lang.String publicId,
                                  java.lang.String systemId)
Specified by:
mapPublicIdToSystemId in interface Marshaller (src)
Overrides:
mapPublicIdToSystemId in class AbstractMarshaller (src)

marshal

public void marshal(java.io.Reader dtdReader,
                    ObjectModelProvider (src)  provider,
                    java.lang.Object document,
                    java.io.Writer writer)
             throws java.io.IOException,
                    org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

getRootList

protected static DTDElement[] getRootList(DTD dtd)
Parameters:
dtd - the DTD object model
Returns:
root element names

removeElements

protected static void removeElements(java.util.Hashtable h,
                                     DTD dtd,
                                     DTDItem item)