Class ValueFormat
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.value.ValueFormat
-
public class ValueFormat extends Object
ValueFormat
...
-
-
Constructor Summary
Constructors Constructor Description ValueFormat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getJCRString(QValue value, NamePathResolver resolver)
Returns the JCR string representation of the givenQValue
.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)
-
-
-
Method Detail
-
getQValue
public static QValue getQValue(Value jcrValue, NamePathResolver resolver, QValueFactory factory) throws RepositoryException
- Parameters:
jcrValue
-resolver
-factory
-- Returns:
- Throws:
RepositoryException
-
getQValues
public static QValue[] getQValues(Value[] jcrValues, NamePathResolver resolver, QValueFactory factory) throws RepositoryException
- Parameters:
jcrValues
-resolver
-factory
-- Returns:
- Throws:
RepositoryException
-
getQValue
public static QValue getQValue(String jcrValue, int propertyType, NamePathResolver resolver, QValueFactory factory) throws RepositoryException
- Parameters:
jcrValue
-propertyType
-resolver
-factory
-- Returns:
- Throws:
RepositoryException
-
getJCRValue
public static Value getJCRValue(QValue value, NamePathResolver resolver, ValueFactory factory) throws RepositoryException
- Parameters:
value
-resolver
-factory
-- Returns:
- the JCR value created from the given
QValue
. - Throws:
RepositoryException
-
getJCRString
public static String getJCRString(QValue value, NamePathResolver resolver) throws RepositoryException
Returns the JCR string representation of the givenQValue
. This method is a shortcut forgetJCRValue(QValue, NamePathResolver, ValueFactory)
followed byValue.getString()
.- Parameters:
value
-resolver
-- Returns:
- the JCR String representation for the given
QValue
. - Throws:
RepositoryException
-
-