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 Detail

      • getTitle

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

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

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