Class AbstractQValue

    • Field Detail

      • val

        protected final Object val
      • type

        protected final int type
    • Constructor Detail

      • AbstractQValue

        protected AbstractQValue​(Object value,
                                 int type)
        Create a new AbstractQValue.
        Parameters:
        value - The value.
        type - The property type.
        Throws:
        IllegalArgumentException - if the passed value is null.
      • AbstractQValue

        protected AbstractQValue​(String value,
                                 int type)
        Create a new AbstractQValue.
        Parameters:
        value -
        type -
        Throws:
        IllegalArgumentException - if the passed value is null or if the type is neither STRING nor REFERENCE/WEAKREFERENCE.
      • AbstractQValue

        protected AbstractQValue​(Long value)
        Create a new AbstractQValue.
        Parameters:
        value -
        Throws:
        IllegalArgumentException - if the passed value is null.
      • AbstractQValue

        protected AbstractQValue​(Double value)
        Create a new AbstractQValue.
        Parameters:
        value -
        Throws:
        IllegalArgumentException - if the passed value is null.
      • AbstractQValue

        protected AbstractQValue​(Boolean value)
        Create a new AbstractQValue.
        Parameters:
        value -
        Throws:
        IllegalArgumentException - if the passed value is null.
      • AbstractQValue

        protected AbstractQValue​(Calendar value)
        Create a new AbstractQValue.
        Parameters:
        value -
        Throws:
        IllegalArgumentException - if the passed value is null.
      • AbstractQValue

        protected AbstractQValue​(org.apache.jackrabbit.spi.Name value)
        Create a new AbstractQValue.
        Parameters:
        value -
        Throws:
        IllegalArgumentException - if the passed value is null.
      • AbstractQValue

        protected AbstractQValue​(org.apache.jackrabbit.spi.Path value)
        Create a new AbstractQValue.
        Parameters:
        value -
        Throws:
        IllegalArgumentException - if the passed value is null.
      • AbstractQValue

        protected AbstractQValue​(BigDecimal value)
        Create a new AbstractQValue.
        Parameters:
        value -
        Throws:
        IllegalArgumentException - if the passed value is null.
      • AbstractQValue

        protected AbstractQValue​(URI value)
        Create a new AbstractQValue.
        Parameters:
        value -
        Throws:
        IllegalArgumentException - if the passed value is null.
    • Method Detail

      • getType

        public int getType()
        Specified by:
        getType in interface org.apache.jackrabbit.spi.QValue
        See Also:
        QValue.getType()
      • getLength

        public long getLength()
                       throws RepositoryException
        Specified by:
        getLength in interface org.apache.jackrabbit.spi.QValue
        Throws:
        RepositoryException
        See Also:
        QValue.getLength()
      • getName

        public org.apache.jackrabbit.spi.Name getName()
                                               throws RepositoryException
        Specified by:
        getName in interface org.apache.jackrabbit.spi.QValue
        Throws:
        RepositoryException
        See Also:
        QValue.getName()
      • getDouble

        public double getDouble()
                         throws RepositoryException
        Specified by:
        getDouble in interface org.apache.jackrabbit.spi.QValue
        Throws:
        RepositoryException
        See Also:
        QValue.getDouble()
      • getBoolean

        public boolean getBoolean()
                           throws RepositoryException
        Specified by:
        getBoolean in interface org.apache.jackrabbit.spi.QValue
        Throws:
        RepositoryException
        See Also:
        QValue.getBoolean()
      • getPath

        public org.apache.jackrabbit.spi.Path getPath()
                                               throws RepositoryException
        Specified by:
        getPath in interface org.apache.jackrabbit.spi.QValue
        Throws:
        RepositoryException
        See Also:
        QValue.getPath()
      • getBinary

        public Binary getBinary()
                         throws RepositoryException
        This implementation creates a binary instance that uses QValue.getStream() and skipping on the given stream as its underlying mechanism to provide random access defined on Binary.
        Specified by:
        getBinary in interface org.apache.jackrabbit.spi.QValue
        Throws:
        RepositoryException
        See Also:
        QValue.getBinary()
      • discard

        public void discard()
        Specified by:
        discard in interface org.apache.jackrabbit.spi.QValue
        See Also:
        QValue.discard()
      • toString

        public String toString()
        Returns the string representation of this internal value.
        Overrides:
        toString in class Object
        Returns:
        string representation of this internal value
      • equals

        public boolean equals​(Object obj)
        Default implementation of the equals method. Subclasses may optimize this e.g. by special handling for DATE properties.
        Overrides:
        equals in class Object
        Parameters:
        obj -
        See Also:
        Object.equals(Object)
      • hashCode

        public int hashCode()
        Default calculation of the hashCode. Subclasses may optimize this e.g. by special handling for DATE properties.
        Overrides:
        hashCode in class Object
        Returns:
        the hashCode of the internal value object.
        See Also:
        Object.hashCode()