001 package ca.uhn.hl7v3.sourcegen;
002
003 /**
004 * Contains information about a RIM data type component, for the purpose of generating source
005 * code for a RIM data type.
006 * @author Bryan Tripp
007 * @deprecated
008 */
009 public class ComponentDefinition {
010
011 private String name;
012 private String dataType;
013 private String description;
014
015 /** Creates a new instance of ComponentDefinition */
016 public ComponentDefinition() {
017 }
018
019 public void setName(String name) {
020 this.name = name;
021 }
022 public String getName() {
023 return this.name;
024 }
025
026 public void setDataType(String dataType) {
027 if (DataTypeDefinition.isInstance(dataType)) {
028 this.dataType = DataTypeDefinition.mapInstanceName(dataType);
029 } else {
030 this.dataType = dataType;
031 }
032 }
033 public String getDataType() {
034 return this.dataType;
035 }
036
037 public void setDescription(String description) {
038 this.description = description;
039 }
040 public String getDescription() {
041 return this.description;
042 }
043
044 }