001/** 002The contents of this file are subject to the Mozilla Public License Version 1.1 003(the "License"); you may not use this file except in compliance with the License. 004You may obtain a copy of the License at http://www.mozilla.org/MPL/ 005Software distributed under the License is distributed on an "AS IS" basis, 006WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the 007specific language governing rights and limitations under the License. 008 009The Original Code is "AttributeDefinition.java". Description: 010"Contains information about a RIM attribute, for the purpose of generating source 011 code for a RIM class" 012 013The Initial Developer of the Original Code is University Health Network. Copyright (C) 0142001. All Rights Reserved. 015 016Contributor(s): ______________________________________. 017 018Alternatively, the contents of this file may be used under the terms of the 019GNU General Public License (the "GPL"), in which case the provisions of the GPL are 020applicable instead of those above. If you wish to allow use of your version of this 021file only under the terms of the GPL and not to allow others to use your version 022of this file under the MPL, indicate your decision by deleting the provisions above 023and replace them with the notice and other provisions required by the GPL License. 024If you do not delete the provisions above, a recipient may use your version of 025this file under either the MPL or the GPL. 026 027*/ 028 029package ca.uhn.hl7v3.sourcegen; 030 031/** 032 * Contains information about a RIM attribute, for the purpose of generating source 033 * code for a RIM class. 034 * @author Bryan Tripp 035 * @deprecated 036 */ 037public class AttributeDefinition { 038 039 private String name; 040 private String dataType; 041 private String description; 042 //private int vocabularyDomain; 043 //private int vocabularyStrength; 044 045 //private static final int CWE = 0; 046 //private static final int CNE = 1; 047 048 /** Creates a new instance of AttributeDefinition */ 049 public AttributeDefinition() { 050 } 051 052 public void setName(String name) { 053 this.name = name; 054 } 055 public String getName() { 056 return this.name; 057 } 058 059 public void setDataType(String dataType) { 060 if (DataTypeDefinition.isInstance(dataType)) { 061 this.dataType = DataTypeDefinition.mapInstanceName(dataType); 062 } else { 063 this.dataType = dataType; 064 } 065 } 066 public String getDataType() { 067 return this.dataType; 068 } 069 070 public void setDescription(String description) { 071 this.description = description; 072 } 073 public String getDescription() { 074 return this.description; 075 } 076 077}