Class Placeholder
java.lang.Object
com.yahoo.search.pagetemplates.model.Placeholder
- All Implemented Interfaces:
com.yahoo.component.provider.Freezable
,PageElement
A source placeholder is replaced with a list of source instances at evaluation time.
Source placeholders may not have any content themselves - attempting to call any setter on this
results in a IllegalStateException.
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(PageTemplateVisitor visitor) Accepts a visitor to this structurevoid
freeze()
getId()
Returns the element which contains the value(s) of this placeholder.boolean
isFrozen()
This method always returns false, is a Placeholder always is mutable.void
setValueContainer
(MapChoice valueContainer) toString()
-
Constructor Details
-
Placeholder
Creates a source placeholder with an id.
-
-
Method Details
-
getId
-
getValueContainer
Returns the element which contains the value(s) of this placeholder. Never null. -
setValueContainer
-
freeze
public void freeze()- Specified by:
freeze
in interfacecom.yahoo.component.provider.Freezable
-
accept
Accepts a visitor to this structure- Specified by:
accept
in interfacePageElement
-
toString
-
isFrozen
public boolean isFrozen()This method always returns false, is a Placeholder always is mutable. (freeze() is a NOOP.)- Specified by:
isFrozen
in interfacecom.yahoo.component.provider.Freezable
-