assertTrue("Allowed int conversion", false); } catch (DatatypeFormatException e) {} assertEquals("Extract value", l1.getValue(), new BaseDatatype.TypedValue("foo", typeURI)); assertEquals("Extract xml tag", l1.isWellFormedXML(), false);
assertTrue("Allowed int conversion", false); } catch (DatatypeFormatException e) {} assertEquals("Extract value", l1.getValue(), new BaseDatatype.TypedValue("foo", typeURI)); assertEquals("Extract xml tag", l1.isWellFormedXML(), false);
/** * Parse a lexical form of this datatype to a value * @throws DatatypeFormatException if the lexical form is not legal */ @Override public Object parse(String lexicalForm) throws DatatypeFormatException { return new TypedValue(lexicalForm, getURI()); }
/** * Parse a lexical form of this datatype to a value * @throws DatatypeFormatException if the lexical form is not legal */ @Override public Object parse(String lexicalForm) throws DatatypeFormatException { return new TypedValue(lexicalForm, getURI()); }