Interface ListAttribute<X,​E>

Type Parameters:
X - The type of the declaring entity view
E - The element type of the represented List
All Superinterfaces:
Attribute<X,​List<E>>, PluralAttribute<X,​List<E>,​E>
All Known Subinterfaces:
MethodListAttribute<X,​E>, MethodMultiListAttribute<X,​E,​C>

public interface ListAttribute<X,​E>
extends PluralAttribute<X,​List<E>,​E>
Instances of the type ListAttribute represent List-valued attributes.
Since:
1.0.0
Author:
Christian Beikov
  • Method Details

    • getCollectionInstantiator

      <R extends List<E> & RecordingContainer<? extends List<E>>> CollectionInstantiator<List<E>,​R> getCollectionInstantiator()
      Returns the collection instantiator for this attribute.
      Type Parameters:
      R - The recording collection type
      Returns:
      The collection instantiator
      Since:
      1.5.0
    • getIndexMapping

      String getIndexMapping()
      Returns the index mapping of the attribute.
      Returns:
      The index mapping of the attribute
      Since:
      1.5.0
    • renderIndexMapping

      void renderIndexMapping​(String parent, ServiceProvider serviceProvider, StringBuilder sb)
      Renders the index mapping for the given parent expression to the given string builder.
      Parameters:
      parent - The parent expression
      serviceProvider - The service provider
      sb - The string builder
      Since:
      1.5.0