Package org.dlese.dpc.schemedit.input
Class NsdlAnnoValidator
java.lang.Object
org.dlese.dpc.schemedit.input.SchemEditValidator
org.dlese.dpc.schemedit.input.NsdlAnnoValidator
Extension of SchemEditValidator that is only concerned with a few
msp2-specific fields.
- Author:
- ostwald
-
Field Summary
Fields inherited from class org.dlese.dpc.schemedit.input.SchemEditValidator
docMap, framework, im, request, schemaHelper, sef -
Constructor Summary
ConstructorsConstructorDescriptionNsdlAnnoValidator(SchemEditForm sef, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) Constructor for the NsdlAnnoValidator object -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanskipFieldValidation(InputField inputField) Suppress validation of all fields under MATERIALS_LIST_PATHvoidValidate the multivalue parameters managed by the input manager.Methods inherited from class org.dlese.dpc.schemedit.input.SchemEditValidator
exposeField, getEntityErrors, getInputManager, hasEntityErrors, isLastRequiredRepeatingElement, pruneInstanceDoc, pruneRepeatingFields, validateAttributeFields, validateDeletion, validateDocument, validateElementFields, validateForm, validateMultiValueFields
-
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 Parameterframework- Description of the Parametermapping- NOT YET DOCUMENTEDrequest- Description of the Parameter
-
-
Method Details
-
skipFieldValidation
Suppress validation of all fields under MATERIALS_LIST_PATH- Overrides:
skipFieldValidationin classSchemEditValidator- 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:
updateMultiValueFieldsin classSchemEditValidator
-