Class PropertyBuilder<T>
java.lang.Object
org.apache.jackrabbit.oak.plugins.memory.PropertyBuilder<T>
- Type Parameters:
T-
Deprecated.
The Jackrabbit Oak Memory library is designed for Oak-internal use only and thus deprecated. It will not be part of the AEM SDK after October 2025.
PropertyBuilder for building in memory PropertyState instances.-
Constructor Summary
ConstructorsConstructorDescriptionPropertyBuilder(Type<T> type) Deprecated.Create a new instance for buildingPropertyStateinstances of the giventype. -
Method Summary
Modifier and TypeMethodDescription@NotNull PropertyBuilder<T> Deprecated.@NotNull PropertyBuilder<T> Deprecated.static <T> PropertyBuilder<T> Deprecated.Create a new instance for building arrayPropertyStateinstances of the giventype.static <T> PropertyBuilder<T> Deprecated.Create a new instance for building arrayPropertyStateinstances of the giventype.@NotNull PropertyBuilder<T> assignFrom(PropertyState property) Deprecated.static <T> PropertyBuilder<T> copy(Type<T> type, PropertyState property) Deprecated.Create a new instance for buildingPropertyStateinstances of the giventype.intcount()Deprecated.getName()Deprecated.@NotNull PropertyStateDeprecated.getValue()Deprecated.getValue(int index) Deprecated.Deprecated.booleanDeprecated.booleanisArray()Deprecated.booleanisEmpty()Deprecated.@NotNull PropertyBuilder<T> removeValue(int index) Deprecated.@NotNull PropertyBuilder<T> removeValue(Object value) Deprecated.static <T> PropertyBuilder<T> Deprecated.Create a new instance for building scalarPropertyStateinstances of the giventype.static <T> PropertyBuilder<T> Deprecated.Create a new instance for building scalarPropertyStateinstances of the giventype.@NotNull PropertyBuilder<T> setArray()Deprecated.@NotNull PropertyBuilder<T> Deprecated.@NotNull PropertyBuilder<T> Deprecated.@NotNull PropertyBuilder<T> Deprecated.@NotNull PropertyBuilder<T> Deprecated.@NotNull PropertyBuilder<T> Deprecated.
-
Constructor Details
-
PropertyBuilder
Deprecated.Create a new instance for buildingPropertyStateinstances of the giventype.- Parameters:
type- type of thePropertyStateinstances to be built.- Throws:
IllegalArgumentException- iftype.isArray()istrue.
-
-
Method Details
-
scalar
Deprecated.Create a new instance for building scalarPropertyStateinstances of the giventype.- Parameters:
type- type of thePropertyStateinstances to be built.- Returns:
PropertyBuilderfortype
-
array
Deprecated.Create a new instance for building arrayPropertyStateinstances of the giventype.- Parameters:
type- type of thePropertyStateinstances to be built.- Returns:
PropertyBuilderfortype
-
scalar
Deprecated.Create a new instance for building scalarPropertyStateinstances of the giventype. The builder is initialised with the givenname. Equivalent toMemoryPropertyBuilder.create(type).setName(name);- Parameters:
type- type of thePropertyStateinstances to be built.name- initial name- Returns:
PropertyBuilderfortype
-
array
Deprecated.Create a new instance for building arrayPropertyStateinstances of the giventype. The builder is initialised with the givenname. Equivalent toMemoryPropertyBuilder.create(type).setName(name).setArray();- Parameters:
type- type of thePropertyStateinstances to be built.name- initial name- Returns:
PropertyBuilderfortype
-
copy
Deprecated.Create a new instance for buildingPropertyStateinstances of the giventype. The builder is initialised with the name and the values ofproperty. Equivalent toPropertyBuilder.scalar(type).assignFrom(property);- Parameters:
type- type of thePropertyStateinstances to be built.property- initial name and values- Returns:
PropertyBuilderfortype
-
getName
Deprecated. -
getValue
Deprecated. -
getValues
Deprecated. -
getValue
Deprecated. -
hasValue
Deprecated. -
count
public int count()Deprecated. -
isArray
public boolean isArray()Deprecated. -
isEmpty
public boolean isEmpty()Deprecated. -
getPropertyState
Deprecated. -
assignFrom
Deprecated. -
setName
Deprecated. -
setArray
Deprecated. -
setScalar
Deprecated. -
setValue
Deprecated. -
addValue
Deprecated. -
addValues
Deprecated. -
setValue
Deprecated. -
setValues
Deprecated. -
removeValue
Deprecated. -
removeValue
Deprecated.
-