Class AbstractGraphInfobox.Builder
java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result.Builder
net.ygbstudio.jbrave.core.domain.dto.result.AbstractGraphInfobox.Builder
- Direct Known Subclasses:
EntityInfobox.Builder,GenericInfobox.Builder,InfoboxPlace.Builder,InfoboxWithLocation.Builder,QAInfobox.Builder
- Enclosing class:
AbstractGraphInfobox
Builder for
AbstractGraphInfobox instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(List<List<String>> attributes) Sets the infobox attributes.build()Builds a newAbstractGraphInfoboxfrom the current builder state.Sets the infobox category.Sets the distance associated with the infobox.Sets the infobox images.Sets the infobox label.Sets the long description of the infobox.Sets the movie data associated with the infobox.Sets the infobox position.profiles(List<GraphInfoboxProfile> profiles) Sets the graph infobox profiles.providers(List<DataProvider> providers) Sets the infobox data providers.Sets the infobox ratings.Sets the infobox thumbnail.Sets the infobox type.websiteUrl(String websiteUrl) Sets the website URL associated with the infobox.Methods inherited from class net.ygbstudio.jbrave.core.domain.dto.result.Result.Builder
description, familyFriendly, fetchedContentTimestamp, isSourceBoth, isSourceLocal, language, pageAge, pageFetched, profile, title, url
-
Constructor Details
-
Builder
public Builder()Creates a new builder with all fields unset.
-
-
Method Details
-
type
Sets the infobox type.- Parameters:
type- the infobox type- Returns:
- this builder
-
position
Sets the infobox position.- Parameters:
position- the infobox position- Returns:
- this builder
-
label
Sets the infobox label.- Parameters:
label- the infobox label- Returns:
- this builder
-
category
Sets the infobox category.- Parameters:
category- the infobox category- Returns:
- this builder
-
longDesc
Sets the long description of the infobox.- Parameters:
longDesc- the long description- Returns:
- this builder
-
thumbnail
Sets the infobox thumbnail.- Parameters:
thumbnail- the infobox thumbnail- Returns:
- this builder
-
attributes
Sets the infobox attributes.- Parameters:
attributes- the infobox attributes as a list of key-value pairs- Returns:
- this builder
-
profiles
Sets the graph infobox profiles.- Parameters:
profiles- the graph infobox profiles- Returns:
- this builder
-
websiteUrl
Sets the website URL associated with the infobox.- Parameters:
websiteUrl- the website URL- Returns:
- this builder
-
ratings
Sets the infobox ratings.- Parameters:
ratings- the infobox ratings- Returns:
- this builder
-
providers
Sets the infobox data providers.- Parameters:
providers- the infobox data providers- Returns:
- this builder
-
distance
Sets the distance associated with the infobox.- Parameters:
distance- the distance- Returns:
- this builder
-
images
Sets the infobox images.- Parameters:
images- the infobox images- Returns:
- this builder
-
movie
Sets the movie data associated with the infobox.- Parameters:
movie- the movie data- Returns:
- this builder
-
build
Builds a newAbstractGraphInfoboxfrom the current builder state.- Overrides:
buildin classResult.Builder- Returns:
- a new
AbstractGraphInfoboxinstance
-