public class ValueFormat extends Object
ValueFormat
...Constructor and Description |
---|
ValueFormat() |
Modifier and Type | Method and Description |
---|---|
static String |
getJCRString(QValue value,
NamePathResolver resolver)
Returns the JCR string representation of the given
QValue . |
static javax.jcr.Value |
getJCRValue(QValue value,
NamePathResolver resolver,
javax.jcr.ValueFactory factory) |
static QValue |
getQValue(String jcrValue,
int propertyType,
NamePathResolver resolver,
QValueFactory factory) |
static QValue |
getQValue(javax.jcr.Value jcrValue,
NamePathResolver resolver,
QValueFactory factory) |
static QValue[] |
getQValues(javax.jcr.Value[] jcrValues,
NamePathResolver resolver,
QValueFactory factory) |
public static QValue getQValue(javax.jcr.Value jcrValue, NamePathResolver resolver, QValueFactory factory) throws javax.jcr.RepositoryException
jcrValue
- resolver
- factory
- javax.jcr.RepositoryException
public static QValue[] getQValues(javax.jcr.Value[] jcrValues, NamePathResolver resolver, QValueFactory factory) throws javax.jcr.RepositoryException
jcrValues
- resolver
- factory
- javax.jcr.RepositoryException
public static QValue getQValue(String jcrValue, int propertyType, NamePathResolver resolver, QValueFactory factory) throws javax.jcr.RepositoryException
jcrValue
- propertyType
- resolver
- factory
- javax.jcr.RepositoryException
public static javax.jcr.Value getJCRValue(QValue value, NamePathResolver resolver, javax.jcr.ValueFactory factory) throws javax.jcr.RepositoryException
value
- resolver
- factory
- QValue
.javax.jcr.RepositoryException
public static String getJCRString(QValue value, NamePathResolver resolver) throws javax.jcr.RepositoryException
QValue
.
This method is a shortcut for
getJCRValue(QValue, NamePathResolver, ValueFactory)
followed by
Value.getString()
.value
- resolver
- QValue
.javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.