Annotation Interface XNodeList


@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface XNodeList
Author:
Bogdan Stefanescu
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The type of the objects in this collection.
    The type of a collection object.
    A path expression specifying the XML node to bind to.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether the container should be set to null when not specified in the XML file.
    boolean
    Whether to trim text content for element nodes.
  • Element Details

    • value

      String value
      A path expression specifying the XML node to bind to.
      Returns:
      the node xpath
    • type

      Class<?> type
      The type of a collection object.
      Returns:
      the type of items
    • componentType

      Class<?> componentType
      The type of the objects in this collection.
      Returns:
      the type of items
    • trim

      boolean trim
      Whether to trim text content for element nodes.
      Default:
      true
    • nullByDefault

      boolean nullByDefault
      Whether the container should be set to null when not specified in the XML file.
      Default:
      false