gov.nasa.pds.tools.label
Class LabelValidator
java.lang.Object
gov.nasa.pds.tools.label.LabelValidator
public class LabelValidator
- extends Object
This class is responsible for providing utility functions for validating PDS
XML Labels.
- Author:
- pramirez
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USER_VERSION
public static final String USER_VERSION
- See Also:
- Constant Field Values
SCHEMA_CHECK
public static final String SCHEMA_CHECK
- See Also:
- Constant Field Values
LabelValidator
public LabelValidator()
setSchema
public void setSchema(String[] schemaFiles)
throws SAXException
- Throws:
SAXException
setCatalogs
public void setCatalogs(String[] catalogFiles)
validate
public void validate(ExceptionContainer container,
File labelFile)
throws SAXException,
IOException,
ParserConfigurationException
- Currently this method only validates the label against schema constraints
- Parameters:
container
- to store output messages inlabelFile
- to validate
- Throws:
SAXException
IOException
ParserConfigurationException
validate
public void validate(File labelFile)
throws SAXException,
IOException,
ParserConfigurationException
- Throws:
SAXException
IOException
ParserConfigurationException
getModelVersion
public String getModelVersion()
setModelVersion
public void setModelVersion(String modelVersion)
performsSchemaValidation
public Boolean performsSchemaValidation()
setSchemaCheck
public void setSchemaCheck(Boolean value)
getConfiguration
public Boolean getConfiguration(String key)
setConfiguration
public void setConfiguration(String key,
Boolean value)
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2010-2012 Planetary Data System. All Rights Reserved.