Package org.iqtig.tpacker.cli.validation
Class InsuranceIdFinder
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.iqtig.tpacker.cli.validation.InsuranceIdFinder
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class InsuranceIdFinder extends DefaultHandler
Eigenwillige Implementierung der Frage, ob in einem XML-Dokument das Tag 'versichertenid' (Gross-/Klein-Schreibung oder sind Namespaces egal) vorkommt. Wenn das Tag gefunden wurde, wird mittels 'SAXTerminatorException' die weitere Verarbeitung abgebrochen.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InsuranceIdFinder.SAXTerminatorException
-
Constructor Summary
Constructors Constructor Description InsuranceIdFinder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Boolean
findInsuranceId(File file)
void
startElement(String uri, String name, String qName, Attributes attributes)
-
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
-
-
-
-
Method Detail
-
startElement
public void startElement(String uri, String name, String qName, Attributes attributes) throws InsuranceIdFinder.SAXTerminatorException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
InsuranceIdFinder.SAXTerminatorException
-
-