org.apache.jackrabbit.spi.commons.value
Class ValueFormat

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.value.ValueFormat

public class ValueFormat
extends Object

ValueFormat...


Constructor Summary
ValueFormat()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueFormat

public ValueFormat()
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 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-2010 The Apache Software Foundation. All Rights Reserved.