Interface GenericList.Item

Enclosing interface:
GenericList

@Model(adaptables=org.apache.sling.api.resource.Resource.class, defaultInjectionStrategy=OPTIONAL, resourceType="acs-commons/components/utilities/genericlist/item") public static interface GenericList.Item
A generic item/value pair within a list.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Get the item's title.
    @NotNull String
    getTitle(Locale locale)
    Get the item's localized title.
    @NotNull String
    Get the item's value.
  • Method Details

    • getTitle

      @NotNull @Inject @Named("jcr:title") @NotNull String getTitle()
      Get the item's title.
      Returns:
      the title
    • getTitle

      @NotNull @NotNull String getTitle(Locale locale)
      Get the item's localized title.
      Parameters:
      locale - the locale for localization
      Returns:
      the title
    • getValue

      @NotNull @Inject @Named("value") @NotNull String getValue()
      Get the item's value.
      Returns:
      the value