Class OsmEditValidator

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

public class OsmEditValidator extends SchemEditValidator
Extension of SchemEditValidator that implements special (non-schema) validation for OSM framework.
Author:
ostwald
  • Constructor Details

    • OsmEditValidator

      public OsmEditValidator(SchemEditForm sef, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
      Constructor for the OsmEditValidator 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 the pubName field, since it is handled in validateForm
      Overrides:
      skipFieldValidation in class SchemEditValidator
      Parameters:
      inputField - Description of the Parameter
      Returns:
      Description of the Return Value
    • validateForm

      public SchemEditActionErrors validateForm()
      Custom validator for pubName field that throws a validation error when this field is empty, even though the schema allows it to be empty.
      Overrides:
      validateForm in class SchemEditValidator
      Returns:
      Description of the Return Value