public ID createStringID(String idstring) throws IDCreateException { if (idstring == null) throw new IDCreateException("StringID cannot be null"); //$NON-NLS-1$ return createID(new StringID.StringIDNamespace(), new String[] { idstring }); }
public ID createInstance(Object[] parameters) throws IDCreateException { try { String init = getInitStringFromExternalForm(parameters); if (init != null) return new StringID(this, init); return new StringID(this, (String) parameters[0]); } catch (Exception e) { throw new IDCreateException(StringIDNamespace.this.getName() + " createInstance()", e); //$NON-NLS-1$ } }
/** * @since 3.5 */ public ID createUuID() throws IDCreateException { return createID(new UuID.UuIDNamespace(), (Object[]) null); } }
public ID createID(Namespace n, Object[] args) throws IDCreateException { // Verify namespace is non-null if (n == null) logAndThrow("Namespace cannot be null", null); //$NON-NLS-1$ initialize(); // Make sure that namespace is in table of known namespace. If not, // throw...we don't create any instances that we don't know about! Namespace ns = getNamespace0(n); if (ns == null) logAndThrow("Namespace " + n.getName() + " not found", null); //$NON-NLS-1$ return ns.createInstance(args); }
public ID createID(String namespaceName, Object[] args) throws IDCreateException { Namespace n = getNamespaceByName(namespaceName); if (n == null) throw new IDCreateException( "Namespace " + namespaceName + " not found"); //$NON-NLS-1$ return createID(n, args); }
/** * @since 3.5 */ public ID createURIID(String uri) throws IDCreateException { return createID(new URIID.URIIDNamespace(), new Object[] { uri }); }
public ID createID(Namespace n, Object[] args) throws IDCreateException { // Verify namespace is non-null if (n == null) logAndThrow("Namespace cannot be null", null); //$NON-NLS-1$ initialize(); // Make sure that namespace is in table of known namespace. If not, // throw...we don't create any instances that we don't know about! Namespace ns = getNamespace0(n); if (ns == null) logAndThrow("Namespace " + n.getName() + " not found", null); //$NON-NLS-1$ return ns.createInstance(args); }
public ID createInstance(Object[] parameters) throws IDCreateException { try { String init = getInitStringFromExternalForm(parameters); if (init != null) return new StringID(this, init); return new StringID(this, (String) parameters[0]); } catch (Exception e) { throw new IDCreateException(StringIDNamespace.this.getName() + " createInstance()", e); //$NON-NLS-1$ } }
/** * @since 3.5 */ public ID createUuID() throws IDCreateException { return createID(new UuID.UuIDNamespace(), (Object[]) null); } }
public ID createStringID(String idstring) throws IDCreateException { if (idstring == null) throw new IDCreateException("StringID cannot be null"); //$NON-NLS-1$ return createID(new StringID.StringIDNamespace(), new String[] { idstring }); }
public ID createID(String namespaceName, Object[] args) throws IDCreateException { Namespace n = getNamespaceByName(namespaceName); if (n == null) throw new IDCreateException( "Namespace " + namespaceName + " not found"); //$NON-NLS-1$ return createID(n, args); }
/** * @since 3.5 */ public ID createURIID(URI uri) throws IDCreateException { return createID(new URIID.URIIDNamespace(), new Object[] { uri }); }
/** * @since 3.5 */ public ID createUuID(UUID uuid) throws IDCreateException { return createID(new UuID.UuIDNamespace(), new Object[] { uuid }); }
/** * @since 3.5 */ public ID createURIID(String uri) throws IDCreateException { return createID(new URIID.URIIDNamespace(), new Object[] { uri }); }
/** * @since 3.5 */ public ID createUuID(URI uuidURI) throws IDCreateException { return createID(new UuID.UuIDNamespace(), new Object[] { uuidURI }); }
/** * @since 3.5 */ public ID createURIID(URI uri) throws IDCreateException { return createID(new URIID.URIIDNamespace(), new Object[] { uri }); }
/** * @since 3.5 */ public ID createUuID(String uuid) throws IDCreateException { return createID(new UuID.UuIDNamespace(), new Object[] { uuid }); }
/** * @since 3.5 */ public ID createUuID(UUID uuid) throws IDCreateException { return createID(new UuID.UuIDNamespace(), new Object[] { uuid }); }
/** * @since 3.5 */ public ID createUuID(String uuid) throws IDCreateException { return createID(new UuID.UuIDNamespace(), new Object[] { uuid }); }
/** * @since 3.5 */ public ID createUuID(URI uuidURI) throws IDCreateException { return createID(new UuID.UuIDNamespace(), new Object[] { uuidURI }); }