|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver
public class DefaultNamePathResolver
DefaultNamePathResolver...
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
String |
getJCRName(Name name)
Returns the qualified JCR name String for the given Name object. |
String |
getJCRPath(Path path)
Returns the given JCR path string for the given path object. |
Name |
getQName(String name)
Returns the Name for the given JCR name String. |
Path |
getQPath(String path)
Returns the path object for the given JCR path string. |
Path |
getQPath(String path,
boolean normalizeIdentifier)
Returns the path object for the given JCR path string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
public Name getQName(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 invalid
NamespaceException - if the namespace prefix can not be resolved
public 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 resolved
public Path getQPath(String path)
throws MalformedPathException,
IllegalNameException,
NamespaceException
PathResolver
getQPath in interface PathResolverpath - prefixed JCR path
Path 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(String path,
boolean normalizeIdentifier)
throws MalformedPathException,
IllegalNameException,
NamespaceException
PathResolver
getQPath in interface PathResolverpath - prefixed JCR path
Path 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 String getJCRPath(Path path)
throws NamespaceException
PathResolver
getJCRPath in interface PathResolverpath - a Path object.
NamespaceException - if a namespace URI can not be resolved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||