public class Validator
extends java.lang.Object
Constructor and Description |
---|
Validator()
Default constructor.
|
Validator(com.fasterxml.jackson.databind.JsonNode jsonNode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
validateEscher(java.io.File file)
Validates an Escher JSON file.
|
boolean |
validateSbgnml(java.io.File file)
Validates an SBGN-ML XML file.
|
boolean |
validateSbmlLE(java.io.File file)
Validates an SBGN-ML XML file.
|
public Validator() throws java.io.IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
java.io.IOException
- See Utils.defaultEscherSchema()
.com.github.fge.jsonschema.core.exceptions.ProcessingException
- See Utils.defaultEscherSchema()
.public Validator(com.fasterxml.jackson.databind.JsonNode jsonNode) throws java.io.IOException, com.github.fge.jsonschema.core.exceptions.ProcessingException
jsonNode
- The JSON Schema
.java.io.IOException
- See Utils.jsonSchemaSchema()
.com.github.fge.jsonschema.core.exceptions.ProcessingException
- See Utils.jsonSchemaSchema()
.public boolean validateEscher(java.io.File file) throws java.io.IOException
file
- The input file
.java.io.IOException
- Thrown if problems in accessing file
.public boolean validateSbgnml(java.io.File file) throws java.io.IOException
file
- The input file
.java.io.IOException
- Thrown if problems in accessing file
.public boolean validateSbmlLE(java.io.File file)
file
- The input file
.