Class DefaultNamePathResolver
java.lang.Object
org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver
- All Implemented Interfaces:
NamePathResolver,NameResolver,PathResolver
DefaultNamePathResolver...-
Constructor Summary
ConstructorsConstructorDescriptionDefaultNamePathResolver(NamespaceRegistry registry) DefaultNamePathResolver(Session session) DefaultNamePathResolver(NameResolver nResolver, PathResolver pResolver) DefaultNamePathResolver(NamespaceResolver nsResolver) DefaultNamePathResolver(NamespaceResolver nsResolver, boolean enableCaching) DefaultNamePathResolver(NamespaceResolver nsResolver, IdentifierResolver idResolver, boolean enableCaching) -
Method Summary
Modifier and TypeMethodDescriptiongetJCRName(Name name) Returns the qualified JCR name String for the givenNameobject.getJCRPath(Path path) Returns the given JCR path string for the given path object.Returns theNamefor the given JCR name String.Returns the path object for the given JCR path string.Returns the path object for the given JCR path string.
-
Constructor Details
-
DefaultNamePathResolver
-
DefaultNamePathResolver
-
DefaultNamePathResolver
-
DefaultNamePathResolver
-
DefaultNamePathResolver
public DefaultNamePathResolver(NamespaceResolver nsResolver, IdentifierResolver idResolver, boolean enableCaching) -
DefaultNamePathResolver
-
-
Method Details
-
getQName
Description copied from interface:NameResolverReturns theNamefor the given JCR name String.- Specified by:
getQNamein interfaceNameResolver- Parameters:
name- A JCR name String.- Returns:
- A
Nameobject. - Throws:
IllegalNameException- if the JCR name format is invalidNamespaceException- if the namespace prefix can not be resolved
-
getJCRName
Description copied from interface:NameResolverReturns the qualified JCR name String for the givenNameobject.- Specified by:
getJCRNamein interfaceNameResolver- Parameters:
name- ANameobject.- Returns:
- The qualified JCR name String consisting of
prefix:localNameorlocalNamein case of the empty namespace. - Throws:
NamespaceException- if the namespace URI can not be resolved
-
getQPath
public Path getQPath(String path) throws MalformedPathException, IllegalNameException, NamespaceException Description copied from interface:PathResolverReturns the path object for the given JCR path string.- Specified by:
getQPathin interfacePathResolver- Parameters:
path- prefixed JCR path- Returns:
- a
Pathobject. - Throws:
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.
-
getQPath
public Path getQPath(String path, boolean normalizeIdentifier) throws MalformedPathException, IllegalNameException, NamespaceException Description copied from interface:PathResolverReturns the path object for the given JCR path string.- Specified by:
getQPathin interfacePathResolver- Parameters:
path- prefixed JCR pathnormalizeIdentifier-- Returns:
- a
Pathobject. - Throws:
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.
-
getJCRPath
Description copied from interface:PathResolverReturns the given JCR path string for the given path object.- Specified by:
getJCRPathin interfacePathResolver- Parameters:
path- aPathobject.- Returns:
- a JCR path string
- Throws:
NamespaceException- if a namespace URI can not be resolved
-