Interface XmlMetadataAnnotations

All Known Implementing Classes:
DefaultXmlMetadataAnnotations

@NoImplement public interface XmlMetadataAnnotations
Stores the metadata annotations from the XML parser so they are available when building the actual objects of the application.
  • Field Details

  • Method Details

    • appendElementStart

      void appendElementStart(String qName, Map<String,String> atts)
      Builds the opening tag of the xml element.
      Parameters:
      qName - the qualified name of the element
      atts - the attributes of the element, with the qualified name as key
    • appendElementBody

      void appendElementBody(String elementBody)
      Adds the body of the xml tag.
      Parameters:
      elementBody - the body content to be added
    • appendElementEnd

      void appendElementEnd(String qName)
      Builds the closing tag of the xml element.
      Parameters:
      qName - the qualified name of the element
    • getElementString

      String getElementString()
      Returns:
      the reconstruction of the declaration of the element in its source xml file.

      Note that the order of the elements may be different, and any implicit attributes with default values will be included.

    • isSelfClosing

      boolean isSelfClosing()
      Returns:
      Whether the element was written as in <element />. In such case, the opening and closing tag boundaries will be the same.
    • getOpeningTagBoundaries

      XmlMetadataAnnotations.TagBoundaries getOpeningTagBoundaries()
      Returns:
      the boundaries of the opening tag on the source xml file.
    • getClosingTagBoundaries

      XmlMetadataAnnotations.TagBoundaries getClosingTagBoundaries()
      Returns:
      the boundaries of the closing tag on the source xml file.