public static class NamePathMapper.Default extends Object implements NamePathMapper
NamePathMapper.DefaultDEFAULT| Constructor and Description |
|---|
Default() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getJcrName(@NotNull String oakName)
Returns the JCR name for the given Oak name.
|
@NotNull String |
getJcrPath(String oakPath)
Returns the JCR path for the given Oak path.
|
@NotNull String |
getOakName(@NotNull String jcrName)
Returns the Oak name for the specified JCR name.
|
String |
getOakNameOrNull(@NotNull 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. |
String |
getOakPath(String jcrPath)
Returns the Oak path for the given JCR path, or
null if no
such mapping exists because the given JCR path contains a name element
with an unknown namespace URI or prefix, or is otherwise invalid. |
@NotNull Map<String,String> |
getSessionLocalMappings()
Returns the local namespace prefix mappings, or an empty map if
there aren't any local mappings.
|
public String getOakNameOrNull(@NotNull @NotNull String jcrName)
NameMappernull if no
such mapping exists because the given JCR name contains an unknown
namespace URI or prefix, or is otherwise invalid.getOakNameOrNull in interface NameMapperjcrName - JCR namenull@NotNull public @NotNull String getOakName(@NotNull @NotNull String jcrName) throws RepositoryException
NameMapperNameMapper.getOakNameOrNull(String) this method will throw a RepositoryException
if the JCR name is invalid and cannot be resolved.getOakName in interface NameMapperjcrName - The JCR name to be converted.RepositoryException - If the JCR name cannot be resolved.@NotNull public @NotNull Map<String,String> getSessionLocalMappings()
NameMappergetSessionLocalMappings in interface NameMapper@NotNull public @NotNull String getJcrName(@NotNull @NotNull String oakName)
NameMappergetJcrName in interface NameMapperoakName - Oak namepublic String getOakPath(String jcrPath)
PathMappernull if no
such mapping exists because the given JCR path contains a name element
with an unknown namespace URI or prefix, or is otherwise invalid.getOakPath in interface PathMapperjcrPath - JCR pathnull@NotNull public @NotNull String getJcrPath(String oakPath)
PathMappergetJcrPath in interface PathMapperoakPath - Oak pathCopyright © 2010 - 2020 Adobe. All Rights Reserved