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
Constructors Constructor Description AbstractChoice()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMethod()
Returns the choice method to use - a string interpreted by the resolver in use, or null to use any available methodabstract boolean
isChoiceBetween(java.lang.Class pageTemplateModelClass)
Returns true if this choice is (partially or completely) a choice between the given typevoid
setMethod(java.lang.String method)
-
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.search.pagetemplates.model.PageElement
accept
-
-
-
-
Method Detail
-
getMethod
public java.lang.String getMethod()
Returns the choice method to use - a string interpreted by the resolver in use, or null to use any available method
-
setMethod
public void setMethod(java.lang.String method)
-
isChoiceBetween
public abstract boolean isChoiceBetween(java.lang.Class pageTemplateModelClass)
Returns true if this choice is (partially or completely) a choice between the given type
-
-