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
Nested ClassesModifier and TypeClassDescriptionstatic final classJSON Feed Author's Builder. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull JsonFeedAuthor.Builderbuilder()@Nullable Stringthe URL for an image for the author.@Nullable StringgetName()Name of the author.@Nullable StringgetUrl()The URL of a site owned by the author.booleanisEmpty()voidThe URL for an image for the author.voidName of the author.voidThe 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.
-