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

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.value.AbstractQValue
      extended by org.apache.jackrabbit.spi.commons.value.DefaultQValue
All Implemented Interfaces:
Serializable, QValue

public class DefaultQValue
extends AbstractQValue
implements Serializable

QValue implementation for all valid PropertyTypes except for BINARY.

See Also:
Serialized Form

Field Summary
protected static QValue FALSE
           
protected static QValue TRUE
           
 
Fields inherited from class org.apache.jackrabbit.spi.commons.value.AbstractQValue
type, val
 
Fields inherited from interface org.apache.jackrabbit.spi.QValue
EMPTY_ARRAY
 
Constructor Summary
  DefaultQValue(BigDecimal value)
           
  DefaultQValue(Boolean value)
           
protected DefaultQValue(Calendar value)
           
  DefaultQValue(Double value)
           
  DefaultQValue(Long value)
           
  DefaultQValue(Name value)
           
  DefaultQValue(Path value)
           
  DefaultQValue(String value, int type)
           
  DefaultQValue(URI value)
           
 
Method Summary
 InputStream getStream()
          Returns an InputStream representation of this QValue object.
 
Methods inherited from class org.apache.jackrabbit.spi.commons.value.AbstractQValue
discard, equals, getBinary, getBoolean, getCalendar, getDecimal, getDouble, getLength, getLong, getName, getPath, getString, getType, getURI, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

protected static final QValue TRUE

FALSE

protected static final QValue FALSE
Constructor Detail

DefaultQValue

public DefaultQValue(String value,
                     int type)

DefaultQValue

public DefaultQValue(Long value)

DefaultQValue

public DefaultQValue(Double value)

DefaultQValue

public DefaultQValue(BigDecimal value)

DefaultQValue

public DefaultQValue(Boolean value)

DefaultQValue

public DefaultQValue(Name value)

DefaultQValue

public DefaultQValue(Path value)

DefaultQValue

public DefaultQValue(URI value)

DefaultQValue

protected DefaultQValue(Calendar value)
Method Detail

getStream

public InputStream getStream()
                      throws RepositoryException
Description copied from interface: QValue
Returns an InputStream representation of this QValue object. This method always returns a new stream.

Specified by:
getStream in interface QValue
Returns:
A stream representation of this value.
Throws:
RepositoryException
See Also:
QValue.getStream()


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