Annotation Type JacksonXmlElementWrapper


  • @Target({ANNOTATION_TYPE,FIELD,METHOD,PARAMETER})
    @Retention(RUNTIME)
    public @interface JacksonXmlElementWrapper
    Annotation that is similar to JAXB jakarta.xml.bind.annotation.XmlElementWrapper, to indicate wrapper element to use (if any) for Collection types (arrays, Collection). If defined, a separate container (wrapper) element is used; if not, entries are written without wrapping.
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String USE_PROPERTY_NAME
      Marker value (empty String) that denotes that the underlying property name should also be used as the wrapper name, effectively "doubling" start and end elements.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String localName  
      java.lang.String namespace  
      boolean useWrapping
      Optional property that can be used to explicitly disable wrapping, usually via mix-ins, or when using AnnotationIntrospector pairs.
    • Field Detail

      • USE_PROPERTY_NAME

        static final java.lang.String USE_PROPERTY_NAME
        Marker value (empty String) that denotes that the underlying property name should also be used as the wrapper name, effectively "doubling" start and end elements.
        Since:
        2.1
    • Element Detail

      • namespace

        java.lang.String namespace
        Default:
        ""
      • localName

        java.lang.String localName
        Default:
        ""
      • useWrapping

        boolean useWrapping
        Optional property that can be used to explicitly disable wrapping, usually via mix-ins, or when using AnnotationIntrospector pairs.
        Since:
        2.1
        Default:
        true