|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.value.QValueFactoryImpl
public final class QValueFactoryImpl
QValueFactoryImpl...
| Method Summary | |
|---|---|
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(boolean value)
Create a new QValue with type PropertyType.BOOLEAN. |
QValue |
create(byte[] value)
Create a new QValue with type PropertyType.BINARY. |
QValue |
create(java.util.Calendar value)
Create a new QValue with type PropertyType.DATE. |
QValue |
create(double value)
Create a new QValue with type PropertyType.DOUBLE. |
QValue |
create(java.io.File value)
Create a new QValue with type 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 PropertyType.LONG. |
QValue |
create(Name value)
Create a new QValue with type PropertyType.NAME. |
QValue |
create(Path value)
Create a new QValue with type 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. |
static QValueFactory |
getInstance()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static QValueFactory getInstance()
public QValue create(java.lang.String value,
int type)
throws javax.jcr.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.
javax.jcr.ValueFormatException - If the given value cannot be
converted to the specified type.
javax.jcr.RepositoryException - If another error occurs.QValueFactory.create(String, int)public QValue create(java.util.Calendar value)
QValueFactoryQValue with type PropertyType.DATE.
create in interface QValueFactoryvalue - A non-null Calendar object acting as value
of the new QValue.
QValue.QValueFactory.create(Calendar)public QValue create(double value)
QValueFactoryQValue with type PropertyType.DOUBLE.
create in interface QValueFactoryvalue - A double containing the value
of the new QValue.
QValue.QValueFactory.create(double)public QValue create(long value)
QValueFactoryQValue with type PropertyType.LONG.
create in interface QValueFactoryvalue - A long containing the value
of the new QValue.
QValue.QValueFactory.create(long)public QValue create(boolean value)
QValueFactoryQValue with type PropertyType.BOOLEAN.
create in interface QValueFactoryvalue - A boolean containing the value
of the new QValue.
QValue.QValueFactory.create(boolean)public QValue create(Name value)
QValueFactoryQValue with type PropertyType.NAME.
create in interface QValueFactoryvalue - A non-null Name.
QValue.QValueFactory.create(Name)public QValue create(Path value)
QValueFactoryQValue with type PropertyType.PATH.
create in interface QValueFactoryvalue - A non-null Path.
QValue.QValueFactory.create(Path)public QValue create(byte[] value)
QValueFactoryQValue with type PropertyType.BINARY.
create in interface QValueFactoryQValue.QValueFactory.create(byte[])
public QValue create(java.io.InputStream value)
throws java.io.IOException
QValueFactoryPropertyType.BINARY.
create in interface QValueFactoryvalue - binary stream
QValue.
java.io.IOException - if the stream can not be consumedQValueFactory.create(InputStream)
public QValue create(java.io.File value)
throws java.io.IOException
QValueFactoryQValue with type PropertyType.BINARY.
create in interface QValueFactoryQValue.
java.io.IOExceptionQValueFactory.create(File)
public QValue[] computeAutoValues(QPropertyDefinition propertyDefinition)
throws javax.jcr.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 created
javax.jcr.RepositoryExceptionQValueFactory.computeAutoValues(QPropertyDefinition)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||