Package org.apache.ws.commons.serialize
Class OrderedAttributeXMLWriter
java.lang.Object
org.apache.ws.commons.serialize.XMLWriterImpl
org.apache.ws.commons.serialize.OrderedAttributeXMLWriter
- All Implemented Interfaces:
XMLWriter,ContentHandler
A subclass of
XMLWriterImpl,
which 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.-
Field Summary
Fields inherited from class org.apache.ws.commons.serialize.XMLWriterImpl
curIndent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstartElement(String pNamespaceURI, String pLocalName, String pQName, Attributes pAttrs) Starts a new element.Methods inherited from class org.apache.ws.commons.serialize.XMLWriterImpl
canEncode, characters, endDocument, endElement, endPrefixMapping, getDocumentLocator, getEncoding, getIndentString, getLineFeed, getWriter, ignorableWhitespace, isDeclarating, isFlushing, isIndenting, processingInstruction, setDeclarating, setDocumentLocator, setEncoding, setFlushing, setIndenting, setIndentString, setLineFeed, setWriter, skippedEntity, startDocument, startPrefixMappingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
OrderedAttributeXMLWriter
public OrderedAttributeXMLWriter()
-
-
Method Details
-
startElement
public void startElement(String pNamespaceURI, String pLocalName, String pQName, Attributes pAttrs) throws SAXException Description copied from class:XMLWriterImplStarts a new element.- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classXMLWriterImpl- Parameters:
pNamespaceURI- The namespace URI, if any, or nullpLocalName- The local name, without prefix, or nullpQName- The qualified name, including a prefix, or nullpAttrs- The element attributes- Throws:
SAXException- Thrown in case of an IOException.
-