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 of
I_CmsXmlSchemaType
.
The CmsDefaultXmlContentHandler
checks for that interface when it validates values.-
Method Summary
Modifier and TypeMethodDescriptionvalidateWithMessage
(String value) Checks if a given value is valid according validation rules of this schema type in the XML schema.
-
Method Details
-
validateWithMessage
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.
-