com.centrasite.jaxr
Interface CentraSiteTextValidator


public interface CentraSiteTextValidator

This class allows validation of strings against simple types predefined by XML schema.


Method Summary
 void validate(java.lang.String value, java.lang.String dataType)
          Validate string value against the given XML schema data type.
 

Method Detail

validate

void validate(java.lang.String value,
              java.lang.String dataType)
              throws ValidationException,
                     javax.xml.registry.JAXRException
Validate string value against the given XML schema data type. The data type may be a "xs:..." or a "CS:..." data type. If no prefix is specified "xs:" is assumed.

Parameters:
value - the value to be validated
dataType - the built-in simple type to be used for validation
Throws:
ValidationExceptionInt - thrown if a validation error occured
ValidationException
javax.xml.registry.JAXRException