public interface

DocumentWriter

implements HierarchicalStreamWriter
com.thoughtworks.xstream.io.xml.DocumentWriter
Known Indirect Subclasses

Class Overview

A generic interface for all HierarchicalStreamWriter implementations generating a DOM.

Summary

Public Methods
abstract List getTopLevelNodes()
Retrieve a List with the top elements.
[Expand]
Inherited Methods
From interface com.thoughtworks.xstream.io.HierarchicalStreamWriter

Public Methods

public abstract List getTopLevelNodes ()

Retrieve a List with the top elements. In the standard use case this list will only contain a single element. Additional elements can only occur, if startNode(String) of the implementing HierarchicalStreamWriter was called multiple times with an empty node stack. Such a situation occurs calling marshal(Object, HierarchicalStreamWriter) multiple times directly.

Returns
  • a List with top nodes