blob: d4bd6e3527c4a7e10984cca2e6ccd180dda1295c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jem.internal.proxy.ide;
/*
* $RCSfile: IDELongTypeBeanTypeProxy.java,v $
* $Revision: 1.3 $ $Date: 2004/08/27 15:35:20 $
*/
import org.eclipse.jem.internal.proxy.core.*;
/**
* Long BeanType Proxy.
*/
final class IDELongTypeBeanTypeProxy extends IDEPrimitiveBeanTypeProxy {
protected IDELongTypeBeanTypeProxy(IDEProxyFactoryRegistry aRegistry, Class aClass) {
super(aRegistry, aClass);
}
INumberBeanProxy createLongBeanProxy(long aLong){
return new IDENumberBeanProxy(fProxyFactoryRegistry,new Long(aLong),this);
}
int getPrimitiveType(){
return LONG;
}
protected IIDEBeanProxy newBeanProxy(Object anObject){
Number n = anObject instanceof Character ? new Long(((Character) anObject).charValue()) : (Number) anObject;
return new IDENumberBeanProxy(fProxyFactoryRegistry, n, this);
}
}