public static class NamePathMapper.Default extends java.lang.Object implements NamePathMapper
NamePathMapper.Default
DEFAULT
Constructor and Description |
---|
Default() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getJcrName(java.lang.String oakName)
Returns the JCR name for the given Oak name.
|
java.lang.String |
getJcrPath(java.lang.String oakPath)
Returns the JCR path for the given Oak path.
|
java.lang.String |
getOakName(java.lang.String jcrName)
Returns the Oak name for the specified JCR name.
|
java.lang.String |
getOakNameOrNull(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. |
java.lang.String |
getOakPath(java.lang.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. |
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.
|
public java.lang.String getOakNameOrNull(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
jcrName
- JCR namenull
public java.lang.String getOakName(java.lang.String jcrName) throws RepositoryException
NameMapper
NameMapper.getOakNameOrNull(String)
this method will throw a RepositoryException
if the JCR name is invalid and cannot be resolved.getOakName
in interface NameMapper
jcrName
- The JCR name to be converted.RepositoryException
- If the JCR name cannot be resolved.public java.util.Map<java.lang.String,java.lang.String> getSessionLocalMappings()
NameMapper
getSessionLocalMappings
in interface NameMapper
public java.lang.String getJcrName(java.lang.String oakName)
NameMapper
getJcrName
in interface NameMapper
oakName
- Oak namepublic java.lang.String getOakPath(java.lang.String jcrPath)
PathMapper
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.getOakPath
in interface PathMapper
jcrPath
- JCR pathnull
public java.lang.String getJcrPath(java.lang.String oakPath)
PathMapper
getJcrPath
in interface PathMapper
oakPath
- Oak path"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"