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 p_obj)
           
 boolean getBoolean()
          
 Calendar getDate()
          
 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

getDate

public Calendar getDate()
                 throws RepositoryException

Specified by:
getDate in interface Value
Throws:
RepositoryException

getDouble

public double getDouble()
                 throws RepositoryException

Specified by:
getDouble in interface Value
Throws:
RepositoryException

getLong

public long getLong()
             throws RepositoryException

Specified by:
getLong in interface Value
Throws:
RepositoryException

getStream

public InputStream getStream()
                      throws IllegalStateException,
                             RepositoryException

Specified by:
getStream in interface Value
Throws:
IllegalStateException
RepositoryException

getString

public String getString()
                 throws RepositoryException

Specified by:
getString in interface Value
Throws:
RepositoryException

getType

public int getType()

Specified by:
getType in interface Value

equals

public boolean equals(Object p_obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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