Package org.jboss.staxmapper
Interface XMLExtendedStreamWriter
-
- All Superinterfaces:
XMLStreamWriter
- All Known Implementing Classes:
FormattingXMLStreamWriter
public interface XMLExtendedStreamWriter extends XMLStreamWriter
- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetUnspecifiedElementNamespace(String namespace)Sets the namespace to use for child element writes when a namespace is not specified.voidwriteAttribute(String localName, Iterable<String> value)voidwriteAttribute(String localName, String[] values)voidwriteAttribute(String namespaceURI, String localName, Iterable<String> value)voidwriteAttribute(String namespaceURI, String localName, String[] values)voidwriteAttribute(String prefix, String namespaceURI, String localName, Iterable<String> value)voidwriteAttribute(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, whenXMLStreamWriter.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
-
-