Class NamespaceUtils


  • public final class NamespaceUtils
    extends Object
    Various namespaces utilities.
    Since:
    8.0M1
    Version:
    $Id: 57a728023a15b7fd8fcaf18da065555b58112c84 $
    • Method Detail

      • getPrefix

        public static String getPrefix​(String namespaceString)
        Extract prefix of the id used to find custom factory.
        Parameters:
        namespaceString - the namespace as a String
        Returns:
        the type of the namespace or null if none is provided
      • toNamespace

        public static Namespace toNamespace​(String namespace)
        Parameters:
        namespace - the String namespace to parse
        Returns:
        the parsed Namespace or null if null is passed
        Since:
        9.0RC1