Class XmlBeanPropertyMeta


Metadata on bean properties specific to the XML serializers and parsers pulled from the @Xml annotation on the bean property.
See Also:
  • Field Details

  • Constructor Details

    • XmlBeanPropertyMeta

      Constructor.
      Parameters:
      bpm - The metadata of the bean property of this additional metadata.
      mp - XML metadata provider (for finding information about other artifacts).
  • Method Details

    • getNamespace

      Returns the XML namespace associated with this bean property.

      Namespace is determined in the following order of @Xml(prefix) annotation:

      1. Bean property field.
      2. Bean getter.
      3. Bean setter.
      4. Bean class.
      5. Bean package.
      6. Bean superclasses.
      7. Bean superclass packages.
      8. Bean interfaces.
      9. Bean interface packages.
      Returns:
      The namespace associated with this bean property, or null if no namespace is associated with it.
    • getXmlFormat

      Returns the XML format of this property from the Xml.format() annotation on this bean property.
      Returns:
      The XML format, or XmlFormat.DEFAULT if annotation not specified.
    • getChildName

      public String getChildName()
      Returns the child element of this property from the Xml.childName() annotation on this bean property.
      Returns:
      The child element, or null if annotation not specified.