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

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

static class MCREditorOutValidator.MCRMetaClassificationCheck
extends Object
implements MCREditorMetadataValidator


Constructor Summary
MCREditorOutValidator.MCRMetaClassificationCheck()
           
 
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.MCRMetaClassificationCheck

MCREditorOutValidator.MCRMetaClassificationCheck()
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