Class NameUtil

    • Method Detail

      • getExpandedNameString

        @NotNull
        public static @NotNull String getExpandedNameString​(@NotNull
                                                            @NotNull String namespaceURI,
                                                            @NotNull
                                                            @NotNull String localName)
        Use getExpandedNameString(String) to get the expanded form of a name with no specific namespace (using the default namespace).
        Parameters:
        namespaceURI - the namespace URI
        localName - the local name (without any namespace prefix)
        Returns:
        the expanded form of a JCR name consisting out of the given namespace URI and local name
        See Also:
        Expanded Form
      • getExpandedNameString

        @NotNull
        public static @NotNull String getExpandedNameString​(@NotNull
                                                            @NotNull String name)
        Use getExpandedNameString(String, String) to get the expanded form of a name with a namespace.
        Parameters:
        name - the name without any namespace prefix
        Returns:
        the expanded form of the given JCR name (without a specific namespace, i.e. using the default namespace)
        See Also:
        Expanded Form