Class 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
      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 method
      abstract boolean isChoiceBetween​(java.lang.Class pageTemplateModelClass)
      Returns true if this choice is (partially or completely) a choice between the given type
      void 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.component.provider.Freezable

        freeze, isFrozen
      • Methods inherited from interface com.yahoo.search.pagetemplates.model.PageElement

        accept
    • Constructor Detail

      • AbstractChoice

        public AbstractChoice()
    • 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