- java.lang.Object
-
- io.github.astrapi69.xml.parser.SchemaInitializer
-
public class SchemaInitializer extends java.lang.Object
The classSchemaInitializer
provides method for initializeSchema
objects
-
-
Constructor Summary
Constructors Constructor Description SchemaInitializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.xml.validation.Schema
newSchema(java.io.File xsd)
Gets the schema.static javax.xml.validation.Schema
newSchema(java.io.File xsd, org.xml.sax.ErrorHandler errorHandler)
Gets the schema.
-
-
-
Method Detail
-
newSchema
public static javax.xml.validation.Schema newSchema(java.io.File xsd, org.xml.sax.ErrorHandler errorHandler) throws org.xml.sax.SAXException
Gets the schema.- Parameters:
xsd
- the xsderrorHandler
- the error handler- Returns:
- the schema
- Throws:
org.xml.sax.SAXException
- If a SAX error occurs during parsing.
-
newSchema
public static javax.xml.validation.Schema newSchema(java.io.File xsd) throws org.xml.sax.SAXException
Gets the schema.- Parameters:
xsd
- the xsd- Returns:
- the schema
- Throws:
org.xml.sax.SAXException
- If a SAX error occurs during parsing.
-
-