Class AbstractContentValidator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.cms.contenttype.validation.AbstractContentValidator
-
- All Implemented Interfaces:
ContentValidator
,LogEnabled
- Direct Known Subclasses:
AbstractIntervalValidator
,AbstractRepeaterWithUniqueContentValidator
,DegreesInCategoryConsistencyValidator
,ProgramItemHierarchyValidator
public abstract class AbstractContentValidator extends AbstractLogEnabled implements ContentValidator
This abstract class represent a global validator for contents.
-
-
Field Summary
Fields Modifier and Type Field Description private ContentType
_contentType
-
Constructor Summary
Constructors Constructor Description AbstractContentValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentType
getContentType()
Get the content typevoid
setContentType(ContentType contentType)
Set the content type-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ametys.cms.contenttype.ContentValidator
validate, validate
-
-
-
-
Field Detail
-
_contentType
private ContentType _contentType
-
-
Constructor Detail
-
AbstractContentValidator
public AbstractContentValidator()
-
-
Method Detail
-
setContentType
public void setContentType(ContentType contentType)
Description copied from interface:ContentValidator
Set the content type- Specified by:
setContentType
in interfaceContentValidator
- Parameters:
contentType
- The content type
-
getContentType
public ContentType getContentType()
Description copied from interface:ContentValidator
Get the content type- Specified by:
getContentType
in interfaceContentValidator
- Returns:
- ContentType
-
-