Examples of IDCreateException


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

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

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

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

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

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

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

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

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

    } else if (parameters != null && parameters.length == 2 && parameters[0] instanceof IServiceTypeID && parameters[1] instanceof URI) {
      IServiceTypeID serviceTypeID = (IServiceTypeID) parameters[0];
      URI uri = (URI) parameters[1];
      return new DnsSdServiceID(this, new DnsSdServiceTypeID(this, serviceTypeID), uri);
    } else {
      throw new IDCreateException(Messages.DnsSdNamespace_Wrong_Parameters);
    }
  }
View Full Code Here

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

  /* (non-Javadoc)
   * @see org.eclipse.ecf.core.identity.Namespace#createInstance(java.lang.Object[])
   */
  public ID createInstance(Object[] parameters) throws IDCreateException {
    if(parameters == null || parameters.length == 0 || parameters.length > 2) {
      throw new IDCreateException(Messages.UserInputNameSpace_INVALID_PARAMS);
    } else{
      throw new IDCreateException(Messages.UserInputNameSpace_INVALID_PARAMS);
    }
  }
View Full Code Here

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

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

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

   */
  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 RSExampleID(this, (String) parameters[0]);
  }
View Full Code Here

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

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

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

  public ID createBBObjectId(Namespace namespace, URL baseURL, String longValue)
      throws IDCreateException {
    try {
      return new ForumID((PHPBBNamespace) namespace, baseURL, Long.parseLong(longValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.