|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.conversion.ParsingNameResolver
public class ParsingNameResolver
Name resolver that parsers and formats prefixed JCR names.
A NamespaceResolver
is used for resolving the namespace prefixes.
Constructor Summary | |
---|---|
ParsingNameResolver(NameFactory nameFactory,
NamespaceResolver resolver)
Creates a parsing name resolver. |
Method Summary | |
---|---|
String |
getJCRName(Name name)
Returns the prefixed JCR name for the given qualified name. |
Name |
getQName(String name)
Parses the prefixed JCR name and returns the resolved qualified name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsingNameResolver(NameFactory nameFactory, NamespaceResolver resolver)
resolver
- namespace resolverMethod Detail |
---|
public Name getQName(String name) throws IllegalNameException, NamespaceException
getQName
in interface NameResolver
name
- prefixed JCR name
IllegalNameException
- if the JCR name format is invalid
NamespaceException
- if the namespace prefix can not be resolvedpublic String getJCRName(Name name) throws NamespaceException
getJCRName
in interface NameResolver
name
- qualified name
NamespaceException
- if the namespace URI can not be resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |