Class Namespaces

  • All Implemented Interfaces:
    NamespaceConstants

    public class Namespaces
    extends java.lang.Object
    implements NamespaceConstants
    Internal static utility class for managing the persisted namespace registry.
    • Method Detail

      • setupNamespaces

        public static void setupNamespaces​(NodeBuilder system)
      • addCustomMapping

        public static java.lang.String addCustomMapping​(NodeBuilder namespaces,
                                                        java.lang.String uri,
                                                        java.lang.String prefixHint)
      • buildIndexNode

        public static void buildIndexNode​(NodeBuilder namespaces)
      • getNamespaceMap

        public static java.util.Map<java.lang.String,​java.lang.String> getNamespaceMap​(Tree root)
      • getNamespacePrefix

        public static java.lang.String getNamespacePrefix​(Tree root,
                                                          java.lang.String uri)
      • getNamespaceURI

        public static java.lang.String getNamespaceURI​(Tree root,
                                                       java.lang.String prefix)
      • encodeUri

        public static java.lang.String encodeUri​(java.lang.String uri)
        encodes the uri value to be used as a property
        Parameters:
        uri -
        Returns:
        encoded uri
      • isValidPrefix

        public static boolean isValidPrefix​(java.lang.String prefix)
      • isValidLocalName

        public static boolean isValidLocalName​(java.lang.String local)