Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.thoughtworks.xstream.io.xml
Interface DocumentWriter

All Superinterfaces:
  HierarchicalStreamWriter

All Known Implementing Classes:
  AbstractDocumentWriter, Dom4JWriter, DomWriter, JDomWriter, XomWriter, XppDomWriter

    public interface DocumentWriter

extends HierarchicalStreamWriter

A generic interface for all `HierarchicalStreamWriter` implementations generating a DOM.

Since:
  1.2.1
Author:
  Jörg Schaible

Method Summary
`List` | `getTopLevelNodes()` Retrieve a `List` with the top elements.

Methods inherited from interface com.thoughtworks.xstream.io.HierarchicalStreamWriter
`addAttribute, close, endNode, flush, setValue, startNode, underlyingWriter`

Method Detail

### getTopLevelNodes

    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 `HierarchicalStreamWriter.startNode(String)` of the implementing `HierarchicalStreamWriter` was called multiple times with an empty node stack. Such a situation occurs calling `XStream.marshal(Object, HierarchicalStreamWriter)` multiple times directly.

  Returns:
    a `List` with top nodes
  Since:
    1.2.1

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2008 XStream. All Rights Reserved.