Class NameUtil
- 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:
Name
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull String
getExpandedNameString(@NotNull String name)
UsegetExpandedNameString(String, String)
to get the expanded form of a name with a namespace.static @NotNull String
getExpandedNameString(@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 Detail
-
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:
- Expanded Form
-
getExpandedNameString
@NotNull public static @NotNull String getExpandedNameString(@NotNull @NotNull String name)
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:
- Expanded Form
-
-