Package | Description |
---|---|
com.yahoo.search.pagetemplates | |
com.yahoo.search.pagetemplates.engine | |
com.yahoo.search.pagetemplates.model |
Modifier and Type | Class and Description |
---|---|
class |
PageTemplate
A page template represents a particular way to organize a return page.
|
Modifier and Type | Method and Description |
---|---|
Map<String,List<PageElement>> |
Resolution.getResolution(MapChoice choice)
Returns the resolution of a map choice.
|
Modifier and Type | Method and Description |
---|---|
void |
Resolution.addMapChoiceResolution(MapChoice choice,
Map<String,List<PageElement>> mapping) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractChoice
Abstract superclass of various kinds of choices.
|
class |
Choice
A choice between some alternative lists of page elements.
|
class |
MapChoice
A choice between different possible mapping functions of a set of values to a set of placeholder ids.
|
class |
Placeholder
A source placeholder is replaced with a list of source instances at evaluation time.
|
class |
Renderer
A description of a way to present data items from a source.
|
class |
Section
An element of a page template corresponding to a physical area of the layout of the final physical page.
|
class |
Source
A source mentioned in a page template.
|
Modifier and Type | Method and Description |
---|---|
List<List<PageElement>> |
Choice.alternatives()
Returns the alternatives of this as a live reference to the alternatives of this.
|
List<PageElement> |
Section.elements()
Returns the elements of this - sources, subsections and presentations and/or choices of these,
as a live reference which can be modified to change the content of this (unless this is frozen).
|
List<PageElement> |
Section.elements(Class pageTemplateModelElementClass)
Convenience method which returns the elements and choices of the given type in elements as a
read-only list.
|
List<PageElement> |
Choice.get(int index)
Convenience shorthand of
return alternatives().get(index) |
List<PageElement> |
Source.renderers()
Returns the renderers or choices of renderers to apply on individual items of this source
|
List<List<PageElement>> |
MapChoice.values()
Returns the values (the "from" of the mapping) of this as a live reference which can be modified unless
this is frozen.
|
Modifier and Type | Method and Description |
---|---|
static Choice |
Choice.createSingleton(PageElement singletonAlternative)
Creates a choice having a single alternative having a single page element
|
Modifier and Type | Method and Description |
---|---|
void |
Choice.add(List<PageElement> alternative)
Convenience shorthand for
if (alternative!=null) alternatives().add(alternative) |
static Choice |
Choice.createSingletons(List<PageElement> alternatives)
Creates a choice in which each alternative consists of a single element
|
Constructor and Description |
---|
Choice(List<List<PageElement>> alternatives)
Creates a choice between some alternatives.
|
Copyright © 2018. All rights reserved.