Class ArrayContentValidator


  • public class ArrayContentValidator
    extends Object
    Class that performs content validation on Array objects.
    Author:
    mcayanan
    • Constructor Detail

      • ArrayContentValidator

        public ArrayContentValidator​(ProblemListener listener,
                                     URL label,
                                     URL dataFile,
                                     int arrayIndex)
        Constructor.
        Parameters:
        listener - to capture messages.
        label - the label file.
        dataFile - the data file.
        arrayIndex - the index of the array.
    • Method Detail

      • validate

        public void validate​(gov.nasa.pds.label.object.ArrayObject arrayObject)
        Validates the given array.
        Parameters:
        array - Object representation of the array as described in the label.
        arrayObject - Object representation of the array.
      • isSpecialConstant

        public static boolean isSpecialConstant​(Number value,
                                                gov.nasa.arc.pds.xml.generated.SpecialConstants constants,
                                                ProblemReporter reporter)
        Checks if the given value is a Special Constant defined in the label.
        Parameters:
        value - The value to check.
        constants - An object representation of the Special_Constants area in a label.
        Returns:
        true if the given value is a Special Constant.
      • setSpotCheckData

        public void setSpotCheckData​(int value)