gov.nasa.pds.citool.validate
Class ReferenceValidator

java.lang.Object
  extended by gov.nasa.pds.citool.validate.ReferenceValidator
All Implemented Interfaces:
gov.nasa.pds.tools.label.validate.LabelValidator

public class ReferenceValidator
extends java.lang.Object
implements gov.nasa.pds.tools.label.validate.LabelValidator

Class that performs validation for reference catalog files.

Author:
mcayanan

Constructor Summary
ReferenceValidator()
           
 
Method Summary
 boolean isValid(gov.nasa.pds.tools.label.Label reference)
          Determines whether or not a reference catalog file is valid.
 boolean isValid(gov.nasa.pds.tools.label.Label reference, gov.nasa.pds.tools.label.validate.ValidationListener listener)
          Determines whether or not a reference catalog file is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceValidator

public ReferenceValidator()
Method Detail

isValid

public boolean isValid(gov.nasa.pds.tools.label.Label reference,
                       gov.nasa.pds.tools.label.validate.ValidationListener listener)
Determines whether or not a reference catalog file is valid.

Specified by:
isValid in interface gov.nasa.pds.tools.label.validate.LabelValidator
Parameters:
reference - A label representation of a reference catalog file.
listener - A listener to record warnings or errors.
Returns:
A flag indicating whether or not a reference catalog if valid.

isValid

public boolean isValid(gov.nasa.pds.tools.label.Label reference)
Determines whether or not a reference catalog file is valid.

Specified by:
isValid in interface gov.nasa.pds.tools.label.validate.LabelValidator
Parameters:
reference - A label representation of a reference catalog file.
Returns:
A flag indicating whether or not a reference catalog if valid.


Copyright © 2005-2010 Planetary Data System. All Rights Reserved.