org.dlese.dpc.schemedit.input
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
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 |
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 Parameterrequest
- Description of the Parametermapping
- NOT YET DOCUMENTED
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