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 Detail

      • AbstractChoice

        public AbstractChoice()
    • Method Detail

      • 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