public class FieldValueValidator
extends java.lang.Object
Constructor and Description |
---|
FieldValueValidator(ProblemListener listener)
Constructor.
|
Modifier and Type | Method and 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.
|
public FieldValueValidator(ProblemListener listener)
target
- The label.dataFile
- The data file.public void validate(gov.nasa.pds.label.object.TableRecord record, gov.nasa.pds.label.object.FieldDescription[] fields)
record
- The record containing the fields to validate.fields
- An array of the field descriptions.public void validate(gov.nasa.pds.label.object.TableRecord record, gov.nasa.pds.label.object.FieldDescription[] fields, boolean checkFieldFormat)
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.Copyright © 2010-2018 Planetary Data System. All Rights Reserved.