@ProviderType public interface NameMapper
Modifier and Type | Method and Description |
---|---|
@NotNull java.lang.String |
getJcrName(@NotNull java.lang.String oakName)
Returns the JCR name for the given Oak name.
|
@NotNull java.lang.String |
getOakName(@NotNull java.lang.String jcrName)
Returns the Oak name for the specified JCR name.
|
@Nullable java.lang.String |
getOakNameOrNull(@NotNull java.lang.String jcrName)
Returns the Oak name for the given JCR name, or
null if no
such mapping exists because the given JCR name contains an unknown
namespace URI or prefix, or is otherwise invalid. |
@NotNull java.util.Map<java.lang.String,java.lang.String> |
getSessionLocalMappings()
Returns the local namespace prefix mappings, or an empty map if
there aren't any local mappings.
|
@Nullable @Nullable java.lang.String getOakNameOrNull(@NotNull @NotNull java.lang.String jcrName)
null
if no
such mapping exists because the given JCR name contains an unknown
namespace URI or prefix, or is otherwise invalid.jcrName
- JCR namenull
@NotNull @NotNull java.lang.String getOakName(@NotNull @NotNull java.lang.String jcrName) throws RepositoryException
getOakNameOrNull(String)
this method will throw a RepositoryException
if the JCR name is invalid and cannot be resolved.jcrName
- The JCR name to be converted.RepositoryException
- If the JCR name cannot be resolved.@NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> getSessionLocalMappings()
@NotNull @NotNull java.lang.String getJcrName(@NotNull @NotNull java.lang.String oakName)
oakName
- Oak nameCopyright © 2010 - 2020 Adobe. All Rights Reserved