Annotation Type Group


  • @Retention(RUNTIME)
    @Target({TYPE,FIELD,METHOD})
    public @interface Group
    Group annotation for classes, and for fields and methods in a class annotated by a parent Group.
    Since:
    2.1.0
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?> collection
      The collection type for repeating group bound to a parent group class, if it cannot be determined from the annotated field or method declaration.
      java.lang.String getter
      The getter method on its parent group class.
      int maxOccurs
      The maximum occurrences of the record.
      int minOccurs
      The minimum occurrences of the record
      java.lang.String name
      The group name.
      int order
      The order of this record within its parent group.
      java.lang.String setter
      The setter method on its parent group class.
      java.lang.Class<?> type
      The group type, if it cannot be determined from the annotated field or method declaration.
      java.lang.String value
      The name of child component to use for the value of this record in lieu of a type.
      java.lang.String xmlName
      The XML attribute or element name.
      java.lang.String xmlNamespace
      The XML namespace URI of this record.
      java.lang.String xmlPrefix
      The XML namespace prefix of this record.
      XmlType xmlType
      The XML type of this record.
    • Element Detail

      • name

        java.lang.String name
        The group name.
        Returns:
        the record name
        Default:
        ""
      • getter

        java.lang.String getter
        The getter method on its parent group class.
        Returns:
        the method name
        Default:
        ""
      • setter

        java.lang.String setter
        The setter method on its parent group class.
        Returns:
        the method name
        Default:
        ""
      • type

        java.lang.Class<?> type
        The group type, if it cannot be determined from the annotated field or method declaration.
        Returns:
        the class type
        Default:
        java.lang.Void.class
      • collection

        java.lang.Class<?> collection
        The collection type for repeating group bound to a parent group class, if it cannot be determined from the annotated field or method declaration.
        Returns:
        the collection type
        Default:
        java.lang.Void.class
      • minOccurs

        int minOccurs
        The minimum occurrences of the record
        Returns:
        the minimum occurrences
        Default:
        -2147483648
      • maxOccurs

        int maxOccurs
        The maximum occurrences of the record.
        Returns:
        the maximum occurrences
        Default:
        -2147483648
      • order

        int order
        The order of this record within its parent group.
        Returns:
        the order
        Default:
        -2147483648
      • value

        java.lang.String value
        The name of child component to use for the value of this record in lieu of a type.
        Returns:
        the component name of the value
        Default:
        ""
      • xmlType

        XmlType xmlType
        The XML type of this record.
        Returns:
        the XmlType
        Default:
        org.beanio.builder.XmlType.DEFAULT
      • xmlName

        java.lang.String xmlName
        The XML attribute or element name.
        Returns:
        the XML name
        Default:
        "{undefined}"
      • xmlPrefix

        java.lang.String xmlPrefix
        The XML namespace prefix of this record.
        Returns:
        the namespace prefix
        Default:
        "{undefined}"
      • xmlNamespace

        java.lang.String xmlNamespace
        The XML namespace URI of this record.
        Returns:
        the namespace URI
        Default:
        "{undefined}"