Package io.micronaut.rss.jsonfeed
Class JsonFeedAuthor
java.lang.Object
io.micronaut.rss.jsonfeed.JsonFeedAuthor
A JSON Feed Author.
- Since:
- 2.2.0
- Author:
- Sergio del Amo, mark1626
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
JSON Feed Author's Builder. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull JsonFeedAuthor.Builder
builder()
@Nullable String
the URL for an image for the author.@Nullable String
getName()
Name of the author.@Nullable String
getUrl()
The URL of a site owned by the author.boolean
isEmpty()
void
The URL for an image for the author.void
Name of the author.void
The URL of a site owned by the author.toMap()
-
Field Details
-
KEY_AVATAR
- See Also:
-
KEY_URL
- See Also:
-
KEY_NAME
- See Also:
-
-
Constructor Details
-
JsonFeedAuthor
public JsonFeedAuthor()
-
-
Method Details
-
getName
Name of the author.- Returns:
- name of the author
-
setName
Name of the author.- Parameters:
name
- name of the author
-
getUrl
The URL of a site owned by the author.- Returns:
- the URL of a site owned by the author
-
setUrl
The URL of a site owned by the author.- Parameters:
url
- the URL of a site owned by the author
-
getAvatar
the URL for an image for the author.- Returns:
- the URL for an image for the author.
-
setAvatar
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
- Returns:
- a Map representation of a JSON Feed Author.
-
builder
- Returns:
- JSON Feed Author's Builder.
-