public interface MessageWriter
Modifier and Type | Method and Description |
---|---|
void |
close()
Tells the MessageWriter that writing operations are completed so it can
write the end element.
|
MessageWriter |
getAttributeWriter(QName qname) |
MessageWriter |
getAttributeWriter(String name) |
MessageWriter |
getAttributeWriter(String name,
String namespace) |
MessageWriter |
getElementWriter(QName qname) |
MessageWriter |
getElementWriter(String name) |
MessageWriter |
getElementWriter(String name,
String namespace) |
String |
getPrefixForNamespace(String namespace) |
String |
getPrefixForNamespace(String namespace,
String hint)
Get a prefix for a namespace.
|
void |
writeValue(Object value) |
void |
writeValueAsBoolean(boolean b) |
void |
writeValueAsByte(Byte b) |
void |
writeValueAsCharacter(Character char1) |
void |
writeValueAsDouble(Double double1) |
void |
writeValueAsFloat(Float f) |
void |
writeValueAsInt(Integer i) |
void |
writeValueAsLong(Long l) |
void |
writeValueAsShort(Short short1) |
void |
writeXsiNil() |
void |
writeXsiType(QName qn)
As per 2.6.1 in
XML Schema Part 1: "An element information item in an instance may,
however, explicitly assert its type using the attribute
xsi:type ." |
void writeValue(Object value)
void writeValueAsInt(Integer i)
void writeValueAsCharacter(Character char1)
void writeValueAsDouble(Double double1)
void writeValueAsLong(Long l)
void writeValueAsFloat(Float f)
void writeValueAsShort(Short short1)
void writeValueAsByte(Byte b)
void writeValueAsBoolean(boolean b)
MessageWriter getAttributeWriter(String name)
MessageWriter getAttributeWriter(String name, String namespace)
MessageWriter getAttributeWriter(QName qname)
MessageWriter getElementWriter(String name)
MessageWriter getElementWriter(String name, String namespace)
MessageWriter getElementWriter(QName qname)
String getPrefixForNamespace(String namespace, String hint)
namespace
- the namespace to retrieve the prefix forhint
- the hint for the prefix.void close()
void writeXsiType(QName qn)
xsi:type
."type
- the QName of the type being referenced.void writeXsiNil()
Apache CXF