Package org.eclipse.ecf.core.identity

Examples of org.eclipse.ecf.core.identity.IDCreateException


          return id;
        }
      }
      return new PHPBBID(this, new URI((String) args[0]));
    } catch (URISyntaxException e) {
      throw new IDCreateException("phpBB ID creation exception", e);
    } catch (NumberFormatException e) {
      throw new IDCreateException("phpBB ID creation exception", e);
    } catch (MalformedURLException e) {
      throw new IDCreateException("phpBB ID creation exception", e);
    }
  }
View Full Code Here


  public ID createBBObjectId(Namespace namespace, String stringValue)
      throws IDCreateException {
    try {
      return new ForumID((VBNamespace) namespace, new URI(stringValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

  public ID createBBObjectId(Namespace namespace, URL baseURL, String longValue)
      throws IDCreateException {
    try {
      return new ForumID((VBNamespace) namespace, baseURL, Long.parseLong(longValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

      throws IDCreateException {
    try {
      return new ThreadMessageID((VBNamespace) namespace, new URI(
          stringValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

      throws IDCreateException {
    try {
      return new ThreadMessageID((VBNamespace) namespace, baseURL,
          Long.parseLong(longValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

   */
  public ID createInstance(Object[] parameters) throws IDCreateException {
    // XXX Note that this assumes that a unique string is provided for creating the ID
    // e.g. IDFactory.getDefault().createID("myid");
    if (parameters == null || parameters.length < 1)
      throw new IDCreateException("parameters not of correct size");
    if (!(parameters[0] instanceof String))
      throw new IDCreateException("parameter not of String type");
    return new TrivialID(this, (String) parameters[0]);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.identity.IDCreateException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.