public class ValueFactoryQImpl extends Object implements 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 |
---|---|
Binary |
createBinary(InputStream stream) |
Value |
createValue(BigDecimal value) |
Value |
createValue(Binary value) |
Value |
createValue(boolean value) |
Value |
createValue(Calendar value) |
Value |
createValue(double value) |
Value |
createValue(InputStream value) |
Value |
createValue(long value) |
Value |
createValue(Node value) |
Value |
createValue(Node value,
boolean weak) |
Value |
createValue(QValue qvalue)
Create a new
Value based on an existing
QValue |
Value |
createValue(String value) |
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 Value createValue(QValue qvalue)
Value
based on an existing
QValue
qvalue
- existing QValue
Value
representing the QValue
public Value createValue(String value)
createValue
in interface ValueFactory
public Value createValue(long value)
createValue
in interface ValueFactory
public Value createValue(double value)
createValue
in interface ValueFactory
public Value createValue(boolean value)
createValue
in interface ValueFactory
public Value createValue(Calendar value)
createValue
in interface ValueFactory
public Value createValue(InputStream value)
createValue
in interface ValueFactory
public Value createValue(Node value) throws RepositoryException
createValue
in interface ValueFactory
RepositoryException
public Value createValue(String value, int type) throws ValueFormatException
createValue
in interface ValueFactory
ValueFormatException
public Binary createBinary(InputStream stream) throws RepositoryException
createBinary
in interface ValueFactory
RepositoryException
public Value createValue(Binary value)
createValue
in interface ValueFactory
public Value createValue(BigDecimal value)
createValue
in interface ValueFactory
public Value createValue(Node value, boolean weak) throws RepositoryException
createValue
in interface ValueFactory
RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.