Class OutTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
net.ontopia.topicmaps.nav2.taglibs.tolog.BaseOutputProducingTag
net.ontopia.topicmaps.nav2.taglibs.tolog.OutTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
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:
-
Field Summary
FieldsFields inherited from class net.ontopia.topicmaps.nav2.taglibs.tolog.BaseOutputProducingTag
escapeEntities, fallbackValue, query, variableNameFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateOutput(jakarta.servlet.jsp.JspWriter out, Object outObject) Process the start tag for this instance.getName()voidrelease()Resets the state of the Tag.voidvoidtaoToString(Object tao, jakarta.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, setVarMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Field Details
-
scope
-
-
Constructor Details
-
OutTag
public OutTag()
-
-
Method Details
-
generateOutput
public void generateOutput(jakarta.servlet.jsp.JspWriter out, Object outObject) throws jakarta.servlet.jsp.JspTagException, IOException Process the start tag for this instance.- Specified by:
generateOutputin classBaseOutputProducingTag- Throws:
jakarta.servlet.jsp.JspTagExceptionIOException
-
taoToString
public String taoToString(Object tao, jakarta.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:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classBaseOutputProducingTag
-
setScope
-
setEscape
- Since:
- 3.0
-
getName
- Specified by:
getNamein classBaseOutputProducingTag
-