com.openharbor.beck.marshal
Class QNameMarshaller

java.lang.Object
  extended bycom.openharbor.beck.marshal.DefaultMarshaller
      extended bycom.openharbor.beck.marshal.QNameMarshaller
All Implemented Interfaces:
Configurable, Marshaller

public class QNameMarshaller
extends DefaultMarshaller
implements Configurable

Computes XML text by concatenating a configured namespace prefix with the source object. The source object's toString() method constructs the local part of the QName (unless the object reference is null, in which case the local part is "null").


Field Summary
 
Fields inherited from class com.openharbor.beck.marshal.DefaultMarshaller
log
 
Fields inherited from interface com.openharbor.beck.configure.Configurable
ATTRIBUTE, CLASS_IS_ARRAY, DIRECTION, ELEMENT, JAVA_TO_XML, NAMESPACE, NONE, PARENT_CLASS, PARENT_ELEMENT, PREDICATE, PREFIX, SCHEMA_LOCATION, TEXT, XML_TO_JAVA
 
Constructor Summary
QNameMarshaller()
           
 
Method Summary
 java.util.Map getConfiguration()
           
 java.lang.String getText(java.lang.Object parent, Getter getter, java.lang.Object source, XMLWriter out)
          Copy data as a String, for use as XML element text or an XML attribute value.
 void setConfiguration(java.util.Map configuration)
           
 
Methods inherited from class com.openharbor.beck.marshal.DefaultMarshaller
getXML, getXMLSource, marshal, marshalMember, writeAsElement, writeNull, writeSimply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QNameMarshaller

public QNameMarshaller()
Method Detail

getConfiguration

public java.util.Map getConfiguration()
Specified by:
getConfiguration in interface Configurable

setConfiguration

public void setConfiguration(java.util.Map configuration)
Specified by:
setConfiguration in interface Configurable

getText

public java.lang.String getText(java.lang.Object parent,
                                Getter getter,
                                java.lang.Object source,
                                XMLWriter out)
                         throws java.io.IOException
Description copied from interface: Marshaller
Copy data as a String, for use as XML element text or an XML attribute value.

Specified by:
getText in interface Marshaller
Overrides:
getText in class DefaultMarshaller
Throws:
java.io.IOException