Package org.opencms.xml.types
Interface I_CmsXmlValidateWithMessage
-
- All Known Implementing Classes:
CmsXmlSerialDateValue
public interface I_CmsXmlValidateWithMessage
Interface to provide specific error messages on validation Should be used as an extension ofI_CmsXmlSchemaType
. TheCmsDefaultXmlContentHandler
checks for that interface when it validates values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CmsMessageContainer
validateWithMessage(java.lang.String value)
Checks if a given value is valid according validation rules of this schema type in the XML schema.
-
-
-
Method Detail
-
validateWithMessage
CmsMessageContainer validateWithMessage(java.lang.String value)
Checks if a given value is valid according validation rules of this schema type in the XML schema.In contrast to
I_CmsXmlSchemaType.validateValue(String)
a specific error message is returned in the case of validation errors.- Parameters:
value
- the value to validate- Returns:
null
if the value is valid, a localized error message otherwise.
-
-