Uses of Class
com.yahoo.search.pagetemplates.model.Choice
Packages that use Choice
Package
Description
-
Uses of Choice in com.yahoo.search.pagetemplates.engine
Methods in com.yahoo.search.pagetemplates.engine with parameters of type ChoiceModifier and TypeMethodDescriptionvoid
Resolution.addChoiceResolution
(Choice choice, int alternativeIndex) int
Resolution.getResolution
(Choice choice) Returns the resolution of a choice.void
Organizer.organize
(Choice templateChoice, Resolution resolution, Result result) Organizes the given resultOverride this to resolve choices.void
Resolver.resolve
(Choice choice, Query query, Result result, Resolution resolution) Override this to resolve each choice independently. -
Uses of Choice in com.yahoo.search.pagetemplates.engine.resolvers
Methods in com.yahoo.search.pagetemplates.engine.resolvers with parameters of type ChoiceModifier and TypeMethodDescriptionvoid
DeterministicResolver.resolve
(Choice choice, Query query, Result result, Resolution resolution) Chooses the last alternative of any choicevoid
RandomResolver.resolve
(Choice choice, Query query, Result result, Resolution resolution) Chooses the last alternative of any choice -
Uses of Choice in com.yahoo.search.pagetemplates.model
Methods in com.yahoo.search.pagetemplates.model that return ChoiceModifier and TypeMethodDescriptionstatic Choice
Choice.createSingleton
(PageElement singletonAlternative) Creates a choice having a single alternative having a single page elementstatic Choice
Choice.createSingletons
(List<PageElement> alternatives) Creates a choice in which each alternative consists of a single elementMethods in com.yahoo.search.pagetemplates.model with parameters of type Choice