|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.value.AbstractQValueFactory
org.apache.jackrabbit.core.value.InternalValueFactory
public final class InternalValueFactory
InternalValueFactory implements a QValueFactory that
creates InternalValue instances for binary values.
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.spi.commons.value.AbstractQValueFactory |
|---|
DEFAULT_ENCODING, NAME_FACTORY, PATH_FACTORY |
| Method Summary | |
|---|---|
QValue |
create(BigDecimal value)
Create a new QValue with type PropertyType.DECIMAL. |
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(Calendar value)
Create a new QValue with type PropertyType.DATE. |
QValue |
create(double value)
Create a new QValue with type PropertyType.DOUBLE. |
QValue |
create(File value)
Create a new QValue with type PropertyType.BINARY. |
QValue |
create(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(URI value)
Create a new QValue with type PropertyType.URI. |
protected QValue |
createReference(String ref,
boolean weak)
Creates a new QValue of type REFERENCE or WEAKREFERENCE. |
protected QValue |
createString(String value)
Creates a new QValue of type STRING. |
static QValueFactory |
getInstance()
|
| Methods inherited from class org.apache.jackrabbit.spi.commons.value.AbstractQValueFactory |
|---|
computeAutoValues, create |
| 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(Calendar value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.DATE.
create in interface QValueFactorycreate in class AbstractQValueFactoryvalue - 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 PropertyType.DOUBLE.
create in interface QValueFactorycreate in class AbstractQValueFactoryvalue - A double containing the value
of the new QValue.
QValue.
RepositoryExceptionQValueFactory.create(double)
public QValue create(long value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.LONG.
create in interface QValueFactorycreate in class AbstractQValueFactoryvalue - A long containing the value
of the new QValue.
QValue.
RepositoryExceptionQValueFactory.create(long)
public QValue create(boolean value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.BOOLEAN.
create in interface QValueFactorycreate in class AbstractQValueFactoryvalue - A boolean containing the value
of the new QValue.
QValue.
RepositoryExceptionQValueFactory.create(boolean)
public QValue create(Name value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.NAME.
create in interface QValueFactorycreate in class AbstractQValueFactoryvalue - A non-null Name.
QValue.
RepositoryExceptionQValueFactory.create(Name)
public QValue create(Path value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.PATH.
create in interface QValueFactorycreate in class AbstractQValueFactoryvalue - A non-null Path.
QValue.
RepositoryExceptionQValueFactory.create(Path)
public QValue create(URI value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.URI.
create in interface QValueFactorycreate in class AbstractQValueFactoryvalue - A non-null URI.
QValue.
RepositoryExceptionQValueFactory.create(URI)
public QValue create(BigDecimal value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.DECIMAL.
create in interface QValueFactorycreate in class AbstractQValueFactoryvalue - A non-null BigDecimal.
QValue.
RepositoryExceptionQValueFactory.create(URI)
public QValue create(byte[] value)
throws RepositoryException
QValueFactoryQValue with type PropertyType.BINARY.
QValue.
RepositoryException
public QValue create(InputStream value)
throws RepositoryException,
IOException
QValueFactoryPropertyType.BINARY.
value - binary stream
QValue.
RepositoryException - if the value could not be created
IOException - if the stream can not be consumed
public QValue create(File value)
throws RepositoryException,
IOException
QValueFactoryQValue with type PropertyType.BINARY.
QValue.
IOException
RepositoryException
protected QValue createReference(String ref,
boolean weak)
AbstractQValueFactory
createReference in class AbstractQValueFactoryref - the reference value.weak - whether the reference is weak.
protected QValue createString(String value)
AbstractQValueFactory
createString in class AbstractQValueFactoryvalue - the string value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||