org.mycore.datamodel.metadata.validator
Class MCREditorOutValidator.MCRMetaHistoryDateCheck

java.lang.Object
  extended by org.mycore.datamodel.metadata.validator.MCREditorOutValidator.MCRMetaHistoryDateCheck
All Implemented Interfaces:
MCREditorMetadataValidator
Enclosing class:
MCREditorOutValidator

static class MCREditorOutValidator.MCRMetaHistoryDateCheck
extends Object
implements MCREditorMetadataValidator


Constructor Summary
MCREditorOutValidator.MCRMetaHistoryDateCheck()
           
 
Method Summary
 String checkDataSubTag(Element datasubtag)
          Gives hints to the editor form developer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCREditorOutValidator.MCRMetaHistoryDateCheck

MCREditorOutValidator.MCRMetaHistoryDateCheck()
Method Detail

checkDataSubTag

public String checkDataSubTag(Element datasubtag)
Description copied from interface: MCREditorMetadataValidator
Gives hints to the editor form developer. If an element is not valid it is removed from the JDOM document. The returned String then can give a hint to the form developer, why it is removed. This method may throw a RuntimeException in which case the whole validation process will fail.

Specified by:
checkDataSubTag in interface MCREditorMetadataValidator
Returns:
null, everything is OK validation error message