public class AttributeWriter extends AbstractMessageWriter
Constructor and Description |
---|
AttributeWriter(XMLStreamWriter writer,
String name,
String namespace) |
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 nm) |
MessageWriter |
getAttributeWriter(String nm,
String ns) |
MessageWriter |
getElementWriter(QName qname) |
MessageWriter |
getElementWriter(String nm) |
MessageWriter |
getElementWriter(String nm,
String ns) |
String |
getPrefixForNamespace(String ns) |
String |
getPrefixForNamespace(String ns,
String hint)
Get a prefix for a namespace.
|
void |
writeValue(Object value) |
writeValueAsBoolean, writeValueAsByte, writeValueAsCharacter, writeValueAsDouble, writeValueAsFloat, writeValueAsInt, writeValueAsLong, writeValueAsShort, writeXsiNil, writeXsiType
public AttributeWriter(XMLStreamWriter writer, String name, String namespace)
public void writeValue(Object value)
public MessageWriter getAttributeWriter(String nm)
public MessageWriter getAttributeWriter(String nm, String ns)
public MessageWriter getAttributeWriter(QName qname)
public MessageWriter getElementWriter(String nm)
public MessageWriter getElementWriter(String nm, String ns)
public MessageWriter getElementWriter(QName qname)
public String getPrefixForNamespace(String ns, String hint)
MessageWriter
ns
- the namespace to retrieve the prefix forhint
- the hint for the prefix.public void close()
MessageWriter
Apache CXF