use of org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver in project jackrabbit by apache.
the class EventState method setupCachingPathResolver.
private static void setupCachingPathResolver() {
if (cachingPathResolver != null) {
return;
}
PathResolver pathResolver = new ParsingPathResolver(PathFactoryImpl.getInstance(), new NameResolver() {
public Name getQName(String name) throws IllegalNameException, NamespaceException {
return null;
}
public String getJCRName(Name name) throws NamespaceException {
return name.getLocalName();
}
});
cachingPathResolver = new CachingPathResolver(pathResolver);
}
use of org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver in project jackrabbit by apache.
the class NamePathResolverImpl method create.
public static NamePathResolver create(NamespaceMappings nsMappings) {
NameResolver nResolver = new NameResolverImpl(nsMappings);
PathResolver pResolver = new ParsingPathResolver(PATH_FACTORY, nResolver);
return new NamePathResolverImpl(nResolver, pResolver);
}
use of org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver in project jackrabbit by apache.
the class ValueFormatTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
idResolver = new IdentifierResolver() {
public Path getPath(String identifier) throws MalformedPathException {
throw new UnsupportedOperationException();
}
public void checkFormat(String identifier) throws MalformedPathException {
// nop
}
};
NameResolver nResolver = new ParsingNameResolver(NameFactoryImpl.getInstance(), new DummyNamespaceResolver());
PathResolver pResolver = new ParsingPathResolver(PathFactoryImpl.getInstance(), nResolver, idResolver);
resolver = new DefaultNamePathResolver(nResolver, pResolver);
qvFactory = QValueFactoryImpl.getInstance();
vFactory = new ValueFactoryQImpl(qvFactory, resolver);
}
Aggregations