Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
GenericGroup |
|
| 1.0;1 |
1 | package ca.uhn.hl7v2.model; | |
2 | ||
3 | import ca.uhn.hl7v2.parser.ModelClassFactory; | |
4 | ||
5 | /** | |
6 | * An undefined segment group. This is for storing undefined groups | |
7 | * that appear in XML-encoded messages. Note that if an undefined group appears | |
8 | * in an ER7-encoded message, the group structure won't be clear and we'll just assume | |
9 | * it's a flat list of segments. | |
10 | * @author Bryan Tripp | |
11 | */ | |
12 | @SuppressWarnings("serial") | |
13 | public class GenericGroup extends AbstractGroup { | |
14 | ||
15 | private String name; | |
16 | ||
17 | /** | |
18 | * Creates a generic group | |
19 | * | |
20 | * @param parent parent group | |
21 | * @param name name of the group | |
22 | * @param factory ModelClassFactory to be used | |
23 | */ | |
24 | public GenericGroup(Group parent, String name, ModelClassFactory factory) { | |
25 | 0 | super(parent, factory); |
26 | 0 | this.name = name; |
27 | 0 | } |
28 | ||
29 | /** | |
30 | * Returns the name specified at construction time. | |
31 | * @see Structure#getName() | |
32 | */ | |
33 | public String getName() { | |
34 | 0 | return this.name; |
35 | } | |
36 | ||
37 | } |