|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
de.bsvrz.pat.datgen.generator.xmlParser.ValidityChecker
public class ValidityChecker
Klasse zum Prüfen der Validität einer XML-Daten-Datei.
Field Summary | |
---|---|
static int |
ASPECT_READ
Aspekt wird gelesen |
static int |
ATTRIBUTEGROUP_READ
Attributgruppe wird gelesen |
static int |
IN_RECORD
Parser befindet sich innerhalb eines Datensatzes |
static int |
INIT
Initialisierungszustand |
static int |
OBJECT_READ
Objekt wird gelesen |
static int |
state
Zustand des Parsers |
Constructor Summary | |
---|---|
ValidityChecker()
Creates a new instance of SaxHandler |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
Callback-Methode für die Verarbeitung von Characters. |
void |
endDocument()
Ende des Dokuments erreicht |
void |
endElement(String uri,
String localName,
String qName)
Ende-Tag gefunden. |
void |
error(SAXParseException e)
Fehler |
void |
fatalError(SAXParseException e)
Schwerer Fehler |
void |
skippedEntity(String name)
|
void |
startDocument()
Callback-Methode für Start des XML-Dokuments |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Start-Tag gefunden. |
void |
warning(SAXParseException e)
Warnung |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INIT
public static final int IN_RECORD
public static final int OBJECT_READ
public static final int ATTRIBUTEGROUP_READ
public static final int ASPECT_READ
public static int state
Constructor Detail |
---|
public ValidityChecker()
Method Detail |
---|
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
skippedEntity
in class DefaultHandler
SAXException
- bei Problemenpublic void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
e
- Den fatalen Fehler auslösende Exception
SAXException
- bei Problemenpublic void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
e
- Den Fehler auslösende Exception
SAXException
- bei Problemenpublic void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
warning
in class DefaultHandler
e
- Die Warnung auslösende Exception
SAXException
- bei Problemenpublic void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
- bei Problemenpublic void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
- bei Problemenpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
uri
- URI des TagslocalName
- BezeichnerqName
- Qualifizierter Nameattributes
- Liste der Attribute des Tags
SAXException
- bei Problemenpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
uri
- URI des TagslocalName
- BezeichnerqName
- Qualifizierter Name
SAXException
- bei Problemenpublic void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- Feld mit den erparsten char
sstart
- Startpositionlength
- Länge des Feldes
SAXException
- bei Problemen
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |