if( f == null ) {
final String msg = format(
"Attempt to constrain datatype (%s) with unsupported constraining facet ('%s' , '%s')",
getDatatype(), facet, value );
log.severe( msg );
throw new InvalidConstrainingFacetException( msg, facet, value );
}
/*
* Check the value
*/
XMLGregorianCalendar c = null;
if( value instanceof XMLGregorianCalendar ) {
c = (XMLGregorianCalendar) value;
}
if( c == null || !isValidValue( c ) ) {
final String msg = format(
"Attempt to constrain datatype (%s) using constraining facet ('%s') with an unsupported value ('%s')",
getDatatype(), f, value );
log.severe( msg );
throw new InvalidConstrainingFacetException( msg, facet, value );
}
Number lower, upper;
boolean inclusiveLower, inclusiveUpper;
if( XSD.MAX_EXCLUSIVE.equals( f ) ) {