public class PageTemplateSet extends TiledTemplateSet
DEFAULT_ENCODING, DEFAULT_MIMETYPE
Constructor and Description |
---|
PageTemplateSet() |
Modifier and Type | Method and Description |
---|---|
void |
footer(Context context,
com.yahoo.text.XMLWriter writer)
Render the result set footer.
|
void |
header(Context context,
com.yahoo.text.XMLWriter writer)
Render the result set header.
|
void |
hit(Context context,
com.yahoo.text.XMLWriter writer)
Overrides
UserTemplate.hit(Context, Writer)
to print 'logging' type meta hits as /result/meta/provider tags. |
void |
hitFooter(Context context,
com.yahoo.text.XMLWriter writer)
Render a footer for a single top level hit.
|
protected void |
renderSection(HitGroup hit,
com.yahoo.text.XMLWriter writer)
Renders /result/section.
|
String |
toString() |
com.yahoo.text.XMLWriter |
wrapWriter(Writer writer)
Uses an XML writer in this template
|
renderField, renderHitAttributes, renderHitFields, renderHitGroup, renderProvider, renderProviderField, renderProviderHitAttributes, renderProviderHitFields, renderSectionContent, shouldRenderField
error, noHits, renderCoverageAttributes, renderFieldContent, renderGroup, renderHitGroupOfTypeGroupHit, renderId
createContext, dumpAndXMLQuoteUTF8, dumpBytes, isDefaultTemplateSet, queryContext
getBoldCloseTag, getBoldOpenTag, getEncoding, getMimeType, getName, getRequestedEncoding, getSeparatorTag, getSummaryClass, getTemplate, setHighlightTags, setSummaryClass, setTemplate, setTemplateNotNull
public com.yahoo.text.XMLWriter wrapWriter(Writer writer)
DefaultTemplateSet
wrapWriter
in class TiledTemplateSet
public void header(Context context, com.yahoo.text.XMLWriter writer) throws IOException
UserTemplate
The result set is available in the context object under the name "result".
header
in class TiledTemplateSet
context
- wrapper which will contain, among other thing, the result
set instancewriter
- the destination for rendering the resultIOException
- may be propagated from the writerpublic void footer(Context context, com.yahoo.text.XMLWriter writer) throws IOException
UserTemplate
The result set is available in the context object under the name "result".
footer
in class DefaultTemplateSet
context
- wrapper which will contain, among other thing, the result
set instancewriter
- the destination for rendering the resultIOException
- may be propagated from the writerprotected void renderSection(HitGroup hit, com.yahoo.text.XMLWriter writer) throws IOException
TiledTemplateSet
TiledTemplateSet.renderHitAttributes(Hit, XMLWriter)
.renderSection
in class TiledTemplateSet
IOException
public void hit(Context context, com.yahoo.text.XMLWriter writer) throws IOException
TiledTemplateSet
UserTemplate.hit(Context, Writer)
to print 'logging' type meta hits as /result/meta/provider tags.
Fails back to super.hit(context, writer)
in other cases.hit
in class TiledTemplateSet
context
- wrapper which will contain, among other thing, the hit
instancewriter
- the destination for rendering the hitIOException
- may be propagated from the writerpublic void hitFooter(Context context, com.yahoo.text.XMLWriter writer) throws IOException
UserTemplate
The result set is available in the context object under the name "result". The hit itself as "hit", the index of the hit as "hitno", and all the fields under their normal names.
hitFooter
in class DefaultTemplateSet
context
- wrapper which will contain, among other thing, the hit
instancewriter
- the destination for rendering the hitIOException
- may be propagated from the writerpublic String toString()
toString
in class TiledTemplateSet
Copyright © 2018. All rights reserved.