|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.whattf.checker.Checker
org.whattf.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 org.whattf.checker.Checker |
|---|
characters, endDocument, endPrefixMapping, err, err, getDocumentLocator, getErrorHandler, ignorableWhitespace, processingInstruction, setDocumentLocator, setErrorHandler, skippedEntity, startDocument, startPrefixMapping, warn, 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 throws
public void startElement(String uri,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class CheckerSAXExceptionChecker.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 ContentHandlerendElement in class CheckerSAXExceptionChecker.endElement(java.lang.String,
java.lang.String, java.lang.String)public void reset()
Checker
reset in class CheckerChecker.reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||