Class DefaultQValue
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.value.AbstractQValue
-
- org.apache.jackrabbit.spi.commons.value.DefaultQValue
-
- All Implemented Interfaces:
Serializable
,QValue
public class DefaultQValue extends AbstractQValue implements Serializable
QValue
implementation for all validPropertyType
s except for BINARY.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Modifier Constructor Description DefaultQValue(Boolean value)
DefaultQValue(Double value)
DefaultQValue(Long value)
DefaultQValue(String value, int type)
DefaultQValue(BigDecimal value)
DefaultQValue(URI value)
protected
DefaultQValue(Calendar value)
DefaultQValue(Name value)
DefaultQValue(Path value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(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 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()
-
-