|
||||||||||
| 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(org.apache.jackrabbit.spi.NameFactory nameFactory,
NamespaceResolver resolver)
Creates a parsing name resolver. |
|
| Method Summary | |
|---|---|
String |
getJCRName(org.apache.jackrabbit.spi.Name name)
Returns the qualified JCR name for the given Name object. |
org.apache.jackrabbit.spi.Name |
getQName(String jcrName)
Parses the given JCR name and returns the resolved Name object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParsingNameResolver(org.apache.jackrabbit.spi.NameFactory nameFactory,
NamespaceResolver resolver)
nameFactory - the name factory.resolver - namespace resolver| Method Detail |
|---|
public org.apache.jackrabbit.spi.Name getQName(String jcrName)
throws IllegalNameException,
NamespaceException
Name object.
getQName in interface NameResolverjcrName - A JCR name String
Name object.
IllegalNameException - if the JCR name format is invalid
NamespaceException - if the namespace prefix can not be resolved.NameResolver.getQName(String)
public String getJCRName(org.apache.jackrabbit.spi.Name name)
throws NamespaceException
Name object.
If the name is in the default namespace, then the local name
is returned without a prefix. Otherwise the prefix for the
namespace is resolved and used to construct the JCR name.
getJCRName in interface NameResolvername - A Name object.
NamespaceException - if the namespace URI can not be resolved.NameResolver.getJCRName(org.apache.jackrabbit.spi.Name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||