public class LocalNameMapper extends GlobalNameMapper
Constructor and Description |
---|
LocalNameMapper(java.util.Map<java.lang.String,java.lang.String> global,
java.util.Map<java.lang.String,java.lang.String> local) |
LocalNameMapper(Root root,
java.util.Map<java.lang.String,java.lang.String> local) |
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.
|
@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.
|
getOakName, onSessionRefresh
public LocalNameMapper(Root root, java.util.Map<java.lang.String,java.lang.String> local)
public LocalNameMapper(java.util.Map<java.lang.String,java.lang.String> global, java.util.Map<java.lang.String,java.lang.String> local)
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getSessionLocalMappings()
NameMapper
getSessionLocalMappings
in interface NameMapper
getSessionLocalMappings
in class GlobalNameMapper
@NotNull public @NotNull java.lang.String getJcrName(@NotNull @NotNull java.lang.String oakName)
NameMapper
getJcrName
in interface NameMapper
getJcrName
in class GlobalNameMapper
oakName
- Oak name@Nullable public @Nullable java.lang.String getOakNameOrNull(@NotNull @NotNull java.lang.String jcrName)
NameMapper
null
if no
such mapping exists because the given JCR name contains an unknown
namespace URI or prefix, or is otherwise invalid.getOakNameOrNull
in interface NameMapper
getOakNameOrNull
in class GlobalNameMapper
jcrName
- JCR namenull
Copyright © 2010 - 2020 Adobe. All Rights Reserved