|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.pride.validation.PrideXmlValidator
public class PrideXmlValidator
PRIDE XML schema validation.
Field Summary | |
---|---|
static org.iso_relax.verifier.VerifierFactory |
VERIFIER_FACTORY
The verifier factory. |
Constructor Summary | |
---|---|
PrideXmlValidator()
Set up a PrideXmlValidator using the default schema. |
|
PrideXmlValidator(URL schemaUrl)
Set up a PrideXmlValidator using the provided schema. |
Method Summary | |
---|---|
XMLValidationErrorHandler |
getErrors()
Returns the XML validation error object. |
String |
getErrorsAsString()
Returns the errors formatted as s single string. |
void |
setSchema(URL schemaUrl)
Set the schema. |
boolean |
validate(File prideXmlFile)
Returns true of the given PRIDE XML file is valid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.iso_relax.verifier.VerifierFactory VERIFIER_FACTORY
Constructor Detail |
---|
public PrideXmlValidator() throws IOException, org.iso_relax.verifier.VerifierConfigurationException, SAXException
IOException
org.iso_relax.verifier.VerifierConfigurationException
SAXException
public PrideXmlValidator(URL schemaUrl) throws IOException, org.iso_relax.verifier.VerifierConfigurationException, SAXException
schemaUrl
- the URL to the schema
IOException
org.iso_relax.verifier.VerifierConfigurationException
SAXException
Method Detail |
---|
public void setSchema(URL schemaUrl) throws IOException, org.iso_relax.verifier.VerifierConfigurationException, SAXException
schemaUrl
- the schema to set
IOException
org.iso_relax.verifier.VerifierConfigurationException
SAXException
public boolean validate(File prideXmlFile) throws FileNotFoundException, IOException, org.iso_relax.verifier.VerifierConfigurationException, SAXException
prideXmlFile
- the PRIDE XML file to test
FileNotFoundException
IOException
org.iso_relax.verifier.VerifierConfigurationException
SAXException
public String getErrorsAsString()
public XMLValidationErrorHandler getErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |