Class PrefixNamespaceMappingParser


  • public class PrefixNamespaceMappingParser
    extends Object
    Utility to parse prefix-to-namespace string representation used by configuration values.
    • Method Detail

      • parse

        public 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.