/** * @see QValueFactory#create(long) */ public QValue create(long value) throws RepositoryException { return new DefaultQValue(value); }
/** * Create a new <code>Value</code> based on an existing * <code>QValue</code> * @param qvalue existing <code>QValue</code> * @return a <code>Value</code> representing the <code>QValue</code> */ public Value createValue(QValue qvalue) { return new QValueValue(qvalue, resolver); }
/** * {@inheritDoc} */ public Value createValue(Node value) throws RepositoryException { return createValue(value, false); }
/** * Creates a jcr Value from the given qvalue using the specified * factory. * @return the jcr value representing the qvalue. */ private Value createJcrValue(QValue qValue) throws RepositoryException { // build ValueFactory ValueFactoryQImpl valueFactory = new ValueFactoryQImpl(qvf, resolver); // build jcr value QValueValue jcrValue = new QValueValue(qValue, resolver); return ValueHelper.copy(jcrValue, valueFactory); } }
/** * @return {@link QValueFactoryImpl#getInstance()}. * @throws RepositoryException if an error occurs. */ public QValueFactory getQValueFactory() throws RepositoryException { return QValueFactoryImpl.getInstance(); }
QValueFactoryImpl(NamePathResolver resolver, ValueLoader loader) { this.loader = loader; vf = new ValueFactoryQImpl(this, resolver); }
public long getSize() throws RepositoryException { return getLength(); }
/** * Creates a jcr Value from the given qvalue using the specified * factory. * @return the jcr value representing the qvalue. */ private Value createJcrValue(QValue qValue) throws RepositoryException { // build ValueFactory ValueFactoryQImpl valueFactory = new ValueFactoryQImpl(qvf, resolver); // build jcr value QValueValue jcrValue = new QValueValue(qValue, resolver); return ValueHelper.copy(jcrValue, valueFactory); } }
private Value[] createValues(QValue[] qv) { if (qv == null){ return null; } Value[] ret = new Value[qv.length]; for (int i=0; i<ret.length; i++) { ret[i] = new QValueValue(qv[i], resolver); } return ret; }
/** * @return {@link QValueFactoryImpl#getInstance()}. * @throws RepositoryException if an error occurs. */ public QValueFactory getQValueFactory() throws RepositoryException { return QValueFactoryImpl.getInstance(); }
/** * {@inheritDoc} */ public Value createValue(Node value) throws RepositoryException { return createValue(value, false); }
QValueFactoryImpl(NamePathResolver resolver, ValueLoader loader) { this.loader = loader; vf = new ValueFactoryQImpl(this, resolver); }
/** * @see QValueFactory#create(double) */ public QValue create(double value) throws RepositoryException { return new DefaultQValue(value); }
/** * Create a new <code>Value</code> based on an existing * <code>QValue</code> * @param qvalue existing <code>QValue</code> * @return a <code>Value</code> representing the <code>QValue</code> */ public Value createValue(QValue qvalue) { return new QValueValue(qvalue, resolver); }
/** * @see QValueFactory#create(long) */ public QValue create(long value) throws RepositoryException { return new DefaultQValue(value); }
/** * Create a new <code>Value</code> based on an existing * <code>QValue</code> * @param qvalue existing <code>QValue</code> * @return a <code>Value</code> representing the <code>QValue</code> */ public Value createValue(QValue qvalue) { return new QValueValue(qvalue, resolver); }
/** * Creates a new QValue of type STRING. * * @param value the string value. * @return a new QValue. */ protected QValue createString(String value) { return new DefaultQValue(value, PropertyType.STRING); }
private Value[] createValues(QValue[] qv) { if (qv == null){ return null; } Value[] ret = new Value[qv.length]; for (int i=0; i<ret.length; i++) { ret[i] = new QValueValue(qv[i], resolver); } return ret; }
/** * @see QValueFactory#create(double) */ public QValue create(double value) throws RepositoryException { return new DefaultQValue(value); }
/** * Creates a new QValue of type STRING. * * @param value the string value. * @return a new QValue. */ protected QValue createString(String value) { return new DefaultQValue(value, PropertyType.STRING); }