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, unparsedEntityDeclpublic 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 ContentHandlerskippedEntity in class DefaultHandlerSAXException - bei Problemenpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlere - Den fatalen Fehler auslösende ExceptionSAXException - bei Problemenpublic void error(SAXParseException e) throws SAXException
error in interface ErrorHandlererror in class DefaultHandlere - Den Fehler auslösende ExceptionSAXException - bei Problemenpublic void warning(SAXParseException e) throws SAXException
warning in interface ErrorHandlerwarning in class DefaultHandlere - Die Warnung auslösende ExceptionSAXException - bei Problemenpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException - bei Problemenpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException - bei Problemenpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandleruri - 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 ContentHandlerendElement in class DefaultHandleruri - URI des TagslocalName - BezeichnerqName - Qualifizierter NameSAXException - bei Problemenpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerch - Feld mit den erparsten charsstart - Startpositionlength - Länge des FeldesSAXException - bei Problemen