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 |
---|---|
String |
getJcrName(String oakName)
Returns the JCR name for the given Oak name.
|
String |
getOakNameOrNull(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. |
Map<String,String> |
getSessionLocalMappings()
Returns the local namespace prefix mappings, or an empty map if
there aren't any local mappings.
|
getOakName
public Map<String,String> getSessionLocalMappings()
NameMapper
getSessionLocalMappings
in interface NameMapper
getSessionLocalMappings
in class GlobalNameMapper
public String getJcrName(String oakName)
NameMapper
getJcrName
in interface NameMapper
getJcrName
in class GlobalNameMapper
oakName
- Oak namepublic String getOakNameOrNull(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 © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"