Annotation Interface ExternalSchemaElement


@Retention(RUNTIME) @Documented @Target({METHOD,FIELD}) public @interface ExternalSchemaElement
Annotation to be used for JAXB property (field or method) annotated with @XmlAnyElement to highlight which actual elements do we expect (not to be enforced by JAXB, but by Camel itself).
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    In JAXB, when an element is annotated with @XmlAnyElement, the actual objects used are of Element class.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Names of external XML element we expect
    XSD namespace of XML elements expected
  • Element Details

    • documentElement

      String documentElement
      In JAXB, when an element is annotated with @XmlAnyElement, the actual objects used are of Element class. These elements should be part of wrapping Document and this parameter allows to specify this root element name (in namespace()).
      Returns:
    • names

      String[] names
      Names of external XML element we expect
      Returns:
      Default:
      {}
    • namespace

      String namespace
      XSD namespace of XML elements expected
      Returns:
      Default:
      ""