Package org.eclipse.ecf.core.identity

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


  public ID createBBObjectId(Namespace namespace, String stringValue)
      throws IDCreateException {
    try {
      return new ThreadID((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 ThreadID((VBNamespace) namespace, baseURL, Long.parseLong(longValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

      if (args[0] instanceof String)
        return new FileTransferID(this, new URI((String) args[0]));
      if (args[0] instanceof URI)
        return new FileTransferID(this, (URI) args[0]);
    } catch (Exception e) {
      throw new IDCreateException(Messages.FileTransferNamespace_Exception_Create_Instance, e);
    }
    throw new IDCreateException(Messages.FileTransferNamespace_Exception_Create_Instance_Failed);
  }
View Full Code Here

  public ID createBBObjectId(Namespace namespace, String stringValue)
      throws IDCreateException {
    try {
      return new GuestID((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 GuestID((VBNamespace) namespace, baseURL, longValue);
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

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

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

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

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

      if (args.length == 5) {
        return new XMPPRoomID(this, (String) args[0], (String) args[1], (String) args[2], (String) args[3], (String) args[4]);
      }
      throw new IllegalArgumentException(Messages.XMPPRoomNamespace_EXCEPTION_INVALID_ARGUMENTS);
    } catch (final Exception e) {
      throw new IDCreateException(Messages.XMPPRoomNamespace_EXCEPTION_ID_CREAT, e);
    }
  }
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.