de.ispsoft.jaxme.jaxb
Class JaxbDOMSerializer

java.lang.Object
  extended byde.ispsoft.jaxme.jaxb.JaxbDOMSerializer
All Implemented Interfaces:
org.xml.sax.ContentHandler

public class JaxbDOMSerializer
extends java.lang.Object
implements org.xml.sax.ContentHandler

Serializes a SAX stream into a DOM node.

Version:
$Id: JaxbDOMSerializer.java,v 1.2 2003/05/21 03:30:18 joe Exp $
Author:
Jochen Wiedmann

Constructor Summary
JaxbDOMSerializer()
          Constructor for JaxbDOMSerializer.
 
Method Summary
 void characters(char[] pBuffer, int pOffset, int pLen)
           
 void endDocument()
           
 void endElement(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2)
           
 void endPrefixMapping(java.lang.String arg0)
           
 org.xml.sax.Locator getDocumentLocator()
          Returns the Locator set with setDocumentLocator.
 MarshallerImpl getMarshaller()
          Returns the Marshaller.
 org.w3c.dom.Node getTargetNode()
          Returns the target node.
 void ignorableWhitespace(char[] pBuffer, int pOffset, int pLen)
           
 void processingInstruction(java.lang.String pTarget, java.lang.String pData)
           
 void setDocumentLocator(org.xml.sax.Locator pLocator)
           
 void setMarshaller(MarshallerImpl pMarshaller)
          Sets the Marshaller.
 void setTargetNode(org.w3c.dom.Node pTarget)
          Sets the target node.
 void skippedEntity(java.lang.String pRef)
           
 void startDocument()
           
 void startElement(java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pQName, org.xml.sax.Attributes pAttr)
           
 void startPrefixMapping(java.lang.String arg0, java.lang.String arg1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxbDOMSerializer

public JaxbDOMSerializer()
Constructor for JaxbDOMSerializer.

Method Detail

setTargetNode

public void setTargetNode(org.w3c.dom.Node pTarget)

Sets the target node.


getTargetNode

public org.w3c.dom.Node getTargetNode()

Returns the target node.


setMarshaller

public void setMarshaller(MarshallerImpl pMarshaller)

Sets the Marshaller.


getMarshaller

public MarshallerImpl getMarshaller()

Returns the Marshaller.


setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator pLocator)
Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler
See Also:
ContentHandler.setDocumentLocator(Locator)

getDocumentLocator

public org.xml.sax.Locator getDocumentLocator()

Returns the Locator set with setDocumentLocator.


startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.startDocument()

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.endDocument()

startPrefixMapping

public void startPrefixMapping(java.lang.String arg0,
                               java.lang.String arg1)
                        throws org.xml.sax.SAXException
Specified by:
startPrefixMapping in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.startPrefixMapping(String, String)

endPrefixMapping

public void endPrefixMapping(java.lang.String arg0)
                      throws org.xml.sax.SAXException
Specified by:
endPrefixMapping in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.endPrefixMapping(String)

startElement

public void startElement(java.lang.String pNamespaceURI,
                         java.lang.String pLocalName,
                         java.lang.String pQName,
                         org.xml.sax.Attributes pAttr)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.startElement(String, String, String, Attributes)

endElement

public void endElement(java.lang.String arg0,
                       java.lang.String arg1,
                       java.lang.String arg2)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.endElement(String, String, String)

characters

public void characters(char[] pBuffer,
                       int pOffset,
                       int pLen)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.characters(char[], int, int)

ignorableWhitespace

public void ignorableWhitespace(char[] pBuffer,
                                int pOffset,
                                int pLen)
                         throws org.xml.sax.SAXException
Specified by:
ignorableWhitespace in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.ignorableWhitespace(char[], int, int)

processingInstruction

public void processingInstruction(java.lang.String pTarget,
                                  java.lang.String pData)
                           throws org.xml.sax.SAXException
Specified by:
processingInstruction in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.processingInstruction(String, String)

skippedEntity

public void skippedEntity(java.lang.String pRef)
                   throws org.xml.sax.SAXException
Specified by:
skippedEntity in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.skippedEntity(String)