info.magnolia.templating.jsp
Class AbstractTag<C extends TemplatingElement>

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by info.magnolia.templating.jsp.AbstractTag<C>
Type Parameters:
C - the templating element the tag is operating on
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public abstract class AbstractTag<C extends TemplatingElement>
extends javax.servlet.jsp.tagext.SimpleTagSupport

Base class for jsp tags.

Version:
$Id$

Constructor Summary
AbstractTag()
           
 
Method Summary
protected  C createTemplatingElement()
           
protected  void doBody()
           
 void doTag()
           
protected  Class<C> getTemplatingElementClass()
           
protected  List<String> mandatoryStringList(Object attrValue, String attributeName)
          Converts (split) a single comma-separated string, or returns a copy of the given collection or String array.
protected  List<String> split(String s)
           
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTag

public AbstractTag()
Method Detail

doTag

public void doTag()
           throws javax.servlet.jsp.JspException,
                  IOException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException
IOException

doBody

protected void doBody()
               throws javax.servlet.jsp.JspException,
                      IOException
Throws:
javax.servlet.jsp.JspException
IOException

createTemplatingElement

protected C createTemplatingElement()

getTemplatingElementClass

protected Class<C> getTemplatingElementClass()

mandatoryStringList

protected List<String> mandatoryStringList(Object attrValue,
                                           String attributeName)
                                    throws javax.servlet.jsp.JspException
Converts (split) a single comma-separated string, or returns a copy of the given collection or String array.

Throws:
javax.servlet.jsp.JspException

split

protected List<String> split(String s)


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.