public ID createInstance(Object[] args) throws IDCreateException { try { String init = getInitStringFromExternalForm(args); if (init != null) return new GUID(this, init); if (args == null || args.length <= 0) return new GUID(this); else if (args.length == 1 && args[0] instanceof Integer) return new GUID(this, ((Integer) args[0]).intValue()); else if (args.length == 1 && args[0] instanceof String) return new GUID(this, ((String) args[0])); else return new GUID(this); } catch (Exception e) { throw new IDCreateException(getName() + " createInstance()", e); //$NON-NLS-1$ } }
public ID createInstance(Object[] args) throws IDCreateException { try { String init = getInitStringFromExternalForm(args); if (init != null) return new GUID(this, init); if (args == null || args.length <= 0) return new GUID(this); else if (args.length == 1 && args[0] instanceof Integer) return new GUID(this, ((Integer) args[0]).intValue()); else if (args.length == 1 && args[0] instanceof String) return new GUID(this, ((String) args[0])); else return new GUID(this); } catch (Exception e) { throw new IDCreateException(getName() + " createInstance()", e); //$NON-NLS-1$ } }