hudson.util
Class TableNestChecker

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by hudson.util.TableNestChecker
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

public class TableNestChecker
extends org.xml.sax.helpers.XMLFilterImpl

XMLFilter that checks the proper nesting of table related tags.

Browser often "fixes" HTML by moving tables into the right place, so failure to generate proper tables can result in a hard-to-track bugs.

TODO: where to apply this in stapler? JellyClassTearOff creates XMLOutput. Perhaps we define a decorator? We can also wrap Script. would that work better?

Author:
Kohsuke Kawaguchi

Constructor Summary
TableNestChecker()
           
TableNestChecker(ContentHandler target)
           
 
Method Summary
static void applyTo(org.apache.commons.jelly.XMLOutput xo)
           
 void endElement(String uri, String localName, String qName)
           
 void startElement(String uri, String localName, String qName, Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableNestChecker

public TableNestChecker()

TableNestChecker

public TableNestChecker(ContentHandler target)
Method Detail

applyTo

public static void applyTo(org.apache.commons.jelly.XMLOutput xo)

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException


Copyright © 2004-2013. All Rights Reserved.