Class NameUtil
java.lang.Object
org.apache.jackrabbit.vault.validation.spi.util.NameUtil
Utility methods to generate JCR names in the Expanded Form.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StringgetExpandedNameString(@NotNull String name) UsegetExpandedNameString(String, String)to get the expanded form of a name with a namespace.static @NotNull StringgetExpandedNameString(@NotNull String namespaceURI, @NotNull String localName) UsegetExpandedNameString(String)to get the expanded form of a name with no specific namespace (using the default namespace).
-
Method Details
-
getExpandedNameString
@NotNull public static @NotNull String getExpandedNameString(@NotNull @NotNull String namespaceURI, @NotNull @NotNull String localName) UsegetExpandedNameString(String)to get the expanded form of a name with no specific namespace (using the default namespace).- Parameters:
namespaceURI- the namespace URIlocalName- 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
UsegetExpandedNameString(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:
-