Interface XMLElement.Builder<RC,WC>

Type Parameters:
RC - the reader context
WC - the writer content
All Superinterfaces:
XMLContainer.Builder<RC,WC,XMLElement<RC,WC>,XMLElement.Builder<RC,WC>>, XMLParticle.Builder<RC,WC,XMLElement<RC,WC>,XMLElement.Builder<RC,WC>>
All Known Implementing Classes:
XMLElement.DefaultBuilder
Enclosing interface:
XMLElement<RC,WC>

public static interface XMLElement.Builder<RC,WC> extends XMLContainer.Builder<RC,WC,XMLElement<RC,WC>,XMLElement.Builder<RC,WC>>
Builder of an XML element.
  • Method Details

    • addAttribute

      XMLElement.Builder<RC,WC> addAttribute(XMLAttribute<RC,WC> attribute)
      Adds readers and writer for the attributes of this element.
      Parameters:
      readers - a map of readers per qualified name
      writer - a writer of the attributes of this element
      Returns:
      a reference to this builder
    • addAttributes

      default XMLElement.Builder<RC,WC> addAttributes(Iterable<? extends XMLAttribute<RC,WC>> attributes)
      Adds readers and writer for the attributes of this element.
      Parameters:
      readers - a map of readers per qualified name
      writer - a writer of the attributes of this element
      Returns:
      a reference to this builder