Interface DynamicNamespacePrefixMapper

All Superinterfaces:
DebugDumpable
All Known Implementing Classes:
GlobalDynamicNamespacePrefixMapper

public interface DynamicNamespacePrefixMapper extends DebugDumpable
Maps namespaces to preferred prefixes. Should be used through the code to avoid generation of prefixes.
Author:
Igor Farinic, Radovan Semancik
See Also:
  • MID-349 TODO consider removal from the Prism API
  • Method Details

    • registerPrefix

      void registerPrefix(String namespace, String prefix, boolean defaultNamespace)
    • registerPrefixLocal

      void registerPrefixLocal(String namespace, String prefix)
    • getPrefix

      String getPrefix(String namespace)
    • setQNamePrefix

      QName setQNamePrefix(QName qname)
    • setQNamePrefixExplicit

      QName setQNamePrefixExplicit(QName qname)
      Makes sure that there is explicit prefix and not a default namespace prefix.
    • clone

    • addDeclaredByDefault

      void addDeclaredByDefault(String prefix)
    • getNamespacesDeclaredByDefault

      Map<String,String> getNamespacesDeclaredByDefault()
    • containsPrefix

      boolean containsPrefix(String prefix)