Class VolumeValidationRule

java.lang.Object
gov.nasa.pds.tools.validate.rule.AbstractValidationRule
gov.nasa.pds.tools.validate.rule.pds3.VolumeValidationRule
All Implemented Interfaces:
ValidationRule, Observer, org.apache.commons.chain.Command

public class VolumeValidationRule
extends AbstractValidationRule
implements Observer
Implements a validation rule for PDS3 volumes.
  • Field Details

    • status

      protected final StatusContainer status
      Status container to hold current state of the validation process
  • Constructor Details

    • VolumeValidationRule

      public VolumeValidationRule()
  • Method Details

    • isApplicable

      public boolean isApplicable​(String location)
      Description copied from class: AbstractValidationRule
      Tests whether a rule is applicable to a target location.
      Specified by:
      isApplicable in interface ValidationRule
      Specified by:
      isApplicable in class AbstractValidationRule
      Parameters:
      location - the target location
      Returns:
      true, if the rule is applicable to the target, false otherwise
    • validateVolume

      @ValidationTest public void validateVolume() throws Exception
      Throws:
      Exception
    • update

      public void update​(Observable validator, Object object)
      Generic update to validation process, either updates message or posts a bucket
      Specified by:
      update in interface Observer
      Parameters:
      validator - validator action
      object - object to use in update