001/******************************************************************************* 002 * Crown Copyright (c) 2006 - 2014, Copyright (c) 2006 - 2014 Kestral Computing P/L. 003 * All rights reserved. This program and the accompanying materials 004 * are made available under the terms of the Eclipse Public License v1.0 005 * which accompanies this distribution, and is available at 006 * http://www.eclipse.org/legal/epl-v10.html 007 * 008 * Contributors: 009 * Kestral Computing P/L - initial implementation 010 *******************************************************************************/ 011 012package org.hl7.fhir.utilities.ucum.special; 013 014import org.hl7.fhir.utilities.ucum.Decimal; 015 016public abstract class SpecialUnitHandler { 017 018 /** 019 * Used to connect this handler with the case sensitive unit 020 * @return 021 */ 022 public abstract String getCode(); 023 024 /** 025 * the alternate units to convert to 026 * 027 * @return 028 */ 029 public abstract String getUnits(); 030 031 /** 032 * get the conversion value 033 * 034 * @return 035 */ 036 public abstract Decimal getValue(); 037 038}