Interface NamespacePrefixMap

All Superinterfaces:
Parser.NamespaceMap
All Known Subinterfaces:
SheetContext
All Known Implementing Classes:
AbstractCSSStyleSheet, BaseCSSStyleSheet, BaseDocumentCSSStyleSheet, DOMCSSStyleSheet, DOMDocumentCSSStyleSheet

public interface NamespacePrefixMap extends Parser.NamespaceMap
Maps a namespace URI to a prefix, useful for selector serialization.
  • Method Details

    • hasDefaultNamespace

      boolean hasDefaultNamespace()
      Has the style sheet a default namespace?
      Returns:
      true if it has a default namespace.
    • getNamespacePrefix

      String getNamespacePrefix(String namespaceURI)
      Get the namespace prefix corresponding to the given URI.
      Parameters:
      namespaceURI - the namespace URI.
      Returns:
      the prefix.
    • registerNamespacePrefix

      void registerNamespacePrefix(String prefix, String namespaceURI)
      Register a namespace prefix - URI pair.
      Parameters:
      prefix - the namespace prefix.
      namespaceURI - the namespace URI.