public class ValidatorUtils
extends java.lang.Object
| Constructor and Description |
|---|
ValidatorUtils(java.io.File nxsFile,
java.lang.String nxconvertCommand) |
| Modifier and Type | Method and Description |
|---|---|
void |
doConversion(boolean convertNxs)
Set a flag that indicates that the conversion of a NEXUS file
to a reduced document should be performed (true).
|
java.io.File |
getNXS()
Get the File object pointing to the NEXUS file.
|
java.io.File |
getReduced()
Get the File object pointing to the reduced NEXUS file.
|
java.io.File |
getSchematron()
Get the File object pointing to the Schematron file that contains the
rules for checking the reduced document.
|
void |
setKeepTemp(boolean keepTemp)
Set a flag that indicates that the temporary files
(such as the reduced document and the validation results)
should be kept (true).
|
void |
setNXS(java.io.File nxsFile)
Set the File object pointing to the NEXUS file.
|
void |
setReduced(java.io.File reduced)
Set the File object pointing to the reduced NEXUS file.
|
void |
setSchematron(java.io.File schematronFile)
Set the File object pointing to the Schematron file that contains the
rules for checking the reduced document.
|
java.io.File |
validate()
This methods performs the validation using the NEXUS (or reduced) file
and the Schematron file.
|
public ValidatorUtils(java.io.File nxsFile,
java.lang.String nxconvertCommand)
public void setReduced(java.io.File reduced)
reduced - the reduced NEXUS File object.public java.io.File getReduced()
public void setNXS(java.io.File nxsFile)
nxsFile - the NEXUS File object.public java.io.File getNXS()
public void setSchematron(java.io.File schematronFile)
schematronFile - the Schematron File object.public java.io.File getSchematron()
public void doConversion(boolean convertNxs)
convertNxs - the conversion flag.public void setKeepTemp(boolean keepTemp)
keepTemp - the keep temp files flag.public java.io.File validate()
throws NXvalidateException
NXvalidateException