Package org.apache.jackrabbit.spi

Examples of org.apache.jackrabbit.spi.QValueFactory


            pathFactory = (PathFactory) param;
        } else {
            pathFactory = PathFactoryImpl.getInstance();
        }

        QValueFactory vFactory;
        param = parameters.get(REPOSITORY_SPI2DAV_VALUEFACTORY);
        if (param != null && param instanceof QValueFactory) {
            vFactory = (QValueFactory) param;
        } else {
            vFactory = QValueFactoryImpl.getInstance();
View Full Code Here


    protected RepositoryService createService(String uri) throws RepositoryException {
        IdFactory idFactory = IdFactoryImpl.getInstance();
        NameFactory nFactory = NameFactoryImpl.getInstance();
        PathFactory pFactory = PathFactoryImpl.getInstance();
        QValueFactory vFactory = QValueFactoryImpl.getInstance();
        return new RepositoryServiceImpl(uri, idFactory, nFactory, pFactory, vFactory);
    }
View Full Code Here

    }

    public void testSetStringValue() throws RepositoryException {
        NodeId nid = getNodeId(testPath);
        Name propName = resolver.getQName("stringProp");
        QValueFactory vf = rs.getQValueFactory();

        List l = new ArrayList();
        l.add("String value containing \"double quotes\" and \'single\' and \"undeterminated quote.");
        l.add("String value \ncontaining \n\rline \r\nseparators and \t tab.");
        l.add("String value containing \r\n\r\r\n\r\n multiple \r\n\r\n line separators in sequence.");
        l.add("String value containing >diff -char +act ^ters.");
        l.add("String value containing \n>line sep \r+and \r\n-diff\n\r^chars.");
        l.add("String value containing \u0633\u0634 unicode chars.");

        for (Iterator it = l.iterator(); it.hasNext();) {
            QValue v = vf.create(it.next().toString(), PropertyType.STRING);
            Batch b = rs.createBatch(si, nid);
            b.addProperty(nid, propName, v);
            rs.submit(b);

            PropertyInfo pi = getPropertyInfo(nid, propName);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.spi.QValueFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.