public class DefaultNamePathResolver extends java.lang.Object implements NamePathResolver
DefaultNamePathResolver...| Constructor and Description |
|---|
DefaultNamePathResolver(NameResolver nResolver,
PathResolver pResolver) |
DefaultNamePathResolver(NamespaceRegistry registry) |
DefaultNamePathResolver(NamespaceResolver nsResolver) |
DefaultNamePathResolver(NamespaceResolver nsResolver,
boolean enableCaching) |
DefaultNamePathResolver(NamespaceResolver nsResolver,
IdentifierResolver idResolver,
boolean enableCaching) |
DefaultNamePathResolver(Session session) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getJCRName(Name name)
Returns the qualified JCR name String for the given
Name object. |
java.lang.String |
getJCRPath(Path path)
Returns the given JCR path string for the given path object.
|
Name |
getQName(java.lang.String name)
Returns the
Name for the given JCR name String. |
Path |
getQPath(java.lang.String path)
Returns the path object for the given JCR path string.
|
Path |
getQPath(java.lang.String path,
boolean normalizeIdentifier)
Returns the path object for the given JCR path string.
|
public DefaultNamePathResolver(NamespaceResolver nsResolver)
public DefaultNamePathResolver(Session session)
public DefaultNamePathResolver(NamespaceRegistry registry)
public DefaultNamePathResolver(NamespaceResolver nsResolver, boolean enableCaching)
public DefaultNamePathResolver(NamespaceResolver nsResolver, IdentifierResolver idResolver, boolean enableCaching)
public DefaultNamePathResolver(NameResolver nResolver, PathResolver pResolver)
public Name getQName(java.lang.String name) throws IllegalNameException, NamespaceException
NameResolverName for the given JCR name String.getQName in interface NameResolvername - A JCR name String.Name object.IllegalNameException - if the JCR name format is invalidNamespaceException - if the namespace prefix can not be resolvedpublic java.lang.String getJCRName(Name name) throws NamespaceException
NameResolverName object.getJCRName in interface NameResolvername - A Name object.prefix:localName or
localName in case of the empty namespace.NamespaceException - if the namespace URI can not be resolvedpublic Path getQPath(java.lang.String path) throws MalformedPathException, IllegalNameException, NamespaceException
PathResolvergetQPath in interface PathResolverpath - prefixed JCR pathPath object.MalformedPathException - if the JCR path format is invalid.IllegalNameException - if any of the JCR names contained in the path are invalid.NamespaceException - if a namespace prefix can not be resolved.public Path getQPath(java.lang.String path, boolean normalizeIdentifier) throws MalformedPathException, IllegalNameException, NamespaceException
PathResolvergetQPath in interface PathResolverpath - prefixed JCR pathPath object.MalformedPathException - if the JCR path format is invalid.IllegalNameException - if any of the JCR names contained in the path are invalid.NamespaceException - if a namespace prefix can not be resolved.public java.lang.String getJCRPath(Path path) throws NamespaceException
PathResolvergetJCRPath in interface PathResolverpath - a Path object.NamespaceException - if a namespace URI can not be resolvedCopyright © 2010 - 2023 Adobe. All Rights Reserved