Interface Repeater

All Superinterfaces:
Converter
All Known Implementing Classes:
CompositeInlineList, CompositeInlineMap, CompositeListUnion, CompositeMapUnion, PrimitiveInlineList, TextList, Variable.Adapter

interface Repeater extends Converter
The Repeater interface is used to for converters that can repeat a read on a given element. This is typically used for inline lists and maps so that the elements can be mixed within the containing element. This ensures a more liberal means of writing the XML such that elements not grouped in a containing XML element can be declared throughout the document.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    read(InputNode node, Object value)
    The read method reads an object to a specific type from the provided node.

    Methods inherited from interface org.simpleframework.xml.core.Converter

    read, validate, write
  • Method Details

    • read

      Object read(InputNode node, Object value) throws Exception
      The read method reads an object to a specific type from the provided node. If the node provided is an attribute then the object must be a primitive such as a string, integer, boolean, or any of the other Java primitive types.
      Specified by:
      read in interface Converter
      Parameters:
      node - contains the details used to deserialize the object
      value - this is the value to read the objects in to
      Returns:
      a fully deserialized object will all its fields
      Throws:
      Exception - if a deserialized type cannot be instantiated