Class XmlClassMeta


public class XmlClassMeta extends ExtendedClassMeta
Metadata on classes specific to the XML serializers and parsers pulled from the @Xml annotation on the class.
See Also:
  • Constructor Details

    • XmlClassMeta

      Constructor.
      Parameters:
      cm - The class that this annotation is defined on.
      mp - XML metadata provider (for finding information about other artifacts).
  • Method Details

    • getFormat

      protected XmlFormat getFormat()
      Returns the @Xml(format) annotation defined on the class.
      Returns:
      The value of the annotation, or XmlFormat.DEFAULT if not specified.
    • getChildName

      protected String getChildName()
      Returns the @Xml(childName) annotation defined on the class.
      Returns:
      The value of the annotation, or null if not specified.
    • getNamespace

      Returns the XML namespace associated with this class.

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

      1. Class.
      2. Package.
      3. Superclasses.
      4. Superclass packages.
      5. Interfaces.
      6. Interface packages.
      Returns:
      The namespace associated with this class, or null if no namespace is associated with it.