public abstract class AbstractQValueFactory extends java.lang.Object implements QValueFactory
AbstractQValueFactory...| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_ENCODING
the default encoding
|
| Constructor and Description |
|---|
AbstractQValueFactory() |
| 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(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(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. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, createpublic static final java.lang.String DEFAULT_ENCODING
public QValue[] computeAutoValues(QPropertyDefinition propertyDefinition) throws RepositoryException
QValueFactoryQPropertyDefinition of an autocreated
property, compute suitable values to be used in transient space until
the newly created node gets saved.computeAutoValues in interface QValueFactorypropertyDefinition - definition of property for which values should be createdRepositoryExceptionQValueFactory.computeAutoValues(org.apache.jackrabbit.spi.QPropertyDefinition)public QValue create(java.lang.String value, int type) throws RepositoryException
QValueFactoryQValue using the given String representation
of the value and its type.create in interface QValueFactoryvalue - String representation of the new QValue. Note,
that the given String must never be null.type - A valid type.QValue.RepositoryException - If another error occurs.QValueFactory.create(String, int)public QValue create(java.util.Calendar value) throws RepositoryException
QValueFactoryQValue with type javax.jcr.PropertyType#DATE.create in interface QValueFactoryvalue - A non-null Calendar object acting as value
of the new QValue.QValue.RepositoryExceptionQValueFactory.create(Calendar)public QValue create(double value) throws RepositoryException
QValueFactoryQValue with type javax.jcr.PropertyType#DOUBLE.create in interface QValueFactoryvalue - A double containing the value
of the new QValue.QValue.RepositoryExceptionQValueFactory.create(double)public QValue create(long value) throws RepositoryException
QValueFactoryQValue with type javax.jcr.PropertyType#LONG.create in interface QValueFactoryvalue - A long containing the value
of the new QValue.QValue.RepositoryExceptionQValueFactory.create(long)public QValue create(boolean value) throws RepositoryException
QValueFactoryQValue with type javax.jcr.PropertyType#BOOLEAN.create in interface QValueFactoryvalue - A boolean containing the value
of the new QValue.QValue.RepositoryExceptionQValueFactory.create(boolean)public QValue create(Name value) throws RepositoryException
QValueFactoryQValue with type javax.jcr.PropertyType#NAME.create in interface QValueFactoryvalue - A non-null Name.QValue.RepositoryExceptionQValueFactory.create(Name)public QValue create(Path value) throws RepositoryException
QValueFactoryQValue with type javax.jcr.PropertyType#PATH.create in interface QValueFactoryvalue - A non-null Path.QValue.RepositoryExceptionQValueFactory.create(Path)public QValue create(java.net.URI value) throws RepositoryException
QValueFactoryQValue with type javax.jcr.PropertyType#URI.create in interface QValueFactoryvalue - A non-null URI.QValue.RepositoryExceptionQValueFactory.create(URI)public QValue create(java.math.BigDecimal value) throws RepositoryException
QValueFactoryQValue with type javax.jcr.PropertyType#DECIMAL.create in interface QValueFactoryvalue - A non-null BigDecimal.QValue.RepositoryExceptionQValueFactory.create(URI)"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"