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 Value |
getJCRValue(QValue value,
NamePathResolver resolver,
ValueFactory factory) |
static QValue |
getQValue(String jcrValue,
int propertyType,
NamePathResolver resolver,
QValueFactory factory) |
static QValue |
getQValue(Value jcrValue,
NamePathResolver resolver,
QValueFactory factory) |
static QValue[] |
getQValues(Value[] jcrValues,
NamePathResolver resolver,
QValueFactory factory) |
public static QValue getQValue(Value jcrValue, NamePathResolver resolver, QValueFactory factory) throws RepositoryException
jcrValue
- resolver
- factory
- RepositoryException
public static QValue[] getQValues(Value[] jcrValues, NamePathResolver resolver, QValueFactory factory) throws RepositoryException
jcrValues
- resolver
- factory
- RepositoryException
public static QValue getQValue(String jcrValue, int propertyType, NamePathResolver resolver, QValueFactory factory) throws RepositoryException
jcrValue
- propertyType
- resolver
- factory
- RepositoryException
public static Value getJCRValue(QValue value, NamePathResolver resolver, ValueFactory factory) throws RepositoryException
value
- resolver
- factory
- QValue
.RepositoryException
public static String getJCRString(QValue value, NamePathResolver resolver) throws RepositoryException
QValue
.
This method is a shortcut for
getJCRValue(QValue, NamePathResolver, ValueFactory)
followed by
Value.getString()
.value
- resolver
- QValue
.RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.