Class Namespaces

  • public class Namespaces
    extends Object
    A utility class to perform operations on Namespaces.
    Peter Ansell
    • Method Detail

      • wrap

        public static Map<String,​String> wrap​(Set<Namespace> namespaces)
        Wraps the given Set of Namespaces as a Map of prefix to URI mappings, so that it can be used where a Map is required by the API.
        NOTE: The Map returned by this method is not synchronized.
        namespaces - The Set to wrap.
        A Map of prefix to URI mappings which is backed by the given Set of Namespaces.