Class ValueFormat


  • public class ValueFormat
    extends java.lang.Object
    ValueFormat...
    • Constructor Detail

      • ValueFormat

        public ValueFormat()
    • Method Detail

      • getQValue

        public static QValue getQValue​(javax.jcr.Value jcrValue,
                                       NamePathResolver resolver,
                                       QValueFactory factory)
                                throws javax.jcr.RepositoryException
        Parameters:
        jcrValue -
        resolver -
        factory -
        Returns:
        Throws:
        javax.jcr.RepositoryException
      • getQValues

        public static QValue[] getQValues​(javax.jcr.Value[] jcrValues,
                                          NamePathResolver resolver,
                                          QValueFactory factory)
                                   throws javax.jcr.RepositoryException
        Parameters:
        jcrValues -
        resolver -
        factory -
        Returns:
        Throws:
        javax.jcr.RepositoryException
      • getQValue

        public static QValue getQValue​(java.lang.String jcrValue,
                                       int propertyType,
                                       NamePathResolver resolver,
                                       QValueFactory factory)
                                throws javax.jcr.RepositoryException
        Parameters:
        jcrValue -
        propertyType -
        resolver -
        factory -
        Returns:
        Throws:
        javax.jcr.RepositoryException
      • getJCRValue

        public static javax.jcr.Value getJCRValue​(QValue value,
                                                  NamePathResolver resolver,
                                                  javax.jcr.ValueFactory factory)
                                           throws javax.jcr.RepositoryException
        Parameters:
        value -
        resolver -
        factory -
        Returns:
        the JCR value created from the given QValue.
        Throws:
        javax.jcr.RepositoryException
      • getJCRString

        public static java.lang.String getJCRString​(QValue value,
                                                    NamePathResolver resolver)
                                             throws javax.jcr.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:
        javax.jcr.RepositoryException