Class ValueFactoryQImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.value.ValueFactoryQImpl
-
- All Implemented Interfaces:
ValueFactory
public class ValueFactoryQImpl extends Object implements ValueFactory
This class implements theValueFactoryinterface, wrapping an existing SPIQValueFactoryand aNamePathResolver.- See Also:
ValueFactory,QValueFactory
-
-
Constructor Summary
Constructors Constructor Description ValueFactoryQImpl(org.apache.jackrabbit.spi.QValueFactory qfactory, NamePathResolver resolver)Constructs a newValueFactoryQImplbased on an existing SPIQValueFactoryand aNamePathResolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinarycreateBinary(InputStream stream)ValuecreateValue(boolean value)ValuecreateValue(double value)ValuecreateValue(long value)ValuecreateValue(InputStream value)ValuecreateValue(String value)ValuecreateValue(String value, int type)ValuecreateValue(BigDecimal value)ValuecreateValue(Calendar value)ValuecreateValue(Binary value)ValuecreateValue(Node value)ValuecreateValue(Node value, boolean weak)ValuecreateValue(org.apache.jackrabbit.spi.QValue qvalue)Create a newValuebased on an existingQValueorg.apache.jackrabbit.spi.QValueFactorygetQValueFactory()TheQValueFactorythat is wrapped by thisValueFactoryinstance.
-
-
-
Constructor Detail
-
ValueFactoryQImpl
public ValueFactoryQImpl(org.apache.jackrabbit.spi.QValueFactory qfactory, NamePathResolver resolver)Constructs a newValueFactoryQImplbased on an existing SPIQValueFactoryand aNamePathResolver.- Parameters:
qfactory- wrappedQValueFactoryresolver- wrappedNamePathResolver
-
-
Method Detail
-
getQValueFactory
public org.apache.jackrabbit.spi.QValueFactory getQValueFactory()
TheQValueFactorythat is wrapped by thisValueFactoryinstance.- Returns:
- qfactory The
QValueFactorywrapped by this instance.
-
createValue
public Value createValue(org.apache.jackrabbit.spi.QValue qvalue)
Create a newValuebased on an existingQValue- Parameters:
qvalue- existingQValue- Returns:
- a
Valuerepresenting theQValue
-
createValue
public Value createValue(String value)
- Specified by:
createValuein interfaceValueFactory
-
createValue
public Value createValue(long value)
- Specified by:
createValuein interfaceValueFactory
-
createValue
public Value createValue(double value)
- Specified by:
createValuein interfaceValueFactory
-
createValue
public Value createValue(boolean value)
- Specified by:
createValuein interfaceValueFactory
-
createValue
public Value createValue(Calendar value)
- Specified by:
createValuein interfaceValueFactory
-
createValue
public Value createValue(InputStream value)
- Specified by:
createValuein interfaceValueFactory
-
createValue
public Value createValue(Node value) throws RepositoryException
- Specified by:
createValuein interfaceValueFactory- Throws:
RepositoryException
-
createValue
public Value createValue(String value, int type) throws ValueFormatException
- Specified by:
createValuein interfaceValueFactory- Throws:
ValueFormatException
-
createBinary
public Binary createBinary(InputStream stream) throws RepositoryException
- Specified by:
createBinaryin interfaceValueFactory- Throws:
RepositoryException
-
createValue
public Value createValue(Binary value)
- Specified by:
createValuein interfaceValueFactory
-
createValue
public Value createValue(BigDecimal value)
- Specified by:
createValuein interfaceValueFactory
-
createValue
public Value createValue(Node value, boolean weak) throws RepositoryException
- Specified by:
createValuein interfaceValueFactory- Throws:
RepositoryException
-
-