Apache CXF API

org.apache.cxf.aegis.xml.jdom
Class AttributeWriter

java.lang.Object
  extended by org.apache.cxf.aegis.xml.AbstractMessageWriter
      extended by org.apache.cxf.aegis.xml.jdom.AttributeWriter
All Implemented Interfaces:
MessageWriter

public class AttributeWriter
extends AbstractMessageWriter


Constructor Summary
AttributeWriter(org.jdom.Attribute att)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.cxf.aegis.xml.AbstractMessageWriter
writeValueAsBoolean, writeValueAsByte, writeValueAsCharacter, writeValueAsDouble, writeValueAsFloat, writeValueAsInt, writeValueAsLong, writeValueAsShort, writeXsiNil, writeXsiType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeWriter

public AttributeWriter(org.jdom.Attribute att)
Method Detail

writeValue

public void writeValue(Object value)

getAttributeWriter

public MessageWriter getAttributeWriter(String name)

getAttributeWriter

public MessageWriter getAttributeWriter(String name,
                                        String namespace)

getAttributeWriter

public MessageWriter getAttributeWriter(QName qname)

getElementWriter

public MessageWriter getElementWriter(String name)

getElementWriter

public MessageWriter getElementWriter(String name,
                                      String namespace)

getElementWriter

public MessageWriter getElementWriter(QName qname)

getPrefixForNamespace

public String getPrefixForNamespace(String namespace)

getPrefixForNamespace

public String getPrefixForNamespace(String namespace,
                                    String hint)
Description copied from interface: MessageWriter
Get 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:
namespace - the namespace to retrieve the prefix for
hint - the hint for the prefix.
Returns:
the prefix associated with the namespace

close

public void close()
Description copied from interface: MessageWriter
Tells the MessageWriter that writing operations are completed so it can write the end element.


Apache CXF API

Apache CXF