com.ivata.mask.web.format
Class StripTagFormat

java.lang.Object
  extended bycom.ivata.mask.web.format.StripTagFormat
All Implemented Interfaces:
HTMLFormat

public class StripTagFormat
extends java.lang.Object
implements HTMLFormat

This class defines a standard way of stripping unwanted tags out of HTML. It looks for tags and end tags and strips out everything in between. Your tag must be 'closed', XML-style.

Since:
ivata masks 0.4 (2002-06-19)
Version:
$Revision: 1.3 $
Author:
Colin MacLeod colin.macleod@ivata.com

Constructor Summary
StripTagFormat()
           
 
Method Summary
 java.lang.String format(java.lang.String hTMLTextParam)
           Takes the text provided and strips all of the tags out, as set by setTagName.
 java.lang.String getTagName()
          Select the tag name of the tag you want to strip out of the string.
 void setTagName(java.lang.String tagNameParam)
          Select the tag name of the tag you want to strip out of the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StripTagFormat

public StripTagFormat()
Method Detail

format

public final java.lang.String format(java.lang.String hTMLTextParam)

Takes the text provided and strips all of the tags out, as set by setTagName. If no tag name has been set, this method returns the HTML text unaltered.

Specified by:
format in interface HTMLFormat
Parameters:
hTMLTextParam - Refer to HTMLFormat.format(java.lang.String).
Returns:
Refer to HTMLFormat.format(java.lang.String).

getTagName

public final java.lang.String getTagName()
Select the tag name of the tag you want to strip out of the string.

Returns:
the current value of tagName.

setTagName

public final void setTagName(java.lang.String tagNameParam)
Select the tag name of the tag you want to strip out of the string.

Parameters:
tagNameParam - the new value of tagName.


Copyright © 2001-2005 ivata limited. All Rights Reserved.