Enum RelatedLinkTitleOption

    • Enum Constant Detail

      • DEFAULT

        public static final RelatedLinkTitleOption DEFAULT
        Default option: use the title from the linked item as title for internal links or the full url for external links.
      • NONE

        public static final RelatedLinkTitleOption NONE
        None option: use no title attribute for the link (so no title attribute will be added)
    • Method Detail

      • values

        public static RelatedLinkTitleOption[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RelatedLinkTitleOption c : RelatedLinkTitleOption.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RelatedLinkTitleOption valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • intValue

        public int intValue()
        Returns the option as int
        Returns:
        int value of the option
      • fromInt

        public static RelatedLinkTitleOption fromInt​(Integer id)
        Returns the option from an Integer representing the option.
        Parameters:
        id - The id of the option to retrieve
        Returns:
        the option
      • fromString

        public static RelatedLinkTitleOption fromString​(String id)
        Returns the option from a String representing the option.
        Parameters:
        id - The id of the option to retrieve
        Returns:
        the option