org.jibx.extras
Class FormattedCommentMapper

java.lang.Object
  extended byorg.jibx.extras.CommentMapper
      extended byorg.jibx.extras.FormattedCommentMapper
All Implemented Interfaces:
IMarshaller, IUnmarshaller

public class FormattedCommentMapper
extends CommentMapper

Formatted version of custom marshaller/unmarshaller for comments to strings. The difference from the basic comment mapper is that this one adds a blank line preceding the comment when marshalling.

Version:
1.0
Author:
Dennis M. Sosnoski

Constructor Summary
FormattedCommentMapper()
           
 
Method Summary
protected  void writeComment(java.lang.Object obj, IXMLWriter ixw)
          Write comment data to output.
 
Methods inherited from class org.jibx.extras.CommentMapper
isExtension, isPresent, marshal, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormattedCommentMapper

public FormattedCommentMapper()
Method Detail

writeComment

protected void writeComment(java.lang.Object obj,
                            IXMLWriter ixw)
                     throws java.io.IOException
Write comment data to output. This override just writes a blank line before calling the base class method to actually write the comment.

Overrides:
writeComment in class CommentMapper
Parameters:
obj - object to be written as text
ixw - XML writer for output document
Throws:
java.io.IOException - on error writing to output


Project Web Site