public final class PropertyStates extends Object
PropertyState instances.| Modifier and Type | Method and Description |
|---|---|
static org.apache.jackrabbit.oak.api.PropertyState |
convert(org.apache.jackrabbit.oak.api.PropertyState state,
org.apache.jackrabbit.oak.api.Type<?> type) |
static @NotNull org.apache.jackrabbit.oak.api.PropertyState |
createProperty(String name,
Iterable<javax.jcr.Value> values)
Create a multi valued
PropertyState based on a list of
Value instances. |
static org.apache.jackrabbit.oak.api.PropertyState |
createProperty(String name,
Iterable<javax.jcr.Value> values,
int type) |
static @NotNull org.apache.jackrabbit.oak.api.PropertyState |
createProperty(String name,
Object value,
org.apache.jackrabbit.oak.api.Type<?> type)
Create a
PropertyState. |
static @NotNull org.apache.jackrabbit.oak.api.PropertyState |
createProperty(String name,
String value,
int type)
Create a
PropertyState from a string. |
static <T> @NotNull org.apache.jackrabbit.oak.api.PropertyState |
createProperty(String name,
T value)
Create a
PropertyState where the Type of the property state
is inferred from the runtime type of T according to the mapping
established through Type. |
static @NotNull org.apache.jackrabbit.oak.api.PropertyState |
createProperty(String name,
javax.jcr.Value value)
Create a
PropertyState based on a Value. |
@NotNull public static @NotNull org.apache.jackrabbit.oak.api.PropertyState createProperty(String name, javax.jcr.Value value) throws javax.jcr.RepositoryException
PropertyState based on a Value. The
Type of the property state is determined by the
type of the value.name - The name of the property statevalue - The value of the property statejavax.jcr.RepositoryException - forwarded from value@NotNull public static @NotNull org.apache.jackrabbit.oak.api.PropertyState createProperty(String name, Iterable<javax.jcr.Value> values) throws javax.jcr.RepositoryException
PropertyState based on a list of
Value instances. The Type of the property is determined
by the type of the first value in the list or Type.STRING if the
list is empty.name - The name of the property statevalues - The values of the property statejavax.jcr.RepositoryException - forwarded from valuepublic static org.apache.jackrabbit.oak.api.PropertyState createProperty(String name, Iterable<javax.jcr.Value> values, int type) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException@NotNull public static @NotNull org.apache.jackrabbit.oak.api.PropertyState createProperty(String name, String value, int type)
PropertyState from a string.name - The name of the property statevalue - The value of the property statetype - The type of the property state@NotNull public static @NotNull org.apache.jackrabbit.oak.api.PropertyState createProperty(String name, Object value, org.apache.jackrabbit.oak.api.Type<?> type)
PropertyState.name - The name of the property statevalue - The value of the property statetype - The type of the property state@NotNull public static <T> @NotNull org.apache.jackrabbit.oak.api.PropertyState createProperty(String name, T value)
PropertyState where the Type of the property state
is inferred from the runtime type of T according to the mapping
established through Type.name - The name of the property statevalue - The value of the property statepublic static org.apache.jackrabbit.oak.api.PropertyState convert(org.apache.jackrabbit.oak.api.PropertyState state,
org.apache.jackrabbit.oak.api.Type<?> type)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.