public class OmeValidator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JAXP_SCHEMA_LANGUAGE
Path the schema language.
|
static String |
JAXP_SCHEMA_SOURCE
The source.
|
static String |
W3C_XML_SCHEMA
W3C.
|
| Constructor and Description |
|---|
OmeValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidFile(File file,
File schema)
Validate the specified file
|
boolean |
isValidFile(File file,
StreamSource[] schemaStreamArray)
Validate the specified file
|
Document |
parseFile(File file)
Parses the specified file and returns the document.
|
Document |
parseFile(File file,
File schema)
Parses the specified file and returns the document.
|
Document |
parseFileWithStreamArray(File file,
StreamSource[] schemaStreamArray)
Parses the specified file and returns the document.
|
Document |
parseFileWithStreamArrayToSdtErr(File file,
StreamSource[] schemaStreamArray)
Parses the specified file and returns the document.
|
void |
validateFile(File file,
File schema) |
void |
validateFile(File file,
StreamSource[] schemaStreamArray)
Validate the specified file
Any validation errors thrown as an exception.
|
void |
validateFileToStdError(File file,
StreamSource[] schemaStreamArray)
Validate the specified file
Any validation errors are sent to StdErr, not thrown as an exception.
|
public static final String JAXP_SCHEMA_LANGUAGE
public static final String W3C_XML_SCHEMA
public static final String JAXP_SCHEMA_SOURCE
public boolean isValidFile(File file, File schema)
file - The file to parse.schema - The schema used to validate the specified file.public boolean isValidFile(File file, StreamSource[] schemaStreamArray)
file - The file to parse.schemaStreamArray - The schema as array of stream sources used to validate the specified file.public void validateFile(File file, StreamSource[] schemaStreamArray) throws Exception
file - The file to parse.schemaStreamArray - The schema as array of stream sources used to validate the specified file.Exception - Thrown if an error occurred.public void validateFileToStdError(File file, StreamSource[] schemaStreamArray) throws Exception
file - The file to parse.schemaStreamArray - The schema as array of stream sources used to validate the specified file.Exception - Thrown if other (NON-VALIDATION) errors occurred.public Document parseFile(File file) throws Exception
file - The file to parse.Exception - Thrown if an error occurred.public Document parseFile(File file, File schema) throws Exception
file - The file to parse.schema - The schema used to validate the specified file.Exception - Thrown if an error occurred.public Document parseFileWithStreamArray(File file, StreamSource[] schemaStreamArray) throws Exception
file - The file to parse.schemaStreamArray - The schema as array of stream sources used to validate the specified file.Exception - Thrown if an error occurred.public Document parseFileWithStreamArrayToSdtErr(File file, StreamSource[] schemaStreamArray) throws Exception
file - The file to parse.schemaStreamArray - The schema as array of stream sources used to validate the specified file.Exception - Thrown if other (NON-VALIDATION) errors occurred.Copyright © 2015 Open Microscopy Environment