Class DefaultQValue
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.value.AbstractQValue
-
- org.apache.jackrabbit.spi.commons.value.DefaultQValue
-
- All Implemented Interfaces:
java.io.Serializable
,QValue
public class DefaultQValue extends AbstractQValue implements java.io.Serializable
QValue
implementation for all validPropertyType
s except for BINARY.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.spi.QValue
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description DefaultQValue(java.lang.Boolean value)
DefaultQValue(java.lang.Double value)
DefaultQValue(java.lang.Long value)
DefaultQValue(java.lang.String value, int type)
DefaultQValue(java.math.BigDecimal value)
DefaultQValue(java.net.URI value)
DefaultQValue(Name value)
DefaultQValue(Path value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getStream()
Returns anInputStream
representation of thisQValue
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
-
-
-
-
Constructor Detail
-
DefaultQValue
public DefaultQValue(java.lang.String value, int type)
-
DefaultQValue
public DefaultQValue(java.lang.Long value)
-
DefaultQValue
public DefaultQValue(java.lang.Double value)
-
DefaultQValue
public DefaultQValue(java.math.BigDecimal value)
-
DefaultQValue
public DefaultQValue(java.lang.Boolean value)
-
DefaultQValue
public DefaultQValue(Name value)
-
DefaultQValue
public DefaultQValue(Path value)
-
DefaultQValue
public DefaultQValue(java.net.URI value)
-
-
Method Detail
-
getStream
public java.io.InputStream getStream() throws RepositoryException
Description copied from interface:QValue
Returns anInputStream
representation of thisQValue
object. This method always returns a new stream.- Specified by:
getStream
in interfaceQValue
- Returns:
- A stream representation of this value.
- Throws:
RepositoryException
- See Also:
QValue.getStream()
-
-