Ernst de Haan - 2011-11-08

This also applies to XML types.

One possible implementation would be to add a protected checkValueImpl() method to the Type class and implement it in certain subclasses, such as the PatternType and the XmlType (it can have a SAXException as cause, or - in case XSD validation is supported - a schema validation exception).