blob: 910b36a610127103c5a4bd84940804402accbaa2 [file] [log] [blame]
package org.eclipse.jem.internal.proxy.ide;
/*******************************************************************************
* Copyright (c) 2001, 2003 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
*******************************************************************************/
/*
* $RCSfile: IDEFloatTypeBeanTypeProxy.java,v $
* $Revision: 1.2 $ $Date: 2004/02/03 23:18:36 $
*/
import org.eclipse.jem.internal.proxy.core.*;
/**
* Float BeanType Proxy.
*/
final class IDEFloatTypeBeanTypeProxy extends IDEPrimitiveBeanTypeProxy {
protected IDEFloatTypeBeanTypeProxy(IDEProxyFactoryRegistry aRegistry, Class aClass) {
super(aRegistry, aClass);
}
INumberBeanProxy createFloatBeanProxy(float aFloat){
return new IDENumberBeanProxy(fProxyFactoryRegistry,new Float(aFloat),this);
}
int getPrimitiveType(){
return FLOAT;
}
protected IIDEBeanProxy newBeanProxy(Object anObject){
Number n = anObject instanceof Character ? new Float(((Character) anObject).charValue()) : (Number) anObject;
return new IDENumberBeanProxy(fProxyFactoryRegistry, n, this);
}
}