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
QValueimplementation for all validPropertyTypes except for BINARY.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static QValueFALSEprotected static QValueTRUE-
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)protectedDefaultQValue(Calendar value)DefaultQValue(Name value)DefaultQValue(Path value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetStream()Returns anInputStreamrepresentation of thisQValueobject.-
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:QValueReturns anInputStreamrepresentation of thisQValueobject. This method always returns a new stream.- Specified by:
getStreamin interfaceQValue- Returns:
- A stream representation of this value.
- Throws:
RepositoryException- See Also:
QValue.getStream()
-
-