DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.input
Class NsdlAnnoValidator

java.lang.Object
  extended by org.dlese.dpc.schemedit.input.SchemEditValidator
      extended by org.dlese.dpc.schemedit.input.NsdlAnnoValidator

public class NsdlAnnoValidator
extends SchemEditValidator

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
NsdlAnnoValidator(SchemEditForm sef, MetaDataFramework framework, org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
          Constructor for the NsdlAnnoValidator object
 
Method Summary
protected  boolean skipFieldValidation(InputField inputField)
          Suppress validation of all fields under MATERIALS_LIST_PATH
 void updateMultiValueFields()
          Validate 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 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 all fields under MATERIALS_LIST_PATH

Overrides:
skipFieldValidation in class SchemEditValidator
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:
updateMultiValueFields in class SchemEditValidator

DLESE Tools
v1.6.0