org.apache.cxf.aegis.xml
Class AbstractMessageWriter

java.lang.Object
  extended by org.apache.cxf.aegis.xml.AbstractMessageWriter
All Implemented Interfaces:
MessageWriter
Direct Known Subclasses:
AttributeWriter, AttributeWriter, ElementWriter

public abstract class AbstractMessageWriter
extends Object
implements MessageWriter

Basic type conversion functionality for writing messages.

Author:
Dan Diephouse

Constructor Summary
AbstractMessageWriter()
           
 
Method Summary
 void writeValueAsBoolean(boolean b)
           
 void writeValueAsByte(Byte b)
           
 void writeValueAsCharacter(Character char1)
           
 void writeValueAsDouble(Double d)
           
 void writeValueAsFloat(Float f)
           
 void writeValueAsInt(Integer i)
           
 void writeValueAsLong(Long l)
           
 void writeValueAsShort(Short s)
           
 void writeXsiNil()
           
 void writeXsiType(QName type)
          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."
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.aegis.xml.MessageWriter
close, getAttributeWriter, getAttributeWriter, getAttributeWriter, getElementWriter, getElementWriter, getElementWriter, getPrefixForNamespace, getPrefixForNamespace, writeValue
 

Constructor Detail

AbstractMessageWriter

public AbstractMessageWriter()
Method Detail

writeXsiType

public void writeXsiType(QName type)
Description copied from interface: MessageWriter
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."

Specified by:
writeXsiType in interface MessageWriter

writeXsiNil

public void writeXsiNil()
Specified by:
writeXsiNil in interface MessageWriter

writeValueAsInt

public void writeValueAsInt(Integer i)
Specified by:
writeValueAsInt in interface MessageWriter
See Also:
MessageWriter.writeValueAsInt(java.lang.Integer)

writeValueAsByte

public void writeValueAsByte(Byte b)
Specified by:
writeValueAsByte in interface MessageWriter

writeValueAsDouble

public void writeValueAsDouble(Double d)
Specified by:
writeValueAsDouble in interface MessageWriter
See Also:
MessageWriter.writeValueAsDouble(java.lang.Double)

writeValueAsCharacter

public void writeValueAsCharacter(Character char1)
Specified by:
writeValueAsCharacter in interface MessageWriter
See Also:
MessageWriter.writeValueAsCharacter(java.lang.Character)

writeValueAsLong

public void writeValueAsLong(Long l)
Specified by:
writeValueAsLong in interface MessageWriter
See Also:
MessageWriter.writeValueAsLong(java.lang.Long)

writeValueAsFloat

public void writeValueAsFloat(Float f)
Specified by:
writeValueAsFloat in interface MessageWriter
See Also:
MessageWriter.writeValueAsFloat(java.lang.Float)

writeValueAsBoolean

public void writeValueAsBoolean(boolean b)
Specified by:
writeValueAsBoolean in interface MessageWriter
See Also:
MessageWriter.writeValueAsBoolean(boolean)

writeValueAsShort

public void writeValueAsShort(Short s)
Specified by:
writeValueAsShort in interface MessageWriter


Apache CXF