public class LocalNameMapper extends GlobalNameMapper
| Constructor and Description |
|---|
LocalNameMapper(Map<String,String> global,
Map<String,String> local) |
LocalNameMapper(Root root,
Map<String,String> local) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull String |
getJcrName(@NotNull String oakName)
Returns the JCR name for the given Oak name.
|
@Nullable 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. |
@NotNull Map<String,String> |
getSessionLocalMappings()
Returns the local namespace prefix mappings, or an empty map if
there aren't any local mappings.
|
getOakName, onSessionRefresh@NotNull public @NotNull Map<String,String> getSessionLocalMappings()
NameMappergetSessionLocalMappings in interface NameMappergetSessionLocalMappings in class GlobalNameMapper@NotNull public @NotNull String getJcrName(@NotNull @NotNull String oakName)
NameMappergetJcrName in interface NameMappergetJcrName in class GlobalNameMapperoakName - Oak name@Nullable public @Nullable 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 NameMappergetOakNameOrNull in class GlobalNameMapperjcrName - JCR namenullCopyright © 2010 - 2020 Adobe. All Rights Reserved