View Javadoc
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   *  &lt;bean id="customClasses" 
28   *    class="org.openehealth.ipf.modules.hl7.config.CustomModelClasses"&gt;
29   *    &lt;property name="modelClasses"&gt;
30   *      &lt;map&gt;
31   *        &lt;entry key="2.5"&gt;
32   *          &lt;list&gt;
33   *            &lt;value&gt;org.openehealth.ipf.modules.hl7.parser.test.hl7v2.def.v25&lt;/value&gt;
34   *          &lt;/list&gt;  
35   *        &lt;/entry&gt;
36   *      &lt;/map&gt;
37   *    &lt;/property&gt;
38   *  &lt;/bean&gt;</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  }