/*******************************************************************************
* Copyright (c) 2008 Olivier Moises
*
* 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:
* Olivier Moises- initial API and implementation
*******************************************************************************/
package org.eclipse.wazaabi.engine.edp.bundled.converters;
import org.eclipse.wazaabi.engine.edp.converters.BundledConverter;
public class BundledIntToStringConverter implements BundledConverter {
public String convert(Object input) {
if(input instanceof Integer)
return Integer.toString((Integer)input);
else
return null;
}
public boolean isConverterFor(Class<?> input, Class<?> output) {
if(input == Integer.class)
if(output == String.class)
return true;
return false;
}
public void dispose() {
// TODO Auto-generated method stub
}
public boolean isDisposed() {
// TODO Auto-generated method stub
return false;
}
}