Package org.dlese.dpc.schemedit.input
Class OsmEditValidator
java.lang.Object
org.dlese.dpc.schemedit.input.SchemEditValidator
org.dlese.dpc.schemedit.input.OsmEditValidator
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
ConstructorsConstructorDescriptionOsmEditValidator(SchemEditForm sef, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) Constructor for the OsmEditValidator object -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanskipFieldValidation(InputField inputField) Suppress validation of the pubName field, since it is handled in validateFormCustom 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
-
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 Parameterframework- Description of the Parametermapping- NOT YET DOCUMENTEDrequest- Description of the Parameter
-
-
Method Details
-
skipFieldValidation
Suppress validation of the pubName field, since it is handled in validateForm- Overrides:
skipFieldValidationin classSchemEditValidator- Parameters:
inputField- Description of the Parameter- Returns:
- Description of the Return Value
-
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:
validateFormin classSchemEditValidator- Returns:
- Description of the Return Value
-