public class ValueFactoryQImpl extends Object implements javax.jcr.ValueFactory
ValueFactory
interface,
wrapping an existing SPI QValueFactory
and a
NamePathResolver
.ValueFactory
,
QValueFactory
Constructor and Description |
---|
ValueFactoryQImpl(QValueFactory qfactory,
NamePathResolver resolver)
Constructs a new
ValueFactoryQImpl based
on an existing SPI QValueFactory and a
NamePathResolver . |
Modifier and Type | Method and Description |
---|---|
javax.jcr.Binary |
createBinary(InputStream stream) |
javax.jcr.Value |
createValue(BigDecimal value) |
javax.jcr.Value |
createValue(javax.jcr.Binary value) |
javax.jcr.Value |
createValue(boolean value) |
javax.jcr.Value |
createValue(Calendar value) |
javax.jcr.Value |
createValue(double value) |
javax.jcr.Value |
createValue(InputStream value) |
javax.jcr.Value |
createValue(long value) |
javax.jcr.Value |
createValue(javax.jcr.Node value) |
javax.jcr.Value |
createValue(javax.jcr.Node value,
boolean weak) |
javax.jcr.Value |
createValue(QValue qvalue)
Create a new
Value based on an existing
QValue |
javax.jcr.Value |
createValue(String value) |
javax.jcr.Value |
createValue(String value,
int type) |
QValueFactory |
getQValueFactory()
The
QValueFactory that is wrapped by this ValueFactory
instance. |
public ValueFactoryQImpl(QValueFactory qfactory, NamePathResolver resolver)
ValueFactoryQImpl
based
on an existing SPI QValueFactory
and a
NamePathResolver
.qfactory
- wrapped QValueFactory
resolver
- wrapped NamePathResolver
public QValueFactory getQValueFactory()
QValueFactory
that is wrapped by this ValueFactory
instance.QValueFactory
wrapped by this instance.public javax.jcr.Value createValue(QValue qvalue)
Value
based on an existing
QValue
qvalue
- existing QValue
Value
representing the QValue
public javax.jcr.Value createValue(String value)
createValue
in interface javax.jcr.ValueFactory
public javax.jcr.Value createValue(long value)
createValue
in interface javax.jcr.ValueFactory
public javax.jcr.Value createValue(double value)
createValue
in interface javax.jcr.ValueFactory
public javax.jcr.Value createValue(boolean value)
createValue
in interface javax.jcr.ValueFactory
public javax.jcr.Value createValue(Calendar value)
createValue
in interface javax.jcr.ValueFactory
public javax.jcr.Value createValue(InputStream value)
createValue
in interface javax.jcr.ValueFactory
public javax.jcr.Value createValue(javax.jcr.Node value) throws javax.jcr.RepositoryException
createValue
in interface javax.jcr.ValueFactory
javax.jcr.RepositoryException
public javax.jcr.Value createValue(String value, int type) throws javax.jcr.ValueFormatException
createValue
in interface javax.jcr.ValueFactory
javax.jcr.ValueFormatException
public javax.jcr.Binary createBinary(InputStream stream) throws javax.jcr.RepositoryException
createBinary
in interface javax.jcr.ValueFactory
javax.jcr.RepositoryException
public javax.jcr.Value createValue(javax.jcr.Binary value)
createValue
in interface javax.jcr.ValueFactory
public javax.jcr.Value createValue(BigDecimal value)
createValue
in interface javax.jcr.ValueFactory
public javax.jcr.Value createValue(javax.jcr.Node value, boolean weak) throws javax.jcr.RepositoryException
createValue
in interface javax.jcr.ValueFactory
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.