public class MapChoice extends AbstractChoice
Each unique set of mappings (pairs) from values to placeholder ids is a separate possible alternative of this choice. The alternatives are not listed explicitly but are generated as needed.
Constructor and Description |
---|
MapChoice() |
Modifier and Type | Method and Description |
---|---|
void |
accept(PageTemplateVisitor visitor)
Accepts a visitor to this structure
|
void |
freeze() |
boolean |
isChoiceBetween(Class pageTemplateModelElementClass)
Returns true if this choice is (partially or completely) a choice between the given type
|
List<String> |
placeholderIds()
Returns the placeholder ids (the "to" of the mapping) of this as a live reference which can be modified unless
this is frozen.
|
String |
toString() |
List<List<PageElement>> |
values()
Returns the values (the "from" of the mapping) of this as a live reference which can be modified unless
this is frozen.
|
getMethod, setMethod
clone, ensureNotFrozen, isFrozen
public boolean isChoiceBetween(Class pageTemplateModelElementClass)
AbstractChoice
isChoiceBetween
in class AbstractChoice
public List<String> placeholderIds()
public List<List<PageElement>> values()
public void freeze()
freeze
in interface com.yahoo.component.provider.Freezable
freeze
in class com.yahoo.component.provider.FreezableClass
public void accept(PageTemplateVisitor visitor)
Copyright © 2018. All rights reserved.