org.beanio.parser.xml
Class RecordMarshaller
java.lang.Object
   org.beanio.parser.xml.Marshaller
org.beanio.parser.xml.Marshaller
       org.beanio.parser.xml.RecordMarshaller
org.beanio.parser.xml.RecordMarshaller
- public class RecordMarshaller 
- extends Marshaller
A Marshaller implementation for marshaling record XML nodes.
- Since:
- 1.1
- Author:
- Kevin Seim
 
 
 
 
| Methods inherited from class org.beanio.parser.xml.Marshaller | 
| addChild, getCount, getFirstChild, getKey, getNextSibling, getNodeDefinition, getParent, isMaxOccursReached, removeAllChildren, restoreState, updateState | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RecordMarshaller
public RecordMarshaller(Marshaller parent,
                        XmlRecordDefinition definition)
- Constructs a new RecordMarshaller.
 
- Parameters:
- parent-
- definition-
 
reset
public void reset()
- Description copied from class: Marshaller
- Resets the occurrences of this node and/or its children.
 
- 
- Specified by:
- resetin class- Marshaller
 
- 
 
createHierarchy
public Node createHierarchy(Document document)
- Description copied from class: Marshaller
- Recursively creates the XML hierarchy of group nodes.
 
- 
- Specified by:
- createHierarchyin class- Marshaller
 
- 
- Parameters:
- document- the document object model to append
- Returns:
- the parent document node
 
write
public boolean write(RecordWriter out,
                     String recordName,
                     Object bean)
              throws IOException
- Description copied from class: Marshaller
- Marshals this node to a RecordWriter.
 
- 
- Specified by:
- writein class- Marshaller
 
- 
- Parameters:
- out- the RecordWriter to write to
- recordName- the name of the record to marshal (may be null if unknown)
- bean- the record bean to marshal
- Returns:
- true if the bean was marshal by this node or one of its children, 
   false otherwise
- Throws:
- IOException- if an I/O error is thrown by the RecordWriter
 
Copyright © 2010-2012 Kevin Seim