*/
@Override
public Object parse(String lexicalForm) throws DatatypeFormatException {
int index = lexicalForm.indexOf("/");
if (index == -1) {
throw new DatatypeFormatException(lexicalForm, theRationalType, "");
}
try {
int numerator = Integer.parseInt(lexicalForm.substring(0, index));
int denominator = Integer.parseInt(lexicalForm.substring(index+1));
return new Rational(numerator, denominator);
} catch (NumberFormatException e) {
throw new DatatypeFormatException(lexicalForm, theRationalType, "");
}
}