qvs[i] = ((QValueValue) jcrVs[i]).getQValue(); } else if (type == PropertyType.BINARY) { qvs[i] = qValueFactory.create(jcrVs[i].getStream());
qvs[i] = ((QValueValue) jcrVs[i]).getQValue(); } else if (type == PropertyType.BINARY) { qvs[i] = qValueFactory.create(jcrVs[i].getStream());
v = ((QValueValue) jcrValue).getQValue(); } else { v = ValueFormat.getQValue(jcrValue, resolver, getQValueFactory());
v = ((QValueValue) jcrValue).getQValue(); } else { v = ValueFormat.getQValue(jcrValue, resolver, getQValueFactory());
/** * * @param jcrValue * @param resolver * @param factory * @return * @throws RepositoryException */ public static QValue getQValue(Value jcrValue, NamePathResolver resolver, QValueFactory factory) throws RepositoryException { if (jcrValue == null) { throw new IllegalArgumentException("null value"); } else if (jcrValue instanceof QValueValue) { return ((QValueValue)jcrValue).getQValue(); } else if (jcrValue.getType() == PropertyType.BINARY) { try { return factory.create(jcrValue.getStream()); } catch (IOException e) { throw new RepositoryException(e); } } else if (jcrValue.getType() == PropertyType.DATE) { return factory.create(jcrValue.getDate()); } else if (jcrValue.getType() == PropertyType.DOUBLE) { return factory.create(jcrValue.getDouble()); } else if (jcrValue.getType() == PropertyType.LONG) { return factory.create(jcrValue.getLong()); } else { return getQValue(jcrValue.getString(), jcrValue.getType(), resolver, factory); } }
try { if (value instanceof QValueValue) { QValue qv = ((QValueValue) value).getQValue(); if (qv instanceof InternalValue) { return (InternalValue) qv; try { if (value instanceof QValueValue) { QValue qv = ((QValueValue) value).getQValue(); if (qv instanceof InternalValue) { return (InternalValue) qv;
try { if (value instanceof QValueValue) { QValue qv = ((QValueValue) value).getQValue(); if (qv instanceof InternalValue) { return (InternalValue) qv; try { if (value instanceof QValueValue) { QValue qv = ((QValueValue) value).getQValue(); if (qv instanceof InternalValue) { return (InternalValue) qv;
throw new IllegalArgumentException("null value"); } else if (jcrValue instanceof QValueValue) { return ((QValueValue)jcrValue).getQValue(); } else if (jcrValue.getType() == PropertyType.BINARY) {
throw new IllegalArgumentException("null value"); } else if (jcrValue instanceof QValueValue) { return ((QValueValue)jcrValue).getQValue(); } else if (jcrValue.getType() == PropertyType.BINARY) {