Class Entry

java.lang.Object
com.attribyte.parser.model.Entry

public class Entry extends Object
An immutable entry.
Author:
Matt Hamer
  • Field Details

    • id

      public final String id
      The id or an empty string if none.
    • title

      public final String title
      The title or an empty string if none.
    • summary

      public final String summary
      The summary or an empty string if none.
    • cleanContent

      public final String cleanContent
      The cleaned content or an empty string if none.
    • publishedTimestamp

      public final long publishedTimestamp
      The published timestamp or 0 if unknown.
    • updatedTimestamp

      public final long updatedTimestamp
      The updated timestamp or 0 if unknown.
    • authors

      public final com.google.common.collect.ImmutableList<Author> authors
      The immutable list of authors.
    • primaryImage

      public final Optional<Image> primaryImage
      The optional primary image.
    • images

      public final com.google.common.collect.ImmutableList<Image> images
      The immutable list of images.
    • primaryVideo

      public final Optional<Video> primaryVideo
      The optional primary video.
    • videos

      public final com.google.common.collect.ImmutableList<Video> videos
      The immutable list of videos.
    • primaryAudio

      public final Optional<Audio> primaryAudio
      The optional primary audio stream.
    • audios

      public final com.google.common.collect.ImmutableList<Audio> audios
      The immutable list of all audio streams.
    • tags

      public final com.google.common.collect.ImmutableList<String> tags
      The immutable list of tags.
    • rights

      public final String rights
      The rights or an empty string if none.
    • citations

      public final com.google.common.collect.ImmutableList<Link> citations
      An immutable list of citations (from the entry).
  • Method Details

    • builder

      public static Entry.Builder builder()
      Creates a new builder.
      Returns:
      The new (empty) builder.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • originalContent

      public final Optional<org.jsoup.nodes.Document> originalContent()
      The (parsed) original content.
      Returns:
      A copy of the (mutable) original content element, if any.