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.fhir.ucum;
013
014
015public abstract class Unit extends Concept {
016
017        /**
018         * kind of thing this base unit represents
019         */
020        private String property;
021
022        public Unit(ConceptKind kind, String code, String codeUC) {
023                super(kind, code, codeUC);
024        }
025
026        /**
027         * @return the property
028         */
029        public String getProperty() {
030                return property;
031        }
032
033        /**
034         * @param property the property to set
035         */
036        public void setProperty(String property) {
037                this.property = property;
038        }
039
040        /* (non-Javadoc)
041         * @see org.eclipse.ohf.ucum.model.Concept#getDescription()
042         */
043        @Override
044        public String getDescription() {
045                return super.getDescription()+" ("+property+")";
046        }
047        
048        
049}