com.openharbor.beck.marshal
Class EnumerationMarshaller

java.lang.Object
  extended bycom.openharbor.beck.marshal.DefaultMarshaller
      extended bycom.openharbor.beck.marshal.EnumerationMarshaller
All Implemented Interfaces:
Marshaller

public class EnumerationMarshaller
extends DefaultMarshaller

Marshals an enumeration that has a getValue method.


Field Summary
protected static java.lang.Class[] NO_PARAMETERS
           
 
Fields inherited from class com.openharbor.beck.marshal.DefaultMarshaller
log
 
Constructor Summary
EnumerationMarshaller()
           
 
Method Summary
 java.lang.String getText(java.lang.Object parent, Getter source, java.lang.Object child, XMLWriter out)
          Copy data as a String, for use as XML element text or an XML attribute value.
 
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
 

Field Detail

NO_PARAMETERS

protected static final java.lang.Class[] NO_PARAMETERS
Constructor Detail

EnumerationMarshaller

public EnumerationMarshaller()
Method Detail

getText

public java.lang.String getText(java.lang.Object parent,
                                Getter source,
                                java.lang.Object child,
                                XMLWriter out)
                         throws java.lang.Exception
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.lang.Exception