Skip to content
Snippets Groups Projects
Commit 863747e6 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- refactoring, more explicite type in ValidationSchema

- added schemaInst assignment in ValidationSchema
parent ffac3881
No related branches found
No related tags found
No related merge requests found
package org.slub.rosetta.dps.repository.plugin; package org.slub.rosetta.dps.repository.plugin;
import org.xml.sax.SAXException;
import javax.xml.validation.Schema; import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import java.net.URL;
class ValidationSchema { class ValidationSchema {
public final String nameSpace; public final String nameSpace;
public final ValidationSchemaType schemaType; public final ValidationSchemaType schemaType;
public final String schemaURL; public final URL schemaURL;
public Schema schemaInst; public Schema schemaInst;
public ValidationSchema(String nameSpace, ValidationSchemaType schemaType, String schemaURL) { public ValidationSchema(String nameSpace, ValidationSchemaType schemaType, URL schemaURL) throws SAXException {
this.nameSpace = nameSpace; this.nameSpace = nameSpace;
this.schemaURL = schemaURL; this.schemaURL = schemaURL;
this.schemaType = schemaType; this.schemaType = schemaType;
this.schemaInst = SchemaFactory.newDefaultInstance().newSchema( schemaURL );
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment