Package com.attribyte.parser.model
Class Entry.Builder
java.lang.Object
com.attribyte.parser.model.Entry.Builder
- Enclosing class:
Entry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAltLink(String altLink) Adds an alternate link.Adds an audio stream.Adds an author.addCitation(Link citation) Adds a citation.Adds an image.Adds a tag.Adds a video.build()Builds an immutable entry.com.google.common.collect.ImmutableList<String> Gets an immutable list of alt links.com.google.common.collect.ImmutableList<Audio> Gets an immutable list of audio streams.com.google.common.collect.ImmutableList<Author> Gets an immutable list of authors.Gets the canonical link.com.google.common.collect.ImmutableList<Link> Gets an immutable list citations.Gets the clean content.getId()Gets the id.com.google.common.collect.ImmutableList<Image> Gets an immutable list of images.org.jsoup.nodes.DocumentGets the (parsed) original content.Gets the primary audio stream.Gets the primary image.Gets the primary video.longGets the published timestamp.Gets the rights.Gets the summary.com.google.common.collect.ImmutableList<String> getTags()Gets an immutable list of tags.getTitle()Gets the title.longGets the updated timestamp.com.google.common.collect.ImmutableList<Video> Gets an immutable list of videos.setAltLinks(List<String> altLinks) Sets the list of alt links.Sets the list of audio streams.setAuthors(List<Author> authors) Sets the list of authors.setCanonicalLink(String canonicalLink) Sets the canonical link.setCitations(List<Link> citations) Sets the list of citations.setCleanContent(String cleanContent) Sets the clean content.Sets the id.Sets the list of images.setOriginalContent(org.jsoup.nodes.Document originalContent) Sets the (parsed) original content.setPrimaryAudio(Audio primaryAudio) Sets the primary audio stream.setPrimaryImage(Image primaryImage) Sets the primary image.setPrimaryVideo(Video primaryVideo) Sets the primary video.setPublishedTimestamp(long publishedTimestamp) Sets the published timestamp.Sets the rights.setSummary(String summary) Sets the summary.Sets the list of tags.Sets the title.setUpdatedTimestamp(long updatedTimestamp) Sets the updated timestamp.Sets the list of videos.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getId
Gets the id.- Returns:
- the id.
-
setId
Sets the id.- Parameters:
id- The id.- Returns:
- A self-reference.
-
getTitle
Gets the title.- Returns:
- The title.
-
setTitle
Sets the title.- Parameters:
title- The title.- Returns:
- A self-reference.
-
getSummary
Gets the summary.- Returns:
- The summary.
-
setSummary
Sets the summary.- Parameters:
summary- The summary.- Returns:
- A self-reference.
-
getCleanContent
Gets the clean content.- Returns:
- The clean content.
-
setCleanContent
Sets the clean content.- Parameters:
cleanContent- The clean content.- Returns:
- A self-reference.
-
getOriginalContent
public org.jsoup.nodes.Document getOriginalContent()Gets the (parsed) original content.- Returns:
- The original content as a
bodyelement.
-
setOriginalContent
Sets the (parsed) original content.- Parameters:
originalContent- The original content.- Returns:
- A self-reference.
-
getCanonicalLink
Gets the canonical link.- Returns:
- The canonical link.
-
setCanonicalLink
Sets the canonical link.- Parameters:
canonicalLink- The canonical link.- Returns:
- A self-reference.
-
getAltLinks
Gets an immutable list of alt links.- Returns:
- The list of alt links.
-
setAltLinks
Sets the list of alt links.- Parameters:
altLinks- The list of alt links.- Returns:
- A self-reference.
-
addAltLink
Adds an alternate link.- Parameters:
altLink- The alternate link to add.- Returns:
- A self-reference.
-
getPublishedTimestamp
public long getPublishedTimestamp()Gets the published timestamp.- Returns:
- The published timestamp.
-
setPublishedTimestamp
Sets the published timestamp.- Parameters:
publishedTimestamp- The published timestamp.- Returns:
- A self-reference.
-
getUpdatedTimestamp
public long getUpdatedTimestamp()Gets the updated timestamp.- Returns:
- The updated timestamp.
-
setUpdatedTimestamp
Sets the updated timestamp.- Parameters:
updatedTimestamp- The updated timestamp.- Returns:
- A self-reference.
-
getAuthors
Gets an immutable list of authors.- Returns:
- The list of authors.
-
setAuthors
Sets the list of authors.- Parameters:
authors- The list of authors.- Returns:
- A self-reference.
-
addAuthor
Adds an author.- Parameters:
author- The author to add.- Returns:
- A self-reference.
-
getImages
Gets an immutable list of images.- Returns:
- The list of images.
-
setImages
Sets the list of images.- Parameters:
images- The list of images.- Returns:
- A self-reference.
-
addImage
Adds an image.- Parameters:
image- The image to add.- Returns:
- A self-reference.
-
getVideos
Gets an immutable list of videos.- Returns:
- The list of videos.
-
setVideos
Sets the list of videos.- Parameters:
videos- The list of videos.- Returns:
- A self-reference.
-
addVideo
Adds a video.- Parameters:
video- The video to add.- Returns:
- A self-reference.
-
getTags
Gets an immutable list of tags.- Returns:
- The list of tags.
-
setTags
Sets the list of tags.- Parameters:
tags- The list of tags.- Returns:
- A self-reference.
-
addTag
Adds a tag.- Parameters:
tag- The tag to add.- Returns:
- A self-reference.
-
getRights
Gets the rights.- Returns:
- The rigts.
-
setRights
Sets the rights.- Parameters:
rights- The rights.- Returns:
- A self-reference.
-
getPrimaryImage
Gets the primary image.- Returns:
- The primary image.
-
setPrimaryImage
Sets the primary image.- Parameters:
primaryImage- The primary image.- Returns:
- A self-reference.
-
getPrimaryVideo
Gets the primary video.- Returns:
- The primary video.
-
setPrimaryVideo
Sets the primary video.- Parameters:
primaryVideo- The primary video.- Returns:
- A self-reference.
-
getAudios
Gets an immutable list of audio streams.- Returns:
- The list of audio streams.
-
setAudios
Sets the list of audio streams.- Parameters:
audios- The list of audio streams.- Returns:
- A self-reference.
-
addAudio
Adds an audio stream.- Parameters:
audio- The audio to add.- Returns:
- A self-reference.
-
getPrimaryAudio
Gets the primary audio stream.- Returns:
- The primary audio stream.
-
setPrimaryAudio
Sets the primary audio stream.- Parameters:
primaryAudio- The primary audio stream.- Returns:
- A self-reference.
-
getCitations
Gets an immutable list citations.- Returns:
- The list of citations.
-
setCitations
Sets the list of citations.- Parameters:
citations- The list of citations.- Returns:
- A self-reference.
-
addCitation
Adds a citation.- Parameters:
citation- The citation to add.- Returns:
- A self-reference.
-
build
Builds an immutable entry.- Returns:
- The immutable entry.
-