org.apache.jetspeed.rewriter.html.neko
Class CallbackElementRemover

java.lang.Object
  extended byorg.cyberneko.html.filters.DefaultFilter
      extended byorg.cyberneko.html.filters.ElementRemover
          extended byorg.apache.jetspeed.rewriter.html.neko.CallbackElementRemover
All Implemented Interfaces:
org.cyberneko.html.HTMLComponent, org.apache.xerces.xni.parser.XMLComponent, org.apache.xerces.xni.parser.XMLDocumentFilter, org.apache.xerces.xni.XMLDocumentHandler, org.apache.xerces.xni.parser.XMLDocumentSource

public class CallbackElementRemover
extends org.cyberneko.html.filters.ElementRemover

CallbackElementRemover

Extended version of the NekoHTML ElementRemover which provides tag stripping/removal based on Rewriter settings.

Version:
$Id: CallbackElementRemover.java 188328 2005-02-08 19:08:40Z rogerrut $
Author:
Scott T. Weaver

Field Summary
private  Rewriter rewriter
           
 
Fields inherited from class org.cyberneko.html.filters.ElementRemover
fAcceptedElements, fElementDepth, fRemovalElementDepth, fRemovedElements, NULL
 
Fields inherited from class org.cyberneko.html.filters.DefaultFilter
fDocumentHandler, fDocumentSource
 
Constructor Summary
CallbackElementRemover(Rewriter rewriter)
           
 
Method Summary
 void emptyElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes arg1, org.apache.xerces.xni.Augmentations arg2)
           emptyElement
protected  void processTag(String tag)
           processTag
 void startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes arg1, org.apache.xerces.xni.Augmentations arg2)
           startElement
 
Methods inherited from class org.cyberneko.html.filters.ElementRemover
acceptElement, characters, comment, elementAccepted, elementRemoved, endCDATA, endElement, endGeneralEntity, endPrefixMapping, handleOpenTag, ignorableWhitespace, processingInstruction, removeElement, startCDATA, startDocument, startDocument, startGeneralEntity, startPrefixMapping, textDecl
 
Methods inherited from class org.cyberneko.html.filters.DefaultFilter
doctypeDecl, endDocument, getDocumentHandler, getDocumentSource, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, merge, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, xmlDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rewriter

private Rewriter rewriter
Constructor Detail

CallbackElementRemover

public CallbackElementRemover(Rewriter rewriter)
Method Detail

emptyElement

public void emptyElement(org.apache.xerces.xni.QName element,
                         org.apache.xerces.xni.XMLAttributes arg1,
                         org.apache.xerces.xni.Augmentations arg2)
                  throws org.apache.xerces.xni.XNIException

emptyElement

Parameters:
element -
arg1 -
arg2 -
Throws:
org.apache.xerces.xni.XNIException
See Also:
XMLDocumentHandler.emptyElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, org.apache.xerces.xni.Augmentations)

processTag

protected void processTag(String tag)

processTag

Parameters:
tag -

startElement

public void startElement(org.apache.xerces.xni.QName element,
                         org.apache.xerces.xni.XMLAttributes arg1,
                         org.apache.xerces.xni.Augmentations arg2)
                  throws org.apache.xerces.xni.XNIException

startElement

Parameters:
element -
arg1 -
arg2 -
Throws:
org.apache.xerces.xni.XNIException
See Also:
XMLDocumentHandler.startElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, org.apache.xerces.xni.Augmentations)


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.