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 */ 008 public class ComponentDefinition { 009 010 private String name; 011 private String dataType; 012 private String description; 013 014 /** Creates a new instance of ComponentDefinition */ 015 public ComponentDefinition() { 016 } 017 018 public void setName(String name) { 019 this.name = name; 020 } 021 public String getName() { 022 return this.name; 023 } 024 025 public void setDataType(String dataType) { 026 if (DataTypeDefinition.isInstance(dataType)) { 027 this.dataType = DataTypeDefinition.mapInstanceName(dataType); 028 } else { 029 this.dataType = dataType; 030 } 031 } 032 public String getDataType() { 033 return this.dataType; 034 } 035 036 public void setDescription(String description) { 037 this.description = description; 038 } 039 public String getDescription() { 040 return this.description; 041 } 042 043 }