public class FieldValueValidator extends 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)
throws FieldContentFatalException
record - The record containing the fields to validate.fields - An array of the field descriptions.FieldContentFatalExceptionpublic void validate(gov.nasa.pds.label.object.TableRecord record,
gov.nasa.pds.label.object.FieldDescription[] fields,
boolean checkFieldFormat)
throws FieldContentFatalException
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.FieldContentFatalExceptionCopyright © 2020 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.