com.cc.framework.taglib.convert
Class ConverterTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.cc.framework.taglib.convert.ConverterTag
All Implemented Interfaces:
InnerTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ConvertDateTimeTag, ConvertNumberTag

public class ConverterTag
extends javax.servlet.jsp.tagext.TagSupport
implements InnerTag

Tag for declaring a simple converter

Version:
$Revision$
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  java.lang.String converterId
          Converter id or class name
private static long serialVersionUID
          Serial Version UID
 
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
ConverterTag()
          Constructor
 
Method Summary
 Converter doCreateConverter()
          Template method is called to create the concrete Converter instance
 int doStartTag()
           
 void release()
           
 void setConverterId(java.lang.String converterId)
          Converter identifier of the Converter instance to be created and registered.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

converterId

private java.lang.String converterId
Converter id or class name

Constructor Detail

ConverterTag

public ConverterTag()
Constructor

Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
See Also:
Tag.release()

doCreateConverter

public Converter doCreateConverter()
                            throws ConverterException
Template method is called to create the concrete Converter instance

Returns:
Converter instance
Throws:
ConverterException - If an error occurred while creating the Converter

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Throws:
javax.servlet.jsp.JspException
See Also:
Tag.doStartTag()

setConverterId

public void setConverterId(java.lang.String converterId)
Converter identifier of the Converter instance to be created and registered.

Parameters:
converterId - The converters identifier or class name


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.