Class GenericInfobox.Builder
java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result.Builder
net.ygbstudio.jbrave.core.domain.dto.result.AbstractGraphInfobox.Builder
net.ygbstudio.jbrave.core.domain.dto.result.GenericInfobox.Builder
- Enclosing class:
GenericInfobox
Builder for
GenericInfobox instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull GenericInfoboxbuild()Builds a newGenericInfoboxfrom the current builder state.foundInUrls(List<String> foundInUrls) Sets the URLs where this infobox was found.Sets the infobox subtype.Methods inherited from class net.ygbstudio.jbrave.core.domain.dto.result.AbstractGraphInfobox.Builder
attributes, category, distance, images, label, longDesc, movie, position, profiles, providers, ratings, thumbnail, type, websiteUrlMethods 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
-
subType
Sets the infobox subtype.- Parameters:
subType- the subtype- Returns:
- this builder
-
foundInUrls
Sets the URLs where this infobox was found.- Parameters:
foundInUrls- the found-in URLs- Returns:
- this builder
-
build
Builds a newGenericInfoboxfrom the current builder state.- Overrides:
buildin classAbstractGraphInfobox.Builder- Returns:
- a new
GenericInfoboxinstance
-