com.skaringa.javaxml.handler
Interface DocumentOutputHandlerInterface

All Known Implementing Classes:
AbstractDocumentOutputHandler, DOMOutputHandler, SAXOutputHandler

public interface DocumentOutputHandlerInterface

Describe an interface for the handling of the output of the serialization.


Method Summary
 void appendText(java.lang.String text)
          Append text to the current element.
 void endDocument()
          End the document.
 void endElement(java.lang.String name)
          End the current element.
 java.util.Map getProperties()
          Get the properties of the OutputHandler.
 void setProperties(java.util.Map propertyMap)
          Set the properties of the OutputHandler.
 void startDocument()
          Start a new document.
 void startElement(java.lang.String name)
          Start a new element without attributes at the current element.
 void startElement(java.lang.String name, org.xml.sax.Attributes attrs)
          Start a new element at the current element.
 

Method Detail

startDocument

void startDocument()
                   throws SerializerException
Start a new document.

Throws:
SerializerException - If the operation failes.

endDocument

void endDocument()
                 throws SerializerException
End the document.

Throws:
SerializerException - If the operation failes.

startElement

void startElement(java.lang.String name,
                  org.xml.sax.Attributes attrs)
                  throws SerializerException
Start a new element at the current element.

Parameters:
name - The name of the element.
attrs - The attributes of the element.
Throws:
SerializerException - If the operation failes.

startElement

void startElement(java.lang.String name)
                  throws SerializerException
Start a new element without attributes at the current element.

Parameters:
name - The name of the element.
Throws:
SerializerException - If the operation failes.

appendText

void appendText(java.lang.String text)
                throws SerializerException
Append text to the current element.

Parameters:
text - The text to append.
Throws:
SerializerException - If the operation failes.

endElement

void endElement(java.lang.String name)
                throws SerializerException
End the current element.

Parameters:
name - The name of the element.
Throws:
SerializerException - If the operation failes.

setProperties

void setProperties(java.util.Map propertyMap)
Set the properties of the OutputHandler.

Parameters:
propertyMap - The properties.

getProperties

java.util.Map getProperties()
Get the properties of the OutputHandler.

Returns:
The properties.