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
Direct Known Subclasses:
Choice, MapChoice

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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the choice method to use - a string interpreted by the resolver in use, or null to use any available method
    abstract boolean
    isChoiceBetween(Class pageTemplateModelClass)
    Returns true if this choice is (partially or completely) a choice between the given type
    void
    setMethod(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.component.provider.Freezable

    freeze, isFrozen

    Methods inherited from interface com.yahoo.search.pagetemplates.model.PageElement

    accept
  • Constructor Details

    • AbstractChoice

      public AbstractChoice()
  • Method Details

    • getMethod

      public 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(String method)
    • isChoiceBetween

      public abstract boolean isChoiceBetween(Class pageTemplateModelClass)
      Returns true if this choice is (partially or completely) a choice between the given type