Package org.apache.jackrabbit.core.value

Examples of org.apache.jackrabbit.core.value.ValueFactoryImpl


    /**
     * {@inheritDoc}
     */
    public ValueFactory getValueFactory() {
        if (valueFactory == null) {
            valueFactory = new ValueFactoryImpl(this, rep.getDataStore());
        }
        return valueFactory;
    }
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public ValueFactory getValueFactory() {
        if (valueFactory == null) {
            valueFactory = new ValueFactoryImpl(this, rep.getDataStore());
        }
        return valueFactory;
    }
View Full Code Here

        assert session != null;
        this.repositoryContext = repositoryContext;
        this.session = session;
        this.state = new SessionState(this);
        this.valueFactory =
            new ValueFactoryImpl(session, repositoryContext.getDataStore());
        this.itemValidator = new ItemValidator(this);
        this.nodeTypeManager = new NodeTypeManagerImpl(this);
        this.workspace = new WorkspaceImpl(this, workspaceConfig);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public ValueFactory getValueFactory() {
        if (valueFactory == null) {
            valueFactory = new ValueFactoryImpl(this, rep.getDataStore());
        }
        return valueFactory;
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public ValueFactory getValueFactory() {
        if (valueFactory == null) {
            valueFactory = new ValueFactoryImpl(this, rep.getDataStore());
        }
        return valueFactory;
    }
View Full Code Here

     * {@inheritDoc}
     */
    public ValueFactory getValueFactory()
            throws UnsupportedRepositoryOperationException, RepositoryException {
        if (valueFactory == null) {
            valueFactory = new ValueFactoryImpl(this);
        }
        return valueFactory;
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public ValueFactory getValueFactory() {
        if (valueFactory == null) {
            valueFactory = new ValueFactoryImpl(this, rep.getDataStore());
        }
        return valueFactory;
    }
View Full Code Here

        assert session != null;
        this.repositoryContext = repositoryContext;
        this.session = session;
        this.state = new SessionState(this);
        this.valueFactory =
            new ValueFactoryImpl(session, repositoryContext.getDataStore());
        this.itemValidator = new ItemValidator(this);
        this.nodeTypeManager = new NodeTypeManagerImpl(this);
        this.privilegeManager = new PrivilegeManagerImpl(repositoryContext.getPrivilegeRegistry(), session);
        this.workspace = new WorkspaceImpl(this, workspaceConfig);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    public ValueFactory getValueFactory() {
        if (valueFactory == null) {
            valueFactory = new ValueFactoryImpl(this, rep.getDataStore());
        }
        return valueFactory;
    }
View Full Code Here

            throws RepositoryException {
        PropertyState ps = property.getPropertyState(sn, context);
        if (ps == null) {
            return EMPTY;
        } else {
            ValueFactoryImpl vf = (ValueFactoryImpl) context.getSession().getValueFactory();
            QValueFactory qvf = vf.getQValueFactory();
            InternalValue[] values = ps.getValues();
            Value[] lengths = new Value[values.length];
            for (int i = 0; i < lengths.length; i++) {
                long len;
                int type = values[i].getType();
                if (type == PropertyType.NAME) {
                    len = vf.createValue(qvf.create(values[i].getName())).getString().length();
                } else if (type == PropertyType.PATH) {
                    len = vf.createValue(qvf.create(values[i].getPath())).getString().length();
                } else {
                    len = Util.getLength(values[i]);
                }
                lengths[i] = vf.createValue(len);
            }
            return lengths;
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.core.value.ValueFactoryImpl

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.