Class MCREditorOutValidator
java.lang.Object
org.mycore.datamodel.metadata.validator.MCREditorOutValidator
- Version:
- $Revision: 1 $ $Date: 08.05.2009 15:51:37 $
- Author:
- Thomas Scheffler (yagee)
-
Constructor Summary
ConstructorDescriptionMCREditorOutValidator
(Document jdomIn, MCRObjectID id) instantiate the validator with the editor inputjdom_in
. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
checkMetaObject
(Element datasubtag, Class<? extends MCRMetaInterface> metaClass, boolean keepLang) static String
checkMetaObjectWithLang
(Element datasubtag, Class<? extends MCRMetaInterface> metaClass) static String
checkMetaObjectWithLangNotEmpty
(Element datasubtag, Class<? extends MCRMetaInterface> metaClass) static String
checkMetaObjectWithLinks
(Element datasubtag, Class<? extends MCRMetaInterface> metaClass) tries to generate a valid MCRObject as JDOM Document.static Class<? extends MCRMetaInterface>
returns a List of Error log entriesstatic void
setDefaultDerivateACLs
(Element service) The method add a default ACL-block.
-
Constructor Details
-
MCREditorOutValidator
instantiate the validator with the editor inputjdom_in
.id
will be set as the MCRObjectID for the resulting object that can be fetched withgenerateValidMyCoReObject()
- Parameters:
jdomIn
- editor input- Throws:
JDOMException
IOException
-
-
Method Details
-
getClass
public static Class<? extends MCRMetaInterface> getClass(String mcrclass) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
checkMetaObject
public static String checkMetaObject(Element datasubtag, Class<? extends MCRMetaInterface> metaClass, boolean keepLang) -
checkMetaObjectWithLang
public static String checkMetaObjectWithLang(Element datasubtag, Class<? extends MCRMetaInterface> metaClass) -
checkMetaObjectWithLangNotEmpty
public static String checkMetaObjectWithLangNotEmpty(Element datasubtag, Class<? extends MCRMetaInterface> metaClass) -
checkMetaObjectWithLinks
public static String checkMetaObjectWithLinks(Element datasubtag, Class<? extends MCRMetaInterface> metaClass) -
setDefaultDerivateACLs
The method add a default ACL-block. -
generateValidMyCoReObject
tries to generate a valid MCRObject as JDOM Document.- Returns:
- MCRObject
- Throws:
JDOMException
SAXParseException
IOException
-
getErrorLog
returns a List of Error log entries- Returns:
- log entries for the whole validation process
-