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.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe infobox attributes as a list of key-value pairs.protected final StringThe infobox category.protected final UnitThe distance associated with the infobox.The infobox images.protected final StringThe infobox label.protected final StringThe long description of the infobox.protected final MovieDataThe movie data associated with the infobox.protected final IntegerThe infobox position.protected final List<GraphInfoboxProfile> The graph infobox profiles.protected final List<DataProvider> The infobox data providers.The infobox ratings.protected final ThumbnailThe infobox thumbnail.protected final StringThe infobox type.protected final StringThe website URL associated with the infobox.Fields inherited from class net.ygbstudio.jbrave.core.domain.dto.result.Result
description, familyFriendly, fetchedContentTimestamp, isSourceBoth, isSourceLocal, language, pageAge, pageFetched, profile, title, url -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new graph infobox from the given builder. -
Method Summary
Modifier and TypeMethodDescriptionReturns the infobox attributes as a list of key-value pairs.Returns the infobox category.Returns the distance associated with the infobox.Returns the infobox images.getLabel()Returns the infobox label.Returns the long description of the infobox.getMovie()Returns the movie data associated with the infobox.Returns the infobox position.Returns the graph infobox profiles.Returns the infobox data providers.Returns the infobox ratings.Returns the infobox thumbnail.getType()Returns the infobox type.Returns the website URL associated with the infobox.Methods inherited from class net.ygbstudio.jbrave.core.domain.dto.result.Result
description, familyFriendly, fetchedContentTimestamp, isSourceBoth, isSourceLocal, language, pageAge, pageFetched, profile, title, url
-
Field Details
-
type
The infobox type. -
position
The infobox position. -
label
The infobox label. -
category
The infobox category. -
longDesc
The long description of the infobox. -
thumbnail
The infobox thumbnail. -
attributes
The infobox attributes as a list of key-value pairs. -
profiles
The graph infobox profiles. -
websiteUrl
The website URL associated with the infobox. -
ratings
The infobox ratings. -
providers
The infobox data providers. -
distance
The distance associated with the infobox. -
images
The infobox images. -
movie
The movie data associated with the infobox.
-
-
Constructor Details
-
AbstractGraphInfobox
Creates a new graph infobox from the given builder.- Parameters:
builder- the builder carrying the infobox fields
-
-
Method Details
-
getType
Returns the infobox type.- Returns:
- the infobox type
-
getPosition
Returns the infobox position.- Returns:
- the infobox position
-
getLabel
Returns the infobox label.- Returns:
- the infobox label
-
getCategory
Returns the infobox category.- Returns:
- the infobox category
-
getLongDesc
Returns the long description of the infobox.- Returns:
- the long description
-
getThumbnail
Returns the infobox thumbnail.- Returns:
- the infobox thumbnail
-
getAttributes
Returns the infobox attributes as a list of key-value pairs.- Returns:
- the infobox attributes
-
getProfiles
Returns the graph infobox profiles.- Returns:
- the graph infobox profiles
-
getWebsiteUrl
Returns the website URL associated with the infobox.- Returns:
- the website URL
-
getRatings
Returns the infobox ratings.- Returns:
- the infobox ratings
-
getProviders
Returns the infobox data providers.- Returns:
- the infobox data providers
-
getDistance
Returns the distance associated with the infobox.- Returns:
- the distance
-
getImages
Returns the infobox images.- Returns:
- the infobox images
-
getMovie
Returns the movie data associated with the infobox.- Returns:
- the movie data
-