Class XMLInfo


  • public class XMLInfo
    extends Object
    Provides basic information about an XML-document.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  XMLInfo.Builder
      Provides a builder for XML info.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Attributes getAttributes()
      Gets the attributes attached to the element or null if the attributes has not been set.
      String getLocalName()
      Gets the local name (without prefix), or the empty string if Namespace processing is not being performed.
      String getPublicId()
      Gets the public identifier of the DTD declaration or null if the public identifier has not been set or if the document doesn't contain a public identifier.
      String getqName()
      Gets the qualified name (with prefix), or the empty string if qualified names are not available.
      String getSystemId()
      Gets the system identifier provided in the XML document or null if the system identifier has not been set or if the document doesn't contain a system identifier.
      String getUri()
      Gets the Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
    • Method Detail

      • getUri

        public String getUri()
        Gets the Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed. Or null, if the uri has not been set.
        Returns:
        returns the namespace uri, or null
      • getLocalName

        public String getLocalName()
        Gets the local name (without prefix), or the empty string if Namespace processing is not being performed. Or null, if the local name has not been set.
        Returns:
        returns the local name, or null
      • getqName

        public String getqName()
        Gets the qualified name (with prefix), or the empty string if qualified names are not available. Or null, if the qualified name has not been set.
        Returns:
        returns the qualified name, or null
      • getAttributes

        public Attributes getAttributes()
        Gets the attributes attached to the element or null if the attributes has not been set.
        Returns:
        returns the attributes, or null
      • getPublicId

        public String getPublicId()
        Gets the public identifier of the DTD declaration or null if the public identifier has not been set or if the document doesn't contain a public identifier.
        Returns:
        returns the public identifier, or null
      • getSystemId

        public String getSystemId()
        Gets the system identifier provided in the XML document or null if the system identifier has not been set or if the document doesn't contain a system identifier.
        Returns:
        returns the system identifier, or null