Class PrefixNamespaceMappingParser

  • All Implemented Interfaces:

    
    public class PrefixNamespaceMappingParser
    
                        

    Utility to parse prefix-to-namespace string representation used by configuration values.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Map<String, PrefixNamespaceMappingParser.PrefixNamespacePair> parse(String prefixNamespaces) Parses the given prefix-to-namespace mapping string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • parse

         Map<String, PrefixNamespaceMappingParser.PrefixNamespacePair> parse(String prefixNamespaces)

        Parses the given prefix-to-namespace mapping string.

        Format: namespaces and their prefixes will be parsed as key-value pairs, separated by curly parenthesis.

        Example: {prefix1:http://namespace-uri1}{prefix2:http://namespace-uri2}{prefix3:http://namespace-uri3}

        Parameters:
        prefixNamespaces - the string to parse.
        Returns:

        a map of namespace keys to prefix-namespace elements.