Class AbstractGraphInfobox

java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result
net.ygbstudio.jbrave.core.domain.dto.result.AbstractGraphInfobox
Direct Known Subclasses:
EntityInfobox, GenericInfobox, InfoboxPlace, InfoboxWithLocation, QAInfobox

public sealed class AbstractGraphInfobox extends Result permits EntityInfobox, GenericInfobox, InfoboxPlace, InfoboxWithLocation, QAInfobox
Represents an abstract base class for graph infoboxes in search results. This class is part of the Brave Search API and serves as a base for various types of infoboxes that provide structured information in search results.
  • Field Details

    • type

      protected final String type
      The infobox type.
    • position

      protected final Integer position
      The infobox position.
    • label

      protected final String label
      The infobox label.
    • category

      protected final String category
      The infobox category.
    • longDesc

      protected final String longDesc
      The long description of the infobox.
    • thumbnail

      protected final Thumbnail thumbnail
      The infobox thumbnail.
    • attributes

      protected final List<List<String>> attributes
      The infobox attributes as a list of key-value pairs.
    • profiles

      protected final List<GraphInfoboxProfile> profiles
      The graph infobox profiles.
    • websiteUrl

      protected final String websiteUrl
      The website URL associated with the infobox.
    • ratings

      protected final List<Rating> ratings
      The infobox ratings.
    • providers

      protected final List<DataProvider> providers
      The infobox data providers.
    • distance

      protected final Unit distance
      The distance associated with the infobox.
    • images

      protected final List<Thumbnail> images
      The infobox images.
    • movie

      protected final MovieData movie
      The movie data associated with the infobox.
  • Constructor Details

    • AbstractGraphInfobox

      public AbstractGraphInfobox(AbstractGraphInfobox.Builder builder)
      Creates a new graph infobox from the given builder.
      Parameters:
      builder - the builder carrying the infobox fields
  • Method Details

    • getType

      public String getType()
      Returns the infobox type.
      Returns:
      the infobox type
    • getPosition

      public Integer getPosition()
      Returns the infobox position.
      Returns:
      the infobox position
    • getLabel

      public String getLabel()
      Returns the infobox label.
      Returns:
      the infobox label
    • getCategory

      public String getCategory()
      Returns the infobox category.
      Returns:
      the infobox category
    • getLongDesc

      public String getLongDesc()
      Returns the long description of the infobox.
      Returns:
      the long description
    • getThumbnail

      public Thumbnail getThumbnail()
      Returns the infobox thumbnail.
      Returns:
      the infobox thumbnail
    • getAttributes

      public List<List<String>> getAttributes()
      Returns the infobox attributes as a list of key-value pairs.
      Returns:
      the infobox attributes
    • getProfiles

      public List<GraphInfoboxProfile> getProfiles()
      Returns the graph infobox profiles.
      Returns:
      the graph infobox profiles
    • getWebsiteUrl

      public String getWebsiteUrl()
      Returns the website URL associated with the infobox.
      Returns:
      the website URL
    • getRatings

      public List<Rating> getRatings()
      Returns the infobox ratings.
      Returns:
      the infobox ratings
    • getProviders

      public List<DataProvider> getProviders()
      Returns the infobox data providers.
      Returns:
      the infobox data providers
    • getDistance

      public Unit getDistance()
      Returns the distance associated with the infobox.
      Returns:
      the distance
    • getImages

      public List<Thumbnail> getImages()
      Returns the infobox images.
      Returns:
      the infobox images
    • getMovie

      public MovieData getMovie()
      Returns the movie data associated with the infobox.
      Returns:
      the movie data