StAX Mapper 1.0.0.Final-redhat-1

org.jboss.staxmapper
Interface XMLExtendedStreamWriter

All Superinterfaces:
XMLStreamWriter

public interface XMLExtendedStreamWriter
extends XMLStreamWriter

Author:
David M. Lloyd

Method Summary
 void setUnspecifiedElementNamespace(String namespace)
          Sets the namespace to use for child element writes when a namespace is not specified.
 void writeAttribute(String localName, Iterable<String> value)
           
 void writeAttribute(String localName, String[] values)
           
 void writeAttribute(String namespaceURI, String localName, Iterable<String> value)
           
 void writeAttribute(String namespaceURI, String localName, String[] values)
           
 void writeAttribute(String prefix, String namespaceURI, String localName, Iterable<String> value)
           
 void writeAttribute(String prefix, String namespaceURI, String localName, String[] values)
           
 
Methods inherited from interface javax.xml.stream.XMLStreamWriter
close, flush, getNamespaceContext, getPrefix, getProperty, setDefaultNamespace, setNamespaceContext, setPrefix, writeAttribute, writeAttribute, writeAttribute, writeCData, writeCharacters, writeCharacters, writeComment, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeNamespace, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElement
 

Method Detail

writeAttribute

void writeAttribute(String localName,
                    String[] values)
                    throws XMLStreamException
Throws:
XMLStreamException

writeAttribute

void writeAttribute(String prefix,
                    String namespaceURI,
                    String localName,
                    String[] values)
                    throws XMLStreamException
Throws:
XMLStreamException

writeAttribute

void writeAttribute(String namespaceURI,
                    String localName,
                    String[] values)
                    throws XMLStreamException
Throws:
XMLStreamException

writeAttribute

void writeAttribute(String localName,
                    Iterable<String> value)
                    throws XMLStreamException
Throws:
XMLStreamException

writeAttribute

void writeAttribute(String prefix,
                    String namespaceURI,
                    String localName,
                    Iterable<String> value)
                    throws XMLStreamException
Throws:
XMLStreamException

writeAttribute

void writeAttribute(String namespaceURI,
                    String localName,
                    Iterable<String> value)
                    throws XMLStreamException
Throws:
XMLStreamException

setUnspecifiedElementNamespace

void setUnspecifiedElementNamespace(String namespace)
Sets the namespace to use for child element writes when a namespace is not specified. In other words, when XMLStreamWriter.writeStartElement(String) is called this namespace will be used. Setting this to null will result in the standard behavior, which is usage of the xml default ns (not specifying a prefix) This setting is scoped within the document or element that it was called in. Once called all further child elements will use this namespace. In addition, it is inherited for all levels of nesting. In other words, setting an unspecified namespace on a grandchild will not affect the namespace setting of a child sibling. To clear the effect of this setting, call the method with a value of null.

Parameters:
namespace - The namespace to use when not specified on elements, or null if the xml default ns should be used

StAX Mapper 1.0.0.Final-redhat-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.