1 /* 2 * Copyright 2010 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.openehealth.ipf.modules.hl7.config; 17 18 import java.util.Map; 19 20 /** 21 * 22 * This class should be used to define the custom HL7 model classes 23 * in the spring context definition. 24 * 25 * <pre class="code"> 26 * 27 * <bean id="customClasses" 28 * class="org.openehealth.ipf.modules.hl7.config.CustomModelClasses"> 29 * <property name="modelClasses"> 30 * <map> 31 * <entry key="2.5"> 32 * <list> 33 * <value>org.openehealth.ipf.modules.hl7.parser.test.hl7v2.def.v25</value> 34 * </list> 35 * </entry> 36 * </map> 37 * </property> 38 * </bean></pre> 39 * 40 * @author Boris Stanojevic 41 */ 42 public class CustomModelClasses { 43 44 private Map<String, String[]> modelClasses; 45 46 public Map<String, String[]> getModelClasses() { 47 return modelClasses; 48 } 49 50 public void setModelClasses(Map<String, String[]> modelClasses) { 51 this.modelClasses = modelClasses; 52 } 53 }