001 package ca.uhn.hl7v2.model;
002
003 import 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")
013 public class GenericGroup extends AbstractGroup {
014
015 private String name;
016
017 /** Creates a new instance of GenericGroup */
018 public GenericGroup(Group parent, String name, ModelClassFactory factory) {
019 super(parent, factory);
020 this.name = name;
021 }
022
023 /**
024 * Returns the name specified at construction time.
025 * @see Structure#getName()
026 */
027 public String getName() {
028 return this.name;
029 }
030
031 }