gov.nasa.pds.tools.label
Class LabelValidator

java.lang.Object
  extended by 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

Field Summary
static String SCHEMA_CHECK
           
 
Constructor Summary
LabelValidator()
           
 
Method Summary
 Boolean getConfiguration(String key)
           
 String getModelVersion()
           
 Schema getSchema(String modelVersion, String productClass)
           
 Boolean isInternalMode()
           
static void main(String[] args)
           
 Boolean performsSchemaValidation()
           
 void setConfiguration(String key, Boolean value)
           
 void setModelVersion(String modelVersion)
           
 void setSchemaCheck(Boolean value)
           
 void validate(ExceptionContainer container, File labelFile)
           
 void validate(ExceptionContainer container, File labelFile, Schema schema)
           
 void validate(File labelFile)
           
 void validate(File labelFile, Schema schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEMA_CHECK

public static final String SCHEMA_CHECK
See Also:
Constant Field Values
Constructor Detail

LabelValidator

public LabelValidator()
Method Detail

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

validate

public void validate(File labelFile,
                     Schema schema)
              throws SAXException,
                     IOException,
                     ParserConfigurationException
Throws:
SAXException
IOException
ParserConfigurationException

validate

public void validate(File labelFile)
              throws XPathExpressionException,
                     SAXException,
                     IOException,
                     ParserConfigurationException
Throws:
XPathExpressionException
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 © 2010-2011 Planetary Data System. All Rights Reserved.