public class PartialValueFactory
extends java.lang.Object
Value
around a PropertyState
.Modifier and Type | Field and Description |
---|---|
static @NotNull org.apache.jackrabbit.oak.api.blob.BlobAccessProvider |
DEFAULT_BLOB_ACCESS_PROVIDER
This default blob access provider is a no-op implementation.
|
Constructor and Description |
---|
PartialValueFactory(@NotNull NamePathMapper namePathMapper)
Creates a new value factory stub using the given
NamePathMapper . |
PartialValueFactory(@NotNull NamePathMapper namePathMapper,
@NotNull org.apache.jackrabbit.oak.api.blob.BlobAccessProvider blobAccessProvider)
Creates a new value factory stub using the given
NamePathMapper
and BlobAccessProvider . |
Modifier and Type | Method and Description |
---|---|
@NotNull Value |
createValue(@NotNull java.math.BigDecimal value) |
@NotNull Value |
createValue(boolean value) |
@NotNull Value |
createValue(@NotNull java.util.Calendar value) |
@NotNull Value |
createValue(double value) |
@NotNull Value |
createValue(long value) |
@NotNull Value |
createValue(@NotNull Node value) |
@NotNull Value |
createValue(@NotNull Node value,
boolean weak) |
@NotNull Value |
createValue(@NotNull PropertyState property)
Utility method for creating a
Value based on a
PropertyState . |
@NotNull Value |
createValue(@NotNull java.lang.String value) |
@NotNull Value |
createValue(java.lang.String value,
int type) |
@NotNull java.util.List<Value> |
createValues(@NotNull PropertyState property)
Utility method for creating
Value s based on a
PropertyState . |
@NotNull NamePathMapper |
getNamePathMapper() |
@NotNull public static final @NotNull org.apache.jackrabbit.oak.api.blob.BlobAccessProvider DEFAULT_BLOB_ACCESS_PROVIDER
public PartialValueFactory(@NotNull @NotNull NamePathMapper namePathMapper)
NamePathMapper
.
The factory instance created with this constructor does not have a
BlobAccessProvider
and any Binary
retrieved from a
Value
returned by this factory instance will not provide a
download URI.namePathMapper
- the name path mapper.public PartialValueFactory(@NotNull @NotNull NamePathMapper namePathMapper, @NotNull @NotNull org.apache.jackrabbit.oak.api.blob.BlobAccessProvider blobAccessProvider)
NamePathMapper
and BlobAccessProvider
.namePathMapper
- the name path mapper.blobAccessProvider
- the blob access provider.@NotNull public @NotNull NamePathMapper getNamePathMapper()
NamePathMapper
used by this value factory.@NotNull public @NotNull Value createValue(@NotNull @NotNull PropertyState property)
Value
based on a
PropertyState
.property
- The property stateValue
instancejava.lang.IllegalArgumentException
- if property.isArray()
is
true
.@NotNull public @NotNull java.util.List<Value> createValues(@NotNull @NotNull PropertyState property)
Value
s based on a
PropertyState
.property
- The property stateValue
instances@NotNull public @NotNull Value createValue(@NotNull @NotNull java.lang.String value)
@NotNull public @NotNull Value createValue(long value)
@NotNull public @NotNull Value createValue(double value)
@NotNull public @NotNull Value createValue(@NotNull @NotNull java.util.Calendar value)
@NotNull public @NotNull Value createValue(boolean value)
@NotNull public @NotNull Value createValue(@NotNull @NotNull Node value) throws RepositoryException
RepositoryException
@NotNull public @NotNull Value createValue(@NotNull @NotNull Node value, boolean weak) throws RepositoryException
RepositoryException
@NotNull public @NotNull Value createValue(@NotNull @NotNull java.math.BigDecimal value)
@NotNull public @NotNull Value createValue(java.lang.String value, int type) throws ValueFormatException
ValueFormatException
Copyright © 2010 - 2020 Adobe. All Rights Reserved