Package org.somda.sdc.common.util
Class PrefixNamespaceMappingParser
java.lang.Object
org.somda.sdc.common.util.PrefixNamespaceMappingParser
Utility to parse prefix-to-namespace string representation used by configuration values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA prefix-namespace pair extracted fromparse(String). -
Method Summary
Modifier and TypeMethodDescriptionParses the given prefix-to-namespace mapping string.
-
Method Details
-
parse
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.
-