de.msponer.android.yac.xml
Class WorkItemElementEntrySerializer

java.lang.Object
  extended by de.msponer.android.yac.xml.WorkItemElementEntrySerializer

public class WorkItemElementEntrySerializer
extends Object

Serializer for work item element entries. Takes the element entry root, visits all child elements and generates XML data.

Author:
msponer

Constructor Summary
protected WorkItemElementEntrySerializer()
          Hidden constructor.
 
Method Summary
static org.jdom.Element serialize(WorkItemElementEntry workItemElementEntryRoot)
          Starts the serialize process.
static void traversal(org.jdom.Element father, List<WorkItemElementEntry> childList)
          Visits the given list of entries and adds the content to the XML data element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkItemElementEntrySerializer

protected WorkItemElementEntrySerializer()
Hidden constructor.

Method Detail

serialize

public static org.jdom.Element serialize(WorkItemElementEntry workItemElementEntryRoot)
Starts the serialize process.

Parameters:
workItemElementEntryRoot - The work item element entry root.
Returns:
The resulting XML data element.

traversal

public static void traversal(org.jdom.Element father,
                             List<WorkItemElementEntry> childList)
Visits the given list of entries and adds the content to the XML data element. If child elements are present, the method will be invoked recursively with the sub-entry list.

Parameters:
father - The XML father element.
childList - The entry list.