Class AbstractChoice
java.lang.Object
com.yahoo.component.provider.FreezableClass
com.yahoo.search.pagetemplates.model.AbstractChoice
- All Implemented Interfaces:
com.yahoo.component.provider.Freezable
,PageElement
public abstract class AbstractChoice
extends com.yahoo.component.provider.FreezableClass
implements PageElement
Abstract superclass of various kinds of choices.
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the choice method to use - a string interpreted by the resolver in use, or null to use any available methodabstract boolean
isChoiceBetween
(Class pageTemplateModelClass) Returns true if this choice is (partially or completely) a choice between the given typevoid
Methods inherited from class com.yahoo.component.provider.FreezableClass
clone, ensureNotFrozen, freeze, isFrozen
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.yahoo.component.provider.Freezable
freeze, isFrozen
Methods inherited from interface com.yahoo.search.pagetemplates.model.PageElement
accept
-
Constructor Details
-
AbstractChoice
public AbstractChoice()
-
-
Method Details
-
getMethod
Returns the choice method to use - a string interpreted by the resolver in use, or null to use any available method -
setMethod
-
isChoiceBetween
Returns true if this choice is (partially or completely) a choice between the given type
-