Search in sources :

Example 1 with DummyNamespaceResolver

use of org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver in project jackrabbit by apache.

the class NodeDefinitionTemplateImplTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    NamePathResolver resolver = new DefaultNamePathResolver(new DummyNamespaceResolver());
    tmpl = new NodeDefinitionTemplateImpl(resolver);
}
Also used : NamePathResolver(org.apache.jackrabbit.spi.commons.conversion.NamePathResolver) DefaultNamePathResolver(org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver) DummyNamespaceResolver(org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver) DefaultNamePathResolver(org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver)

Example 2 with DummyNamespaceResolver

use of org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver in project jackrabbit by apache.

the class ParserTest method setUp.

protected void setUp() throws Exception {
    super.setUp();
    NamePathResolver resolver = new DefaultNamePathResolver(new DummyNamespaceResolver());
    QueryObjectModelFactoryImpl factory = new QOMF(resolver);
    ValueFactory vf = new ValueFactoryQImpl(QValueFactoryImpl.getInstance(), resolver);
    parser = new Parser(factory, vf);
}
Also used : QueryObjectModelFactoryImpl(org.apache.jackrabbit.spi.commons.query.qom.QueryObjectModelFactoryImpl) NamePathResolver(org.apache.jackrabbit.spi.commons.conversion.NamePathResolver) DefaultNamePathResolver(org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver) DummyNamespaceResolver(org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver) DefaultNamePathResolver(org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver) ValueFactory(javax.jcr.ValueFactory) ValueFactoryQImpl(org.apache.jackrabbit.spi.commons.value.ValueFactoryQImpl) Parser(org.apache.jackrabbit.commons.query.sql2.Parser)

Example 3 with DummyNamespaceResolver

use of org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver 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);
}
Also used : IdentifierResolver(org.apache.jackrabbit.spi.commons.conversion.IdentifierResolver) Path(org.apache.jackrabbit.spi.Path) ParsingNameResolver(org.apache.jackrabbit.spi.commons.conversion.ParsingNameResolver) DummyNamespaceResolver(org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver) MalformedPathException(org.apache.jackrabbit.spi.commons.conversion.MalformedPathException) NamePathResolver(org.apache.jackrabbit.spi.commons.conversion.NamePathResolver) PathResolver(org.apache.jackrabbit.spi.commons.conversion.PathResolver) ParsingPathResolver(org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver) DefaultNamePathResolver(org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver) DefaultNamePathResolver(org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver) NameResolver(org.apache.jackrabbit.spi.commons.conversion.NameResolver) ParsingNameResolver(org.apache.jackrabbit.spi.commons.conversion.ParsingNameResolver) ParsingPathResolver(org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver)

Example 4 with DummyNamespaceResolver

use of org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver in project jackrabbit by apache.

the class PropertyDefinitionTemplateImplTest method setUp.

@Override
protected void setUp() throws Exception {
    super.setUp();
    NamePathResolver resolver = new DefaultNamePathResolver(new DummyNamespaceResolver());
    tmpl = new PropertyDefinitionTemplateImpl(resolver);
}
Also used : NamePathResolver(org.apache.jackrabbit.spi.commons.conversion.NamePathResolver) DefaultNamePathResolver(org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver) DummyNamespaceResolver(org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver) DefaultNamePathResolver(org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver)

Aggregations

DefaultNamePathResolver (org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver)4 DummyNamespaceResolver (org.apache.jackrabbit.spi.commons.conversion.DummyNamespaceResolver)4 NamePathResolver (org.apache.jackrabbit.spi.commons.conversion.NamePathResolver)4 ValueFactory (javax.jcr.ValueFactory)1 Parser (org.apache.jackrabbit.commons.query.sql2.Parser)1 Path (org.apache.jackrabbit.spi.Path)1 IdentifierResolver (org.apache.jackrabbit.spi.commons.conversion.IdentifierResolver)1 MalformedPathException (org.apache.jackrabbit.spi.commons.conversion.MalformedPathException)1 NameResolver (org.apache.jackrabbit.spi.commons.conversion.NameResolver)1 ParsingNameResolver (org.apache.jackrabbit.spi.commons.conversion.ParsingNameResolver)1 ParsingPathResolver (org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver)1 PathResolver (org.apache.jackrabbit.spi.commons.conversion.PathResolver)1 QueryObjectModelFactoryImpl (org.apache.jackrabbit.spi.commons.query.qom.QueryObjectModelFactoryImpl)1 ValueFactoryQImpl (org.apache.jackrabbit.spi.commons.value.ValueFactoryQImpl)1