public class ValidityChecker extends DefaultHandler
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ValidityChecker()
Creates a new instance of SaxHandler
|
Modifier and Type | Method and Description |
---|---|
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
|
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startPrefixMapping, unparsedEntityDecl
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
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 ExceptionSAXException
- bei Problemenpublic void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
e
- Den Fehler auslösende ExceptionSAXException
- bei Problemenpublic void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
warning
in class DefaultHandler
e
- Die Warnung auslösende ExceptionSAXException
- 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 TagsSAXException
- 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 NameSAXException
- 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 FeldesSAXException
- bei Problemen