Class XMLInfo.Builder

  • Enclosing class:
    XMLInfo

    public static class XMLInfo.Builder
    extends Object
    Provides a builder for XML info.
    • Constructor Detail

      • Builder

        public Builder()
        Creates a new empty builder.
    • Method Detail

      • uri

        public XMLInfo.Builder uri​(String value)
        Sets the uri.
        Parameters:
        value - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
        Returns:
        returns this builder
      • localName

        public XMLInfo.Builder localName​(String value)
        Sets the local name.
        Parameters:
        value - The local name (without prefix), or the empty string if Namespace processing is not being performed.
        Returns:
        returns this builder
      • qName

        public XMLInfo.Builder qName​(String value)
        Sets the qualified name.
        Parameters:
        value - The qualified name (with prefix), or the empty string if qualified names are not available.
        Returns:
        returns this builder
      • attributes

        public XMLInfo.Builder attributes​(Attributes value)
        Sets the attributes.
        Parameters:
        value - The attributes attached to the element.
        Returns:
        returns this builder
      • publicId

        public XMLInfo.Builder publicId​(String value)
        Sets the public identifier of the DTD declaration.
        Parameters:
        value - The public identifier, or null if none is available.
        Returns:
        returns this builder
      • systemId

        public XMLInfo.Builder systemId​(String value)
        Sets the system identifier of the DTD declaration.
        Parameters:
        value - The system identifier provided in the XML document, or null if none is available.
        Returns:
        returns this builder
      • build

        public XMLInfo build()
        Creates a new XMLInfo instance using the current state of the builder.
        Returns:
        returns a new XMLInfo instance