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 |
SCHEMA_CHECK
public static final String SCHEMA_CHECK
- See Also:
- Constant Field Values
LabelValidator
public LabelValidator()
getSchema
public Schema getSchema(String modelVersion,
String productClass)
throws SAXException
- Throws:
SAXException
validate
public void validate(ExceptionContainer container,
File labelFile)
throws SAXException,
IOException,
ParserConfigurationException,
XPathExpressionException
- Throws:
SAXException
IOException
ParserConfigurationException
XPathExpressionException
validate
public void validate(ExceptionContainer container,
File labelFile,
Schema schema)
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)
isInternalMode
public Boolean isInternalMode()
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2005-2010 Planetary Data System. All Rights Reserved.