Class JsonFeedAuthor

java.lang.Object
io.micronaut.rss.jsonfeed.JsonFeedAuthor

@Introspected public class JsonFeedAuthor extends Object
A JSON Feed Author.
Since:
2.2.0
Author:
Sergio del Amo, mark1626
See Also:
  • Field Details

  • Constructor Details

    • JsonFeedAuthor

      public JsonFeedAuthor()
  • Method Details

    • getName

      @Nullable public @Nullable String getName()
      Name of the author.
      Returns:
      name of the author
    • setName

      public void setName(@Nullable @Nullable String name)
      Name of the author.
      Parameters:
      name - name of the author
    • getUrl

      @Nullable public @Nullable String getUrl()
      The URL of a site owned by the author.
      Returns:
      the URL of a site owned by the author
    • setUrl

      public void setUrl(@Nullable @Nullable String url)
      The URL of a site owned by the author.
      Parameters:
      url - the URL of a site owned by the author
    • getAvatar

      @Nullable public @Nullable String getAvatar()
      the URL for an image for the author.
      Returns:
      the URL for an image for the author.
    • setAvatar

      public void setAvatar(@Nullable @Nullable String avatar)
      The URL for an image for the author. It should be square and relatively large such as 512 x 512 pixels and should use transparency where appropriate, since it may be rendered on a non-white background.
      Parameters:
      avatar - the URL for an image for the author.
    • isEmpty

      public boolean isEmpty()
      Returns:
      true if all author's, name, url and avatar are empty or null.
    • toMap

      @NonNull public @NonNull Map<String,Object> toMap()
      Returns:
      a Map representation of a JSON Feed Author.
    • builder

      @NonNull public static @NonNull JsonFeedAuthor.Builder builder()
      Returns:
      JSON Feed Author's Builder.