gov.nasa.pds.ltdt.testLabel
Class Validator

java.lang.Object
  extended by gov.nasa.pds.ltdt.testLabel.Validator

public class Validator
extends java.lang.Object

Class to perform validaton

Author:
mcayanan

Constructor Summary
Validator()
          Constructor
 
Method Summary
 void doValidation(java.net.URL testLabel, gov.nasa.pds.tools.dict.Dictionary dictionary, java.io.OutputStream out)
          Do the validation.
 void logMessage(java.util.logging.Level level, java.lang.String msg)
          Routine to store a message into the logger.
 void logMessage(java.util.logging.Level level, java.lang.String msg, java.lang.String file)
          Routine to store a message into the logger.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Validator

public Validator()
Constructor

Method Detail

doValidation

public void doValidation(java.net.URL testLabel,
                         gov.nasa.pds.tools.dict.Dictionary dictionary,
                         java.io.OutputStream out)
                  throws javax.xml.transform.TransformerException,
                         java.io.IOException
Do the validation.

Parameters:
testLabel - A label to validate.
dictionary - A dictionary.
out - An output stream where the validation report will be stored.
Throws:
javax.xml.transform.TransformerException
java.io.IOException

logMessage

public void logMessage(java.util.logging.Level level,
                       java.lang.String msg)
Routine to store a message into the logger.

Parameters:
level - The severity level of the message.
msg - The message to log.

logMessage

public void logMessage(java.util.logging.Level level,
                       java.lang.String msg,
                       java.lang.String file)
Routine to store a message into the logger.

Parameters:
level - The severity level of the message.
msg - The message to log.
file - The file name associated with the message being logged.


Copyright © 2005-2008 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.