org.apache.jackrabbit.spi.commons.value
Class ValueFormat
java.lang.Object
org.apache.jackrabbit.spi.commons.value.ValueFormat
public class ValueFormat
- extends Object
ValueFormat...
|
Method Summary |
static String |
getJCRString(org.apache.jackrabbit.spi.QValue value,
NamePathResolver resolver)
Returns the JCR string representation of the given QValue. |
static Value |
getJCRValue(org.apache.jackrabbit.spi.QValue value,
NamePathResolver resolver,
ValueFactory factory)
|
static org.apache.jackrabbit.spi.QValue |
getQValue(String jcrValue,
int propertyType,
NamePathResolver resolver,
org.apache.jackrabbit.spi.QValueFactory factory)
|
static org.apache.jackrabbit.spi.QValue |
getQValue(Value jcrValue,
NamePathResolver resolver,
org.apache.jackrabbit.spi.QValueFactory factory)
|
static org.apache.jackrabbit.spi.QValue[] |
getQValues(Value[] jcrValues,
NamePathResolver resolver,
org.apache.jackrabbit.spi.QValueFactory factory)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueFormat
public ValueFormat()
getQValue
public static org.apache.jackrabbit.spi.QValue getQValue(Value jcrValue,
NamePathResolver resolver,
org.apache.jackrabbit.spi.QValueFactory factory)
throws RepositoryException
- Parameters:
jcrValue - resolver - factory -
- Returns:
-
- Throws:
RepositoryException
getQValues
public static org.apache.jackrabbit.spi.QValue[] getQValues(Value[] jcrValues,
NamePathResolver resolver,
org.apache.jackrabbit.spi.QValueFactory factory)
throws RepositoryException
- Parameters:
jcrValues - resolver - factory -
- Returns:
-
- Throws:
RepositoryException
getQValue
public static org.apache.jackrabbit.spi.QValue getQValue(String jcrValue,
int propertyType,
NamePathResolver resolver,
org.apache.jackrabbit.spi.QValueFactory factory)
throws RepositoryException
- Parameters:
jcrValue - propertyType - resolver - factory -
- Returns:
-
- Throws:
RepositoryException
getJCRValue
public static Value getJCRValue(org.apache.jackrabbit.spi.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(org.apache.jackrabbit.spi.QValue value,
NamePathResolver resolver)
throws RepositoryException
- Returns the JCR string representation of the given
QValue.
This method is a shortcut for
getJCRValue(QValue, NamePathResolver, ValueFactory) followed by
Value.getString().
- Parameters:
value - resolver -
- Returns:
- the JCR String representation for the given
QValue.
- Throws:
RepositoryException
Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.