gov.nasa.pds.tools.label.validate
Class FileCharacteristicValidator

java.lang.Object
  extended by gov.nasa.pds.tools.label.validate.FileCharacteristicValidator
All Implemented Interfaces:
LabelType, LabelValidator, RecordType

public class FileCharacteristicValidator
extends java.lang.Object
implements LabelValidator, LabelType, RecordType

This class validates that all file characteristics are found in a label;

Version:
$Revision: 3461 $
Author:
pramirez

Field Summary
 
Fields inherited from interface gov.nasa.pds.tools.label.LabelType
ATTACHED, COMBINED_DETACHED, DETACHED, UNDEFINED
 
Fields inherited from interface gov.nasa.pds.tools.label.validate.RecordType
FIXED_LENGTH, STREAM, UNDEFINED, VARIABLE_LENGTH
 
Constructor Summary
FileCharacteristicValidator()
           
 
Method Summary
 boolean isValid(Label label)
          (non-Javadoc)
 boolean isValid(Label label, ValidationListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCharacteristicValidator

public FileCharacteristicValidator()
Method Detail

isValid

public boolean isValid(Label label,
                       ValidationListener listener)
Specified by:
isValid in interface LabelValidator

isValid

public boolean isValid(Label label)
(non-Javadoc)

Specified by:
isValid in interface LabelValidator
Parameters:
label - object returned from parsing that reprsents the PDS label
Returns:
flag indicating whether or not the step in validation was passed.
See Also:
LabelValidator.isValid(gov.nasa.pds.tools.label.Label)


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