net.ontopia.topicmaps.nav2.taglibs.tolog
Class OutTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by net.ontopia.topicmaps.nav2.taglibs.tolog.BaseOutputProducingTag
          extended by net.ontopia.topicmaps.nav2.taglibs.tolog.OutTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class OutTag
extends BaseOutputProducingTag

INTERNAL: Tolog Tag for outputting content. Outputs the content of a variable (attribute 'var' or the result of a query (attribute 'query') If the variable is a collection or the query gives multiple columns, then the first element/row is output. It is an error for the query to produce multiple column (undeterministic).

See Also:
Serialized Form

Field Summary
protected  String scope
           
 
Fields inherited from class net.ontopia.topicmaps.nav2.taglibs.tolog.BaseOutputProducingTag
escapeEntities, fallbackValue, query, variableName
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
OutTag()
          Default constructor.
 
Method Summary
 void generateOutput(javax.servlet.jsp.JspWriter out, Object outObject)
          Process the start tag for this instance.
 String getName()
           
 void release()
          Resets the state of the Tag.
 void setEscape(String escape)
           
 void setScope(String scope)
           
 String taoToString(Object tao, javax.servlet.ServletRequest request, String scope)
          Converts a topic map object to a suitable String representation.
 
Methods inherited from class net.ontopia.topicmaps.nav2.taglibs.tolog.BaseOutputProducingTag
doEndTag, doStartTag, generateOutputObject, print2Writer, setFallback, setQuery, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scope

protected String scope
Constructor Detail

OutTag

public OutTag()
Default constructor.

Method Detail

generateOutput

public void generateOutput(javax.servlet.jsp.JspWriter out,
                           Object outObject)
                    throws javax.servlet.jsp.JspTagException,
                           IOException
Process the start tag for this instance.

Specified by:
generateOutput in class BaseOutputProducingTag
Throws:
javax.servlet.jsp.JspTagException
IOException

taoToString

public String taoToString(Object tao,
                          javax.servlet.ServletRequest request,
                          String scope)
                   throws NavigatorRuntimeException
Converts a topic map object to a suitable String representation.

Parameters:
tao - The Object to convert.
request - To be used for stringification.
scope - Used to select appropriate string for topics.
Returns:
A suitable string representation for tao.
Throws:
NavigatorRuntimeException

release

public void release()
Resets the state of the Tag.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BaseOutputProducingTag

setScope

public void setScope(String scope)

setEscape

public void setEscape(String escape)
Since:
3.0

getName

public String getName()
Specified by:
getName in class BaseOutputProducingTag


Copyright © 2000-2012 Ontopia.