Package org.apache.cxf.aegis.xml.stax
Class AttributeWriter
java.lang.Object
org.apache.cxf.aegis.xml.AbstractMessageWriter
org.apache.cxf.aegis.xml.stax.AttributeWriter
- All Implemented Interfaces:
MessageWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Tells the MessageWriter that writing operations are completed so it can write the end element.getAttributeWriter(String nm, String ns) getAttributeWriter(QName qname) getElementWriter(String nm, String ns) getElementWriter(QName qname) getPrefixForNamespace(String ns, String hint) Get a prefix for a namespace.voidwriteValue(Object value) Methods inherited from class org.apache.cxf.aegis.xml.AbstractMessageWriter
writeValueAsBoolean, writeValueAsByte, writeValueAsCharacter, writeValueAsDouble, writeValueAsFloat, writeValueAsInt, writeValueAsLong, writeValueAsShort, writeXsiNil, writeXsiType
-
Constructor Details
-
AttributeWriter
-
-
Method Details
-
writeValue
-
getAttributeWriter
-
getAttributeWriter
-
getAttributeWriter
-
getElementWriter
-
getElementWriter
-
getElementWriter
-
getPrefixForNamespace
-
getPrefixForNamespace
Description copied from interface:MessageWriterGet a prefix for a namespace. After calling this, the prefix returned is registered with the namespace. This method will make an attempt to use the hint prefix if possible. If the namespace is already registered or the hint is already registered with a different namespace then the behavior will be the same as the non-hint version.- Parameters:
ns- the namespace to retrieve the prefix forhint- the hint for the prefix.- Returns:
- the prefix associated with the namespace
-
close
public void close()Description copied from interface:MessageWriterTells the MessageWriter that writing operations are completed so it can write the end element.
-