|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler sos.koa.ImportVotesAdapter.VoteFileChecker
Inner class to do light-weight sanity check on xml file. If check terminates normally on a file, then it's likely to be a vote file. I'd love to replace this with a DTD validity checker, but the example input files do not contain doctype info.
Field Summary | |
(package private) int |
globaalCount
|
(package private) int |
kieskringCount
|
(package private) int |
kieskringenCount
|
(package private) int |
reportCount
|
(package private) int |
tableCount
|
Constructor Summary | |
(package private) |
ImportVotesAdapter.VoteFileChecker()
|
Method Summary | |
(package private) void |
check(java.io.File file)
Checks to see if file is likely
to be an XML file containing exported votes. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Checks for each open tag if it's known and whether the multiplicity is allowed. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
int reportCount
int globaalCount
int kieskringenCount
int kieskringCount
int tableCount
Constructor Detail |
ImportVotesAdapter.VoteFileChecker()
Method Detail |
void check(java.io.File file) throws KOAException
file
is likely
to be an XML file containing exported votes. Note
that this does not do DTD validity checking!
file
- the file.
KOAException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- if a tag occurs too often, or an
unknown tag is encountered, or the file is
not a well-formed XML file.
|
SOA © 2004 SoS Group All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |