public class ValueFactoryImpl extends Object implements ValueFactory
ValueFactory interface.| Constructor and Description |
|---|
ValueFactoryImpl(@NotNull org.apache.jackrabbit.oak.api.Root root,
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Creates a new instance of
ValueFactory. |
public ValueFactoryImpl(@NotNull
@NotNull org.apache.jackrabbit.oak.api.Root root,
@NotNull
@NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
ValueFactory.root - the root instance for creating binary valuesnamePathMapper - The name/path mapping used for converting JCR names/paths to
the internal representation.public static Value createValue(org.apache.jackrabbit.oak.api.PropertyState property, org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Value based on a PropertyState.property - The property statenamePathMapper - The name/path mapping used for converting JCR names/paths to
the internal representation.Value instanceIllegalArgumentException - if property.isArray() is true.@NotNull public static @NotNull Value createValue(@NotNull @NotNull org.apache.jackrabbit.oak.api.PropertyValue property, @NotNull @NotNull org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Value based on a PropertyValue.property - The property valuenamePathMapper - The name/path mapping used for converting JCR names/paths to
the internal representation.Value instanceIllegalArgumentException - if property.isArray() is true.public static List<Value> createValues(org.apache.jackrabbit.oak.api.PropertyState property, org.apache.jackrabbit.oak.namepath.NamePathMapper namePathMapper)
Values based on a PropertyState.property - The property statenamePathMapper - The name/path mapping used for converting JCR names/paths to
the internal representation.Value instancespublic List<Value> createValues(org.apache.jackrabbit.oak.api.PropertyState property)
Values based on a PropertyState.property - The property stateValue instancespublic Value createValue(String value)
createValue in interface ValueFactorypublic Value createValue(InputStream value)
createValue in interface ValueFactorypublic Value createValue(Binary value)
createValue in interface ValueFactorypublic Value createValue(long value)
createValue in interface ValueFactorypublic Value createValue(double value)
createValue in interface ValueFactorypublic Value createValue(Calendar value)
createValue in interface ValueFactorypublic Value createValue(boolean value)
createValue in interface ValueFactorypublic Value createValue(Node value) throws RepositoryException
createValue in interface ValueFactoryRepositoryExceptionpublic Value createValue(Node value, boolean weak) throws RepositoryException
createValue in interface ValueFactoryRepositoryExceptionpublic Value createValue(BigDecimal value)
createValue in interface ValueFactorypublic Value createValue(String value, int type) throws ValueFormatException
createValue in interface ValueFactoryValueFormatExceptionpublic Binary createBinary(InputStream stream) throws RepositoryException
createBinary in interface ValueFactoryRepositoryExceptionCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.