Class XMLDocumentIdentifier

java.lang.Object
com.thaiopensource.resolver.Identifier
com.thaiopensource.resolver.xml.XMLDocumentIdentifier

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

  • Constructor Details

    • XMLDocumentIdentifier

      public XMLDocumentIdentifier(String href, String base, String namespaceUri)
      Parameters:
      href -
      base -
      namespaceUri - the expected namespace URI of the root element of the XML document
  • Method Details

    • getNamespaceUri

      public 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 String getMediaType()
      Description copied from class: Identifier
      Return a canonical media type for what's expected. Never null.
      Overrides:
      getMediaType in class Identifier