Class ValueFactoryQImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.value.ValueFactoryQImpl
-
- All Implemented Interfaces:
ValueFactory
- Direct Known Subclasses:
ValueFactoryImpl
public class ValueFactoryQImpl extends Object implements ValueFactory
This class implements theValueFactory
interface, wrapping an existing SPIQValueFactory
and aNamePathResolver
.- See Also:
ValueFactory
,QValueFactory
-
-
Constructor Summary
Constructors Constructor Description ValueFactoryQImpl(QValueFactory qfactory, NamePathResolver resolver)
Constructs a newValueFactoryQImpl
based on an existing SPIQValueFactory
and aNamePathResolver
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Binary
createBinary(InputStream stream)
Value
createValue(boolean value)
Value
createValue(double value)
Value
createValue(long value)
Value
createValue(InputStream value)
Value
createValue(String value)
Value
createValue(String value, int type)
Value
createValue(BigDecimal value)
Value
createValue(Calendar value)
Value
createValue(Binary value)
Value
createValue(Node value)
Value
createValue(Node value, boolean weak)
Value
createValue(QValue qvalue)
Create a newValue
based on an existingQValue
QValueFactory
getQValueFactory()
TheQValueFactory
that is wrapped by thisValueFactory
instance.
-
-
-
Constructor Detail
-
ValueFactoryQImpl
public ValueFactoryQImpl(QValueFactory qfactory, NamePathResolver resolver)
Constructs a newValueFactoryQImpl
based on an existing SPIQValueFactory
and aNamePathResolver
.- Parameters:
qfactory
- wrappedQValueFactory
resolver
- wrappedNamePathResolver
-
-
Method Detail
-
getQValueFactory
public QValueFactory getQValueFactory()
TheQValueFactory
that is wrapped by thisValueFactory
instance.- Returns:
- qfactory The
QValueFactory
wrapped by this instance.
-
createValue
public Value createValue(QValue qvalue)
Create a newValue
based on an existingQValue
- Parameters:
qvalue
- existingQValue
- Returns:
- a
Value
representing theQValue
-
createValue
public Value createValue(String value)
- Specified by:
createValue
in interfaceValueFactory
-
createValue
public Value createValue(long value)
- Specified by:
createValue
in interfaceValueFactory
-
createValue
public Value createValue(double value)
- Specified by:
createValue
in interfaceValueFactory
-
createValue
public Value createValue(boolean value)
- Specified by:
createValue
in interfaceValueFactory
-
createValue
public Value createValue(Calendar value)
- Specified by:
createValue
in interfaceValueFactory
-
createValue
public Value createValue(InputStream value)
- Specified by:
createValue
in interfaceValueFactory
-
createValue
public Value createValue(Node value) throws RepositoryException
- Specified by:
createValue
in interfaceValueFactory
- Throws:
RepositoryException
-
createValue
public Value createValue(String value, int type) throws ValueFormatException
- Specified by:
createValue
in interfaceValueFactory
- Throws:
ValueFormatException
-
createBinary
public Binary createBinary(InputStream stream) throws RepositoryException
- Specified by:
createBinary
in interfaceValueFactory
- Throws:
RepositoryException
-
createValue
public Value createValue(Binary value)
- Specified by:
createValue
in interfaceValueFactory
-
createValue
public Value createValue(BigDecimal value)
- Specified by:
createValue
in interfaceValueFactory
-
createValue
public Value createValue(Node value, boolean weak) throws RepositoryException
- Specified by:
createValue
in interfaceValueFactory
- Throws:
RepositoryException
-
-