Class Namespaces


  • public class Namespaces
    extends Object
    A utility class to perform operations on Namespaces.
    Author:
    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.
        Parameters:
        namespaces - The Set to wrap.
        Returns:
        A Map of prefix to URI mappings which is backed by the given Set of Namespaces.