001package ca.uhn.hl7v2.model; 002 003import ca.uhn.hl7v2.parser.ModelClassFactory; 004 005/** 006 * An undefined segment group. This is for storing undefined groups 007 * that appear in XML-encoded messages. Note that if an undefined group appears 008 * in an ER7-encoded message, the group structure won't be clear and we'll just assume 009 * it's a flat list of segments. 010 * @author Bryan Tripp 011 */ 012@SuppressWarnings("serial") 013public class GenericGroup extends AbstractGroup { 014 015 private String name; 016 017 /** 018 * Creates a generic group 019 * 020 * @param parent parent group 021 * @param name name of the group 022 * @param factory ModelClassFactory to be used 023 */ 024 public GenericGroup(Group parent, String name, ModelClassFactory factory) { 025 super(parent, factory); 026 this.name = name; 027 } 028 029 /** 030 * Returns the name specified at construction time. 031 * @see Structure#getName() 032 */ 033 public String getName() { 034 return this.name; 035 } 036 037}