Class RichTextValidator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.runtime.parameter.DefaultValidator
-
- org.ametys.plugins.core.parameter.TextValidator
-
- org.ametys.plugins.core.parameter.RichTextValidator
-
- All Implemented Interfaces:
Validator
,PluginAware
,Configurable
,LogEnabled
,Serviceable
public class RichTextValidator extends TextValidator
A TextValidator where tags are removed from the text (to count chars for example)
-
-
Field Summary
Fields Modifier and Type Field Description private static String
__DETECT_EMPTY_LINES
private static String
__DETECT_EMPTY_PARA
private static String
__DETECT_TAGS
-
Fields inherited from class org.ametys.plugins.core.parameter.TextValidator
_maxLength
-
Fields inherited from class org.ametys.runtime.parameter.DefaultValidator
_invalidText, _isMandatory, _pluginName, _regexp, _smanager
-
-
Constructor Summary
Constructors Constructor Description RichTextValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getText(Object value)
Get the text-
Methods inherited from class org.ametys.plugins.core.parameter.TextValidator
configure, getConfiguration, validateArrayValues, validateSingleValue
-
Methods inherited from class org.ametys.runtime.parameter.DefaultValidator
equals, hashCode, service, setPluginInfo, validate
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
__DETECT_EMPTY_PARA
private static final String __DETECT_EMPTY_PARA
- See Also:
- Constant Field Values
-
__DETECT_EMPTY_LINES
private static final String __DETECT_EMPTY_LINES
- See Also:
- Constant Field Values
-
__DETECT_TAGS
private static final String __DETECT_TAGS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RichTextValidator
public RichTextValidator()
-
-
Method Detail
-
getText
protected String getText(Object value)
Description copied from class:TextValidator
Get the text- Overrides:
getText
in classTextValidator
- Parameters:
value
- The value to convert to text- Returns:
- the value converted
-
-