net.ontopia.topicmaps.nav2.taglibs.value
Class BaseValueProducingAndAcceptingTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingTag
          extended by net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingAndAcceptingTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, ValueAcceptingTagIF, ValueProducingTagIF
Direct Known Subclasses:
BaseScopedTag, ClassesOfTag, FilterTag, IndicatorsTag, InstancesTag, LocatorTag, LookupTag, NameTag, ReifiedTag, ReifierTag, ScopeTag, SourceLocatorsTag, SplitterTag, SubclassesTag, SubjectAddressTag, SuperclassesTag, TopicsTag

public abstract class BaseValueProducingAndAcceptingTag
extends BaseValueProducingTag
implements ValueProducingTagIF, ValueAcceptingTagIF

INTERNAL: Abstract super-class of a tag that is both value-producing and value-accepting. Note: Not all value producing tags are manipulating collections, so this is not the base class of all value producing tags. Exceptions are StringTag and ClassesTag.

See Also:
Serialized Form

Field Summary
protected  ContextTag contextTag
           
protected  Collection inputCollection
           
 
Fields inherited from class net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingTag
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
BaseValueProducingAndAcceptingTag()
           
 
Method Summary
 void accept(Collection inputCollection)
          Accepts input collection and make it accessible for tag.
 int doEndTag()
          Process the end tag.
 int doStartTag()
          Process the start tag for this instance.
protected  Collection getInputCollection(ContextManagerIF ctxtMgr)
          INTERNAL: Return inputCollection if it was already set, then call implementation from superclass.
 
Methods inherited from class net.ontopia.topicmaps.nav2.taglibs.value.BaseValueProducingTag
release, setOf
 
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
 
Methods inherited from interface net.ontopia.topicmaps.nav2.core.ValueProducingTagIF
process
 

Field Detail

contextTag

protected ContextTag contextTag

inputCollection

protected Collection inputCollection
Constructor Detail

BaseValueProducingAndAcceptingTag

public BaseValueProducingAndAcceptingTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Process the start tag for this instance.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class BaseValueProducingTag
Throws:
javax.servlet.jsp.JspTagException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag. Subclasses implementing this method must clear member variables.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class BaseValueProducingTag
Throws:
javax.servlet.jsp.JspException

getInputCollection

protected Collection getInputCollection(ContextManagerIF ctxtMgr)
                                 throws NavigatorRuntimeException
INTERNAL: Return inputCollection if it was already set, then call implementation from superclass.

Overrides:
getInputCollection in class BaseValueProducingTag
Throws:
NavigatorRuntimeException

accept

public void accept(Collection inputCollection)
Description copied from interface: ValueAcceptingTagIF
Accepts input collection and make it accessible for tag.

Specified by:
accept in interface ValueAcceptingTagIF


Copyright © 2000-2012 Ontopia.