org.displaytag.decorator
Class EscapeXmlColumnDecorator

java.lang.Object
  extended by org.displaytag.decorator.EscapeXmlColumnDecorator
All Implemented Interfaces:
DisplaytagColumnDecorator

public class EscapeXmlColumnDecorator
extends java.lang.Object
implements DisplaytagColumnDecorator

This takes the string that is passed in, and escapes html tags and entities. Only operates on "html" or "xml" media.

Version:
$Revision$ ($Author$)
Author:
Fabrizio Giustina

Field Summary
static DisplaytagColumnDecorator INSTANCE
          Instance used for the "escapeXml" tag attribute.
 
Constructor Summary
EscapeXmlColumnDecorator()
           
 
Method Summary
 java.lang.Object decorate(java.lang.Object columnValue, javax.servlet.jsp.PageContext pageContext, MediaTypeEnum media)
          Called after the object has been retrieved from the bean contained in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DisplaytagColumnDecorator INSTANCE
Instance used for the "escapeXml" tag attribute.

Constructor Detail

EscapeXmlColumnDecorator

public EscapeXmlColumnDecorator()
Method Detail

decorate

public java.lang.Object decorate(java.lang.Object columnValue,
                                 javax.servlet.jsp.PageContext pageContext,
                                 MediaTypeEnum media)
Description copied from interface: DisplaytagColumnDecorator
Called after the object has been retrieved from the bean contained in the list. The decorate method is responsible for transforming the object into a string to render in the page.

Specified by:
decorate in interface DisplaytagColumnDecorator
Parameters:
columnValue - Object to decorate
pageContext - jsp page context
media - current media (html, pdf, excel...)
Returns:
Object decorated object
See Also:
DisplaytagColumnDecorator.decorate(Object, PageContext, MediaTypeEnum)


Copyright © 2002-2007 the Displaytag team. All Rights Reserved.