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 } };
}
}