info.magnolia.module.templatingcomponents.jsp
Class AbstractTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by info.magnolia.module.templatingcomponents.jsp.AbstractTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag
Direct Known Subclasses:
EditBarTag, NewBarTag, PageEditBarTag, SingletonParagraphBarTag

public abstract class AbstractTag
extends javax.servlet.jsp.tagext.SimpleTagSupport

Base class for jsp tags. Subclasses need to implement the prepareUIComponent(ServerConfiguration, AggregationState) method.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Constructor Summary
AbstractTag()
           
 
Method Summary
protected  void doBody()
           
 void doTag()
           
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 abstract  AuthoringUiComponent prepareUIComponent(ServerConfiguration serverCfg, AggregationState aggState)
          Validate parameters and return a ready-to-output instance of an AuthoringUiComponent.
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

prepareUIComponent

protected abstract AuthoringUiComponent prepareUIComponent(ServerConfiguration serverCfg,
                                                           AggregationState aggState)
                                                    throws javax.servlet.jsp.JspException,
                                                           IOException
Validate parameters and return a ready-to-output instance of an AuthoringUiComponent.

Throws:
javax.servlet.jsp.JspException
IOException

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-2011 Magnolia International Ltd.. All Rights Reserved.