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;
013
014
015public class Prefix extends Concept {
016        
017        /**
018         * value for the prefix.  
019         */
020        private Decimal value; // 1^-24 through to 1^24
021
022        /**
023         * @param code
024         * @param codeUC
025         */
026        public Prefix(String code, String codeUC) {
027                super(ConceptKind.PREFIX, code, codeUC);
028        }
029
030        /**
031         * @return the index
032         */
033        public Decimal getValue() {
034                return value;
035        }
036
037        /**
038         * @param index the index to set
039         */
040        public void setValue(Decimal index) {
041                this.value = index;
042        }
043
044        /* (non-Javadoc)
045         * @see org.eclipse.ohf.ucum.model.Concept#getDescription()
046         */
047        @Override
048        public String getDescription() {
049                return super.getDescription()+" = "+value.toString();
050        }
051        
052        
053        
054
055}