public class ArrayContentValidator extends Object
Constructor and Description |
---|
ArrayContentValidator(ProblemListener listener,
URL label,
URL dataFile,
int arrayIndex)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isSpecialConstant(String value,
gov.nasa.arc.pds.xml.generated.SpecialConstants constants)
Checks if the given value is a Special Constant defined in the label.
|
void |
setSpotCheckData(int value) |
void |
validate(gov.nasa.pds.label.object.ArrayObject arrayObject)
Validates the given array.
|
public ArrayContentValidator(ProblemListener listener, URL label, URL dataFile, int arrayIndex)
listener
- to capture messages.label
- the label file.dataFile
- the data file.arrayIndex
- the index of the array.public void validate(gov.nasa.pds.label.object.ArrayObject arrayObject)
array
- Object representation of the array as described in the label.arrayObject
- Object representation of the array.public static boolean isSpecialConstant(String value, gov.nasa.arc.pds.xml.generated.SpecialConstants constants)
value
- The value to check.constants
- An object representation of the Special_Constants area in a label.public void setSpotCheckData(int value)
Copyright © 2022 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.