try {
DatatypeConverter.parseInteger( lexicalForm );
} catch( NumberFormatException e ) {
log.severe( format( "Number format exception (%s) cause while parsing integer %s", e
.getMessage(), lexicalForm ) );
throw new InvalidLiteralException( name, lexicalForm );
}
return XSDDecimal.getInstance().getCanonicalRepresentation(
ATermUtils.makeTypedLiteral( lexicalForm, XSDDecimal.getInstance().getName() ) );
}