/* | |
* Copyright (c) 2005, 2017, Werner Keil and others. | |
* 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: | |
* Werner Keil - initial API and implementation | |
*/ | |
package org.eclipse.uomo.units.impl.format; | |
import java.util.Locale; | |
import java.util.Set; | |
import org.eclipse.uomo.units.AbstractUnitFormat; | |
import javax.measure.format.UnitFormat; | |
import javax.measure.spi.UnitFormatService; | |
/** | |
* @author <a href="mailto:uomo@catmedia.us">Werner Keil</a> | |
* @version 0.5 ($Revision: 308 $), $Date: 2010-11-02 15:56:52 +0000 (Di, 02 Nov 2010) $ | |
*/ | |
public class UnitFormatServiceImpl implements UnitFormatService { | |
@Override | |
public UnitFormat getUnitFormat() { | |
return AbstractUnitFormat.getUnitFormat(); | |
} | |
@Override | |
public UnitFormat getUnitFormat(String name) { | |
return getUnitFormat(); | |
} | |
public UnitFormat getUnitFormat(Locale locale) { | |
return AbstractUnitFormat.getUnitFormat(locale); | |
} | |
@Override | |
public Set<String> getAvailableFormatNames() { | |
// TODO Auto-generated method stub | |
return null; | |
} | |
} |