Class FieldValueValidator

java.lang.Object
gov.nasa.pds.tools.validate.content.table.FieldValueValidator

public class FieldValueValidator
extends Object
Class that performs content validation on the field values of a given record.
Author:
mcayanan
  • Constructor Summary

    Constructors
    Constructor Description
    FieldValueValidator​(ProblemListener listener)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void validate​(gov.nasa.pds.label.object.TableRecord record, gov.nasa.pds.label.object.FieldDescription[] fields)
    Validates the field values in the given record.
    void validate​(gov.nasa.pds.label.object.TableRecord record, gov.nasa.pds.label.object.FieldDescription[] fields, boolean checkFieldFormat)
    Validates the field values in the given record.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FieldValueValidator

      public FieldValueValidator​(ProblemListener listener)
      Constructor.
      Parameters:
      target - The label.
      dataFile - The data file.
  • Method Details

    • validate

      public void validate​(gov.nasa.pds.label.object.TableRecord record, gov.nasa.pds.label.object.FieldDescription[] fields) throws FieldContentFatalException
      Validates the field values in the given record.
      Parameters:
      record - The record containing the fields to validate.
      fields - An array of the field descriptions.
      Throws:
      FieldContentFatalException
    • validate

      public void validate​(gov.nasa.pds.label.object.TableRecord record, gov.nasa.pds.label.object.FieldDescription[] fields, boolean checkFieldFormat) throws FieldContentFatalException
      Validates the field values in the given record.
      Parameters:
      record - The record containing the fields to validate.
      fields - An array of the field descriptions.
      checkFieldFormat - A flag to determine whether to check the field values against its specified field format, if present in the label.
      Throws:
      FieldContentFatalException