org.mycore.datamodel.metadata.validator
Interface MCREditorMetadataValidator

All Known Implementing Classes:
MCREditorOutValidator.MCRMetaAdressCheck, MCREditorOutValidator.MCRMetaClassificationCheck, MCREditorOutValidator.MCRMetaHistoryDateCheck

public interface MCREditorMetadataValidator

Validates the output of the Editor framework. Implementors have to be thread safe.

Version:
$Revision: 1 $ $Date: 08.05.2009 11:51:35 $
Author:
Thomas Scheffler (yagee)

Method Summary
 String checkDataSubTag(Element datasubtag)
          Gives hints to the editor form developer.
 

Method Detail

checkDataSubTag

String checkDataSubTag(Element datasubtag)
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.

Parameters:
datasubtag -
Returns:
null, everything is OK validation error message