DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.input
Class OsmEditValidator

java.lang.Object
  extended by org.dlese.dpc.schemedit.input.SchemEditValidator
      extended by 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

Field Summary
 
Fields inherited from class org.dlese.dpc.schemedit.input.SchemEditValidator
docMap, framework, im, request, schemaHelper, sef
 
Constructor Summary
OsmEditValidator(SchemEditForm sef, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
          Constructor for the OsmEditValidator object
 
Method Summary
protected  boolean skipFieldValidation(InputField inputField)
          Suppress validation of the pubName field, since it is handled in validateForm
 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.
 
Methods inherited from class org.dlese.dpc.schemedit.input.SchemEditValidator
exposeField, getEntityErrors, getInputManager, hasEntityErrors, isLastRequiredRepeatingElement, pruneInstanceDoc, pruneRepeatingFields, updateMultiValueFields, validateAttributeFields, validateDeletion, validateDocument, validateElementFields, validateMultiValueFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
request - Description of the Parameter
mapping - NOT YET DOCUMENTED
Method Detail

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

DLESE Tools
v1.6.0