Class FXSSchemaValidator
- java.lang.Object
-
- de.consist.bmu.rule.config.schema.fxs.FXSSchemaValidator
-
public class FXSSchemaValidator extends java.lang.Object
Validierung gegen BMU-Schemata.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FXSSchemaValidator.ValidationErrorHandler
Errorhandler, dient auch als Rueckgabe der Validierung.
-
Constructor Summary
Constructors Constructor Description FXSSchemaValidator(java.util.List<FXSSCHEMATYPE> fxsSchemaList)
Privater Konstruktor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
exceptionToString(org.xml.sax.SAXException e)
Generiert eine lesbare Meldung aus einer SAXException, falls es eine SAXParseException ist.FXSSchemaValidator.ValidationErrorHandler
validate(org.w3c.dom.Element document)
Validiert ein Dokument gegen die konfigurierten Schemata.
-
-
-
Constructor Detail
-
FXSSchemaValidator
public FXSSchemaValidator(java.util.List<FXSSCHEMATYPE> fxsSchemaList)
Privater Konstruktor. Einlesen der Schema-Files.
-
-
Method Detail
-
validate
public final FXSSchemaValidator.ValidationErrorHandler validate(org.w3c.dom.Element document) throws BMUException
Validiert ein Dokument gegen die konfigurierten Schemata.- Parameters:
document
- zu validierendes Dokument- Returns:
- boolean
- Throws:
BMUException
- BMUException
-
exceptionToString
public static java.lang.String exceptionToString(org.xml.sax.SAXException e)
Generiert eine lesbare Meldung aus einer SAXException, falls es eine SAXParseException ist.- Parameters:
e
- Die Exception- Returns:
- Die Meldung
-
-