org.mmbase.bridge.jsp.taglib
Interface Writer

All Known Implementing Classes:
AliasListTag, AttachmentTag, CloudInfoTag, ComponentTag, CountRelationsTag, DepthTag, FieldInfoTag, FieldTag, FormTag, FunctionTag, ImageTag, IndexTag, InfoTag, ListFunctionTag, NodeInfoTag, PropertyTag, QueryNextBatchesTag, QueryPreviousBatchesTag, SetFieldTag, SettingTag, ShrinkTag, SizeTag, StringListTag, TimeTag, UrlWriterTag, WriteTag

public interface Writer

Writer tag are tags which can write something to the page (or to something else). To ensure a common behavior, this interface is created. Tags implementing this interface can (should?) use WriterHelper for a quick implementation.

Version:
$Id: Writer.java 37165 2009-07-22 12:36:23Z michiel $
Author:
Michiel Meeuwissen

Method Summary
 Object getWriterValue()
          Subtags of 'Writer' tag can request the value.
 void haveBody()
          To be used by child tags.
 void setEscape(String e)
          (Override) escape behaviour
 void setJspvar(String j)
          JspVar to Create, and write to
 void setVartype(String t)
          Type of the jspvar.
 void setWrite(String t)
          Wether to write to page or not.
 

Method Detail

setWrite

void setWrite(String t)
              throws JspTagException
Wether to write to page or not. This has to default to 'false' if the tag has a body, and to 'true' if it hasn't.

Throws:
JspTagException

setEscape

void setEscape(String e)
               throws JspTagException
(Override) escape behaviour

Throws:
JspTagException

setJspvar

void setJspvar(String j)
JspVar to Create, and write to


setVartype

void setVartype(String t)
                throws JspTagException
Type of the jspvar.

Throws:
JspTagException

getWriterValue

Object getWriterValue()
                      throws JspTagException
Subtags of 'Writer' tag can request the value.

Throws:
JspTagException

haveBody

void haveBody()
              throws JspTagException
To be used by child tags. If they are present, they say to the writer tag that it has body, which it can use to determine a default for the write property.

Throws:
JspTagException
Since:
MMBase-1.6


MMBase 2.0-SNAPSHOT - null