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

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.value.QValueValue
All Implemented Interfaces:
Value

public final class QValueValue
extends Object
implements Value

A QValueValue provides an implementation of the Value interface representing an SPI QValue.


Constructor Summary
QValueValue(QValue qvalue, NamePathResolver resolver)
          Constructs a QValueValue object representing an SPI .
 
Method Summary
 boolean equals(Object obj)
           
 Binary getBinary()
           
 boolean getBoolean()
           
 Calendar getDate()
           
 BigDecimal getDecimal()
           
 double getDouble()
           
 long getLong()
           
 QValue getQValue()
          Returns the embedded QValue.
 InputStream getStream()
           
 String getString()
           
 int getType()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QValueValue

public QValueValue(QValue qvalue,
                   NamePathResolver resolver)
Constructs a QValueValue object representing an SPI .

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 RepositoryException
Specified by:
getBoolean in interface Value
Throws:
RepositoryException
See Also:
Value.getBoolean()

getDecimal

public BigDecimal getDecimal()
                      throws ValueFormatException,
                             IllegalStateException,
                             RepositoryException
Specified by:
getDecimal in interface Value
Throws:
ValueFormatException
IllegalStateException
RepositoryException
See Also:
Value.getDecimal()

getBinary

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

getDate

public Calendar getDate()
                 throws RepositoryException
Specified by:
getDate in interface Value
Throws:
RepositoryException
See Also:
Value.getDate()

getDouble

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

getLong

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

getStream

public InputStream getStream()
                      throws IllegalStateException,
                             RepositoryException
Specified by:
getStream in interface Value
Throws:
IllegalStateException
RepositoryException
See Also:
Value.getStream()

getString

public String getString()
                 throws RepositoryException
Specified by:
getString in interface Value
Throws:
RepositoryException
See Also:
Value.getString()

getType

public int getType()
Specified by:
getType in interface Value
See Also:
Value.getType()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

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


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.