Class NsdlAnnoValidator

java.lang.Object
org.dlese.dpc.schemedit.input.SchemEditValidator
org.dlese.dpc.schemedit.input.NsdlAnnoValidator

public class NsdlAnnoValidator extends SchemEditValidator
Extension of SchemEditValidator that is only concerned with a few msp2-specific fields.
Author:
ostwald
  • Constructor Details

    • NsdlAnnoValidator

      public NsdlAnnoValidator(SchemEditForm sef, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
      Constructor for the NsdlAnnoValidator object
      Parameters:
      sef - Description of the Parameter
      framework - Description of the Parameter
      mapping - NOT YET DOCUMENTED
      request - Description of the Parameter
  • Method Details

    • skipFieldValidation

      protected boolean skipFieldValidation(InputField inputField)
      Suppress validation of all fields under MATERIALS_LIST_PATH
      Overrides:
      skipFieldValidation in class SchemEditValidator
      Parameters:
      inputField - Description of the Parameter
      Returns:
      Description of the Return Value
    • updateMultiValueFields

      public void updateMultiValueFields()
      Validate the multivalue parameters managed by the input manager. For each different group of multivalue elements found, remove all existing elements, then add the NON-EMPTY params from the input, and finally validate, returning errors.

      NOTE: fields having subelements or attributes must NOT be "updated" by this method, since it destroys the element before adding a new one with JUST the element text and no child nodes.

      Overrides:
      updateMultiValueFields in class SchemEditValidator