public AnyURIValue(String s) throws XPathException { try { URI uri = new URI(s); } catch (URISyntaxException e) { throw new XPathException( "Type error: the given string " + s + " cannot be cast to xs:anyURI"); } this.uri = s;
public AnyURIValue(URI uri) { this.uri = uri.toString();
	public AnyURIValue(String s) throws XPathException {		try {			URI uri = new URI(s);		} catch (URISyntaxException e) {			throw new XPathException(				"Type error: the given string " + s + " cannot be cast to xs:anyURI");		}		this.uri = s;	}