Class Entry.Builder

java.lang.Object
com.attribyte.parser.model.Entry.Builder
Enclosing class:
Entry

public static class Entry.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • getId

      public String getId()
      Gets the id.
      Returns:
      the id.
    • setId

      public Entry.Builder setId(String id)
      Sets the id.
      Parameters:
      id - The id.
      Returns:
      A self-reference.
    • getTitle

      public String getTitle()
      Gets the title.
      Returns:
      The title.
    • setTitle

      public Entry.Builder setTitle(String title)
      Sets the title.
      Parameters:
      title - The title.
      Returns:
      A self-reference.
    • getSummary

      public String getSummary()
      Gets the summary.
      Returns:
      The summary.
    • setSummary

      public Entry.Builder setSummary(String summary)
      Sets the summary.
      Parameters:
      summary - The summary.
      Returns:
      A self-reference.
    • getCleanContent

      public String getCleanContent()
      Gets the clean content.
      Returns:
      The clean content.
    • setCleanContent

      public Entry.Builder setCleanContent(String cleanContent)
      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 body element.
    • setOriginalContent

      public Entry.Builder setOriginalContent(org.jsoup.nodes.Document originalContent)
      Sets the (parsed) original content.
      Parameters:
      originalContent - The original content.
      Returns:
      A self-reference.
    • getCanonicalLink

      public String getCanonicalLink()
      Gets the canonical link.
      Returns:
      The canonical link.
    • setCanonicalLink

      public Entry.Builder setCanonicalLink(String canonicalLink)
      Sets the canonical link.
      Parameters:
      canonicalLink - The canonical link.
      Returns:
      A self-reference.
    • getAltLinks

      public com.google.common.collect.ImmutableList<String> getAltLinks()
      Gets an immutable list of alt links.
      Returns:
      The list of alt links.
    • setAltLinks

      public Entry.Builder setAltLinks(List<String> altLinks)
      Sets the list of alt links.
      Parameters:
      altLinks - The list of alt links.
      Returns:
      A self-reference.
    • addAltLink

      public Entry.Builder addAltLink(String altLink)
      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

      public Entry.Builder setPublishedTimestamp(long publishedTimestamp)
      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

      public Entry.Builder setUpdatedTimestamp(long updatedTimestamp)
      Sets the updated timestamp.
      Parameters:
      updatedTimestamp - The updated timestamp.
      Returns:
      A self-reference.
    • getAuthors

      public com.google.common.collect.ImmutableList<Author> getAuthors()
      Gets an immutable list of authors.
      Returns:
      The list of authors.
    • setAuthors

      public Entry.Builder setAuthors(List<Author> authors)
      Sets the list of authors.
      Parameters:
      authors - The list of authors.
      Returns:
      A self-reference.
    • addAuthor

      public Entry.Builder addAuthor(Author author)
      Adds an author.
      Parameters:
      author - The author to add.
      Returns:
      A self-reference.
    • getImages

      public com.google.common.collect.ImmutableList<Image> getImages()
      Gets an immutable list of images.
      Returns:
      The list of images.
    • setImages

      public Entry.Builder setImages(List<Image> images)
      Sets the list of images.
      Parameters:
      images - The list of images.
      Returns:
      A self-reference.
    • addImage

      public Entry.Builder addImage(Image image)
      Adds an image.
      Parameters:
      image - The image to add.
      Returns:
      A self-reference.
    • getVideos

      public com.google.common.collect.ImmutableList<Video> getVideos()
      Gets an immutable list of videos.
      Returns:
      The list of videos.
    • setVideos

      public Entry.Builder setVideos(List<Video> videos)
      Sets the list of videos.
      Parameters:
      videos - The list of videos.
      Returns:
      A self-reference.
    • addVideo

      public Entry.Builder addVideo(Video video)
      Adds a video.
      Parameters:
      video - The video to add.
      Returns:
      A self-reference.
    • getTags

      public com.google.common.collect.ImmutableList<String> getTags()
      Gets an immutable list of tags.
      Returns:
      The list of tags.
    • setTags

      public Entry.Builder setTags(List<String> tags)
      Sets the list of tags.
      Parameters:
      tags - The list of tags.
      Returns:
      A self-reference.
    • addTag

      public Entry.Builder addTag(String tag)
      Adds a tag.
      Parameters:
      tag - The tag to add.
      Returns:
      A self-reference.
    • getRights

      public String getRights()
      Gets the rights.
      Returns:
      The rigts.
    • setRights

      public Entry.Builder setRights(String rights)
      Sets the rights.
      Parameters:
      rights - The rights.
      Returns:
      A self-reference.
    • getPrimaryImage

      public Image getPrimaryImage()
      Gets the primary image.
      Returns:
      The primary image.
    • setPrimaryImage

      public Entry.Builder setPrimaryImage(Image primaryImage)
      Sets the primary image.
      Parameters:
      primaryImage - The primary image.
      Returns:
      A self-reference.
    • getPrimaryVideo

      public Video getPrimaryVideo()
      Gets the primary video.
      Returns:
      The primary video.
    • setPrimaryVideo

      public Entry.Builder setPrimaryVideo(Video primaryVideo)
      Sets the primary video.
      Parameters:
      primaryVideo - The primary video.
      Returns:
      A self-reference.
    • getAudios

      public com.google.common.collect.ImmutableList<Audio> getAudios()
      Gets an immutable list of audio streams.
      Returns:
      The list of audio streams.
    • setAudios

      public Entry.Builder setAudios(List<Audio> audios)
      Sets the list of audio streams.
      Parameters:
      audios - The list of audio streams.
      Returns:
      A self-reference.
    • addAudio

      public Entry.Builder addAudio(Audio audio)
      Adds an audio stream.
      Parameters:
      audio - The audio to add.
      Returns:
      A self-reference.
    • getPrimaryAudio

      public Audio getPrimaryAudio()
      Gets the primary audio stream.
      Returns:
      The primary audio stream.
    • setPrimaryAudio

      public Entry.Builder setPrimaryAudio(Audio primaryAudio)
      Sets the primary audio stream.
      Parameters:
      primaryAudio - The primary audio stream.
      Returns:
      A self-reference.
    • getCitations

      public com.google.common.collect.ImmutableList<Link> getCitations()
      Gets an immutable list citations.
      Returns:
      The list of citations.
    • setCitations

      public Entry.Builder setCitations(List<Link> citations)
      Sets the list of citations.
      Parameters:
      citations - The list of citations.
      Returns:
      A self-reference.
    • addCitation

      public Entry.Builder addCitation(Link citation)
      Adds a citation.
      Parameters:
      citation - The citation to add.
      Returns:
      A self-reference.
    • build

      public Entry build()
      Builds an immutable entry.
      Returns:
      The immutable entry.