|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fi.iki.hsivonen.xml.checker.Checker fi.iki.hsivonen.xml.checker.table.TableChecker
public final class TableChecker
Checks XHTML table integrity: overlapping cells, spanning past the end of row group, etc.
Field Summary | |
---|---|
private Table |
current
Holds the current table. |
private LinkedList<Table> |
stack
A stack for holding the tables that are open and ancestors of the current table. |
Constructor Summary | |
---|---|
TableChecker()
Constructor. |
Method Summary | |
---|---|
void |
endElement(String uri,
String localName,
String qName)
|
private void |
pop()
Ends the current table, discards it and pops the top of the stack to be the new current table. |
private void |
push()
Pushes the current table onto the stack and creates a new one. |
void |
reset()
Does nothing. |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
|
Methods inherited from class fi.iki.hsivonen.xml.checker.Checker |
---|
characters, endDocument, endPrefixMapping, err, getDocumentLocator, getErrorHandler, ignorableWhitespace, processingInstruction, setDocumentLocator, setErrorHandler, skippedEntity, startDocument, startPrefixMapping, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Table current
private final LinkedList<Table> stack
Constructor Detail |
---|
public TableChecker()
Method Detail |
---|
private void push()
private void pop() throws SAXException
SAXException
- if ending the table throwspublic void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class Checker
SAXException
Checker.startElement(java.lang.String,
java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class Checker
SAXException
Checker.endElement(java.lang.String,
java.lang.String, java.lang.String)
public void reset()
Checker
reset
in class Checker
Checker.reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |