/** * Test whether the given string is a legal lexical form * of this datatype. */ @Override public boolean isValid(String lexicalForm) { try { parse(lexicalForm); return true; } catch (DatatypeFormatException e) { return false; } }
/** * Test whether the given string is a legal lexical form * of this datatype. */ @Override public boolean isValid(String lexicalForm) { try { parse(lexicalForm); return true; } catch (DatatypeFormatException e) { return false; } }