public interface QValueFactory
QValueFactory
defines methods to create QValue
instances.Modifier and Type | Method and Description |
---|---|
QValue[] |
computeAutoValues(QPropertyDefinition propertyDefinition)
Given the
QPropertyDefinition of an autocreated
property, compute suitable values to be used in transient space until
the newly created node gets saved. |
QValue |
create(java.math.BigDecimal value)
Create a new
QValue with type javax.jcr.PropertyType#DECIMAL . |
QValue |
create(boolean value)
Create a new
QValue with type javax.jcr.PropertyType#BOOLEAN . |
QValue |
create(byte[] value)
Create a new
QValue with type javax.jcr.PropertyType#BINARY . |
QValue |
create(java.util.Calendar value)
Create a new
QValue with type javax.jcr.PropertyType#DATE . |
QValue |
create(double value)
Create a new
QValue with type javax.jcr.PropertyType#DOUBLE . |
QValue |
create(java.io.File value)
Create a new
QValue with type javax.jcr.PropertyType#BINARY . |
QValue |
create(java.io.InputStream value)
Creates a QValue that contains the given binary stream.
|
QValue |
create(long value)
Create a new
QValue with type javax.jcr.PropertyType#LONG . |
QValue |
create(Name value)
Create a new
QValue with type javax.jcr.PropertyType#NAME . |
QValue |
create(Path value)
Create a new
QValue with type javax.jcr.PropertyType#PATH . |
QValue |
create(java.lang.String value,
int type)
Create a new
QValue using the given String representation
of the value and its type . |
QValue |
create(java.net.URI value)
Create a new
QValue with type javax.jcr.PropertyType#URI . |
QValue create(java.lang.String value, int type) throws ValueFormatException, RepositoryException
QValue
using the given String representation
of the value and its type
.value
- String representation of the new QValue
. Note,
that the given String must never be null
.type
- A valid type
.QValue
.ValueFormatException
- If the given value
cannot be
converted to the specified type
.RepositoryException
- If another error occurs.QValue.getType()
QValue create(java.util.Calendar value) throws RepositoryException
QValue
with type javax.jcr.PropertyType#DATE
.value
- A non-null Calendar
object acting as value
of the new QValue
.QValue
.RepositoryException
QValue create(double value) throws RepositoryException
QValue
with type javax.jcr.PropertyType#DOUBLE
.value
- A double
containing the value
of the new QValue
.QValue
.RepositoryException
QValue create(long value) throws RepositoryException
QValue
with type javax.jcr.PropertyType#LONG
.value
- A long
containing the value
of the new QValue
.QValue
.RepositoryException
QValue create(boolean value) throws RepositoryException
QValue
with type javax.jcr.PropertyType#BOOLEAN
.value
- A boolean
containing the value
of the new QValue
.QValue
.RepositoryException
QValue create(Name value) throws RepositoryException
QValue
with type javax.jcr.PropertyType#NAME
.value
- A non-null Name
.QValue
.RepositoryException
QValue create(Path value) throws RepositoryException
QValue
with type javax.jcr.PropertyType#PATH
.value
- A non-null Path
.QValue
.RepositoryException
QValue create(java.math.BigDecimal value) throws RepositoryException
QValue
with type javax.jcr.PropertyType#DECIMAL
.value
- A non-null BigDecimal
.QValue
.RepositoryException
QValue create(java.net.URI value) throws RepositoryException
QValue
with type javax.jcr.PropertyType#URI
.value
- A non-null URI
.QValue
.RepositoryException
QValue create(byte[] value) throws RepositoryException
QValue
with type javax.jcr.PropertyType#BINARY
.value
- QValue
.RepositoryException
QValue create(java.io.InputStream value) throws RepositoryException, java.io.IOException
javax.jcr.PropertyType#BINARY
.value
- binary streamQValue
.RepositoryException
- if the value could not be createdjava.io.IOException
- if the stream can not be consumedQValue create(java.io.File value) throws RepositoryException, java.io.IOException
QValue
with type javax.jcr.PropertyType#BINARY
.value
- QValue
.java.io.IOException
RepositoryException
QValue[] computeAutoValues(QPropertyDefinition propertyDefinition) throws RepositoryException
QPropertyDefinition
of an autocreated
property, compute suitable values to be used in transient space until
the newly created node gets saved.propertyDefinition
- definition of property for which values should be createdRepositoryException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"