public class Validator extends Object
Constructor and Description |
---|
Validator()
Default constructor.
|
Validator(com.fasterxml.jackson.databind.JsonNode jsonNode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
validateEscher(File file)
Validates an Escher JSON file.
|
boolean |
validateSbgnml(File file)
Validates an SBGN-ML XML file.
|
boolean |
validateSbmlLE(File file)
Validates an SBGN-ML XML file.
|
public Validator() throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
IOException
- See Utils.defaultEscherSchema()
.com.github.fge.jsonschema.core.exceptions.ProcessingException
- See Utils.defaultEscherSchema()
.public Validator(com.fasterxml.jackson.databind.JsonNode jsonNode) throws IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
jsonNode
- The JSON Schema
.IOException
- See Utils.jsonSchemaSchema()
.com.github.fge.jsonschema.core.exceptions.ProcessingException
- See Utils.jsonSchemaSchema()
.public boolean validateEscher(File file) throws IOException
file
- The input file
.IOException
- Thrown if problems in accessing file
.public boolean validateSbgnml(File file) throws IOException
file
- The input file
.IOException
- Thrown if problems in accessing file
.public boolean validateSbmlLE(File file)
file
- The input file
.Copyright © 2015–2019 University of Tübingen. All rights reserved.