Package org.eclipse.twipse.ecf

Source Code of org.eclipse.twipse.ecf.TwitterNamespace

package org.eclipse.twipse.ecf;
import java.io.Writer;

import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.core.identity.IDCreateException;
import org.eclipse.ecf.core.identity.Namespace;
/******************************************************************************
* Copyright (c) 2007 Savino Sguera. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this
* distribution and is available at http://www.eclipse.org/legal/epl-v10.html.
*
* Contributors:
*   Savino Sguera < s.sguera@ieee.org >
******************************************************************************
*/
public class TwitterNamespace extends Namespace {

  @Override
  public ID createInstance(Object[] parameters) throws IDCreateException {
    try{
      return new TwitterID(this,(String)parameters[0]);
    }catch(Exception e){
      throw new IDCreateException("Exception creating TwitterID");
    }
  }

  @Override
  public String getScheme() {
    return "http://";
  }

  @SuppressWarnings("unchecked")
  public Class[][] getSupportedParameterTypes() {
    return new Class[][] { { String.class } };
  }
}
TOP

Related Classes of org.eclipse.twipse.ecf.TwitterNamespace

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.