|
||||||||||
| 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)
nameFactory - the name factory.resolver - namespace resolver| Method Detail |
|---|
public Name getQName(String name)
throws IllegalNameException,
NamespaceException
getQName in interface NameResolvername - prefixed JCR name
IllegalNameException - if the JCR name format is invalid
NamespaceException - if the namespace prefix can not be resolved
public String getJCRName(Name name)
throws NamespaceException
getJCRName in interface NameResolvername - 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 | |||||||||