java.lang.Object
org.apache.jackrabbit.vault.validation.spi.util.NameUtil

public class NameUtil extends Object
Utility methods to generate JCR names in the Expanded Form.
See Also:
  • Method Details

    • 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:
    • 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: