org.apache.ws.jaxme.impl

Class OrderedAttributeXMLWriter

Implemented Interfaces:
org.xml.sax.ContentHandler, XMLWriter

public class OrderedAttributeXMLWriter
extends XMLWriterImpl

This is a subclass of XMLWriterImpl, that writes the attributes ordered alphabetically. This is mainly useful for test purposes, when a canonical representation of the result is required for comparing against an expected value.

Method Summary

void
startElement(String pNamespaceURI, String pLocalName, String pQName, Attributes pAttrs)
Starts a new element.

Methods inherited from class org.apache.ws.jaxme.impl.XMLWriterImpl

canEncode, characters, endDocument, endElement, endPrefixMapping, getDocumentLocator, getMarshaller, getWriter, ignorableWhitespace, init, processingInstruction, setDocumentLocator, setWriter, skippedEntity, startDocument, startElement, startPrefixMapping

Method Details

startElement

public void startElement(String pNamespaceURI,
                         String pLocalName,
                         String pQName,
                         Attributes pAttrs)
            throws SAXException
Starts a new element.
Overrides:
startElement in interface XMLWriterImpl
Parameters: