public ID createInstance(Object[] parameters) throws IDCreateException { try { String init = getInitStringFromExternalForm(parameters); if (init != null) return new URIID(this, new URI(init)); if (parameters[0] instanceof URI) return new URIID(this, (URI) parameters[0]); if (parameters[0] instanceof String) return new URIID(this, new URI((String) parameters[0])); throw new IDCreateException("Cannot create URIID"); } catch (Exception e) { throw new IDCreateException(URIIDNamespace.this.getName() + " createInstance()", e); //$NON-NLS-1$ } }
public ID createInstance(Object[] parameters) throws IDCreateException { try { String init = getInitStringFromExternalForm(parameters); if (init != null) return new URIID(this, new URI(init)); if (parameters[0] instanceof URI) return new URIID(this, (URI) parameters[0]); if (parameters[0] instanceof String) return new URIID(this, new URI((String) parameters[0])); throw new IDCreateException("Cannot create URIID"); } catch (Exception e) { throw new IDCreateException(URIIDNamespace.this.getName() + " createInstance()", e); //$NON-NLS-1$ } }
/** * @since 3.5 */ public ID createURIID(String uri) throws IDCreateException { return createID(new URIID.URIIDNamespace(), new Object[] { uri }); }
/** * @since 3.5 */ public ID createURIID(URI uri) throws IDCreateException { return createID(new URIID.URIIDNamespace(), new Object[] { uri }); }
/** * @since 3.5 */ public ID createURIID(String uri) throws IDCreateException { return createID(new URIID.URIIDNamespace(), new Object[] { uri }); }
/** * @since 3.5 */ public ID createURIID(URI uri) throws IDCreateException { return createID(new URIID.URIIDNamespace(), new Object[] { uri }); }