Class PropertyBuilder<T>

java.lang.Object
org.apache.jackrabbit.oak.plugins.memory.PropertyBuilder<T>
Type Parameters:
T -

@Deprecated(since="2025-04-15") public class PropertyBuilder<T> extends Object
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 Details

    • PropertyBuilder

      public PropertyBuilder(Type<T> type)
      Deprecated.
      Create a new instance for building PropertyState instances of the given type.
      Parameters:
      type - type of the PropertyState instances to be built.
      Throws:
      IllegalArgumentException - if type.isArray() is true.
  • Method Details

    • scalar

      public static <T> PropertyBuilder<T> scalar(Type<T> type)
      Deprecated.
      Create a new instance for building scalar PropertyState instances of the given type.
      Parameters:
      type - type of the PropertyState instances to be built.
      Returns:
      PropertyBuilder for type
    • array

      public static <T> PropertyBuilder<T> array(Type<T> type)
      Deprecated.
      Create a new instance for building array PropertyState instances of the given type.
      Parameters:
      type - type of the PropertyState instances to be built.
      Returns:
      PropertyBuilder for type
    • scalar

      public static <T> PropertyBuilder<T> scalar(Type<T> type, String name)
      Deprecated.
      Create a new instance for building scalar PropertyState instances of the given type. The builder is initialised with the given name. Equivalent to
           MemoryPropertyBuilder.create(type).setName(name);
       
      Parameters:
      type - type of the PropertyState instances to be built.
      name - initial name
      Returns:
      PropertyBuilder for type
    • array

      public static <T> PropertyBuilder<T> array(Type<T> type, String name)
      Deprecated.
      Create a new instance for building array PropertyState instances of the given type. The builder is initialised with the given name. Equivalent to
           MemoryPropertyBuilder.create(type).setName(name).setArray();
       
      Parameters:
      type - type of the PropertyState instances to be built.
      name - initial name
      Returns:
      PropertyBuilder for type
    • copy

      public static <T> PropertyBuilder<T> copy(Type<T> type, PropertyState property)
      Deprecated.
      Create a new instance for building PropertyState instances of the given type. The builder is initialised with the name and the values of property. Equivalent to
           PropertyBuilder.scalar(type).assignFrom(property);
       
      Parameters:
      type - type of the PropertyState instances to be built.
      property - initial name and values
      Returns:
      PropertyBuilder for type
    • getName

      public String getName()
      Deprecated.
    • getValue

      public T getValue()
      Deprecated.
    • getValues

      @NotNull public @NotNull List<T> getValues()
      Deprecated.
    • getValue

      public T getValue(int index)
      Deprecated.
    • hasValue

      public boolean hasValue(Object value)
      Deprecated.
    • count

      public int count()
      Deprecated.
    • isArray

      public boolean isArray()
      Deprecated.
    • isEmpty

      public boolean isEmpty()
      Deprecated.
    • getPropertyState

      @NotNull public @NotNull PropertyState getPropertyState()
      Deprecated.
    • assignFrom

      @NotNull public @NotNull PropertyBuilder<T> assignFrom(PropertyState property)
      Deprecated.
    • setName

      @NotNull public @NotNull PropertyBuilder<T> setName(String name)
      Deprecated.
    • setArray

      @NotNull public @NotNull PropertyBuilder<T> setArray()
      Deprecated.
    • setScalar

      @NotNull public @NotNull PropertyBuilder<T> setScalar()
      Deprecated.
    • setValue

      @NotNull public @NotNull PropertyBuilder<T> setValue(T value)
      Deprecated.
    • addValue

      @NotNull public @NotNull PropertyBuilder<T> addValue(T value)
      Deprecated.
    • addValues

      @NotNull public @NotNull PropertyBuilder<T> addValues(Iterable<T> values)
      Deprecated.
    • setValue

      @NotNull public @NotNull PropertyBuilder<T> setValue(T value, int index)
      Deprecated.
    • setValues

      @NotNull public @NotNull PropertyBuilder<T> setValues(Iterable<T> values)
      Deprecated.
    • removeValue

      @NotNull public @NotNull PropertyBuilder<T> removeValue(int index)
      Deprecated.
    • removeValue

      @NotNull public @NotNull PropertyBuilder<T> removeValue(Object value)
      Deprecated.