Annotation Type XmlElementNillable


  • @Target({TYPE,PACKAGE})
    @Retention(RUNTIME)
    public @interface XmlElementNillable
    Purpose: Provide a means of setting nillable on type and package level, which is not possible with standard XmlElement annotation.

    Type level annotation overrides package level annotation.

    Standard XmlElement with nillable attribute overrides the value of XmlElementNillable annotation.

    See Also:
    XmlElement
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean nillable
      (Optional) Customize the element declaration to be nillable.
    • Element Detail

      • nillable

        boolean nillable
        (Optional) Customize the element declaration to be nillable. If nillable() is true, then the JavaBean property is mapped to a XML Schema nillable element declaration.
        Default:
        true