Class XMLDocumentIdentifier


  • public class XMLDocumentIdentifier
    extends Identifier
    An Identifier for an XML document.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MEDIA_TYPE  
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLDocumentIdentifier​(java.lang.String href, java.lang.String base, java.lang.String namespaceUri)  
    • Constructor Detail

      • XMLDocumentIdentifier

        public XMLDocumentIdentifier​(java.lang.String href,
                                     java.lang.String base,
                                     java.lang.String namespaceUri)
        Parameters:
        href -
        base -
        namespaceUri - the expected namespace URI of the root element of the XML document
    • Method Detail

      • getNamespaceUri

        public java.lang.String getNamespaceUri()
        Returns:
        the expected namespace name of root element; "" if no namespace is expected; null if no information is available about the expected namespace name.
      • getMediaType

        public java.lang.String getMediaType()
        Description copied from class: Identifier
        Return a canonical media type for what's expected. Never null.
        Overrides:
        getMediaType in class Identifier