Class QValueValue

  • All Implemented Interfaces:
    javax.jcr.Value

    public final class QValueValue
    extends java.lang.Object
    implements javax.jcr.Value
    A QValueValue provides an implementation of the Value interface representing an SPI QValue.
    • Constructor Detail

      • QValueValue

        public QValueValue​(QValue qvalue,
                           NamePathResolver resolver)
        Constructs a QValueValue object representing an SPI QValue.
        Parameters:
        qvalue - the QValue this QValueValue should represent
        resolver - fore resolving namespace URIs to prefixes in NAME/PATH properties
    • Method Detail

      • getQValue

        public QValue getQValue()
        Returns the embedded QValue.
        Returns:
        the embedded QValue
      • getBoolean

        public boolean getBoolean()
                           throws javax.jcr.RepositoryException
        Specified by:
        getBoolean in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
        See Also:
        Value.getBoolean()
      • getDecimal

        public java.math.BigDecimal getDecimal()
                                        throws javax.jcr.ValueFormatException,
                                               java.lang.IllegalStateException,
                                               javax.jcr.RepositoryException
        Specified by:
        getDecimal in interface javax.jcr.Value
        Throws:
        javax.jcr.ValueFormatException
        java.lang.IllegalStateException
        javax.jcr.RepositoryException
        See Also:
        Value.getDecimal()
      • getBinary

        public javax.jcr.Binary getBinary()
                                   throws javax.jcr.RepositoryException
        Specified by:
        getBinary in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
        See Also:
        Value.getBinary()
      • getDate

        public java.util.Calendar getDate()
                                   throws javax.jcr.RepositoryException
        Specified by:
        getDate in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
        See Also:
        Value.getDate()
      • getDouble

        public double getDouble()
                         throws javax.jcr.RepositoryException
        Specified by:
        getDouble in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
        See Also:
        Value.getDouble()
      • getLong

        public long getLong()
                     throws javax.jcr.RepositoryException
        Specified by:
        getLong in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
        See Also:
        Value.getLong()
      • getStream

        public java.io.InputStream getStream()
                                      throws java.lang.IllegalStateException,
                                             javax.jcr.RepositoryException
        Specified by:
        getStream in interface javax.jcr.Value
        Throws:
        java.lang.IllegalStateException
        javax.jcr.RepositoryException
        See Also:
        Value.getStream()
      • getString

        public java.lang.String getString()
                                   throws javax.jcr.RepositoryException
        Specified by:
        getString in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
        See Also:
        Value.getString()
      • getType

        public int getType()
        Specified by:
        getType in interface javax.jcr.Value
        See Also:
        Value.getType()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()