core: import java.util.*; import java.io.*; import edu.neu.ccs.demeter.*; add: class ChoiceGroup extends ElementItem { protected NSRef prefixS; public NSRef get_prefixS() {{ return prefixS; }} public void set_prefixS(NSRef new_prefixS) {{ prefixS = new_prefixS; }} protected AttrValue_List attrs; public AttrValue_List get_attrs() {{ return attrs; }} public void set_attrs(AttrValue_List new_attrs) {{ attrs = new_attrs; }} protected Annotation annotation; public Annotation get_annotation() {{ return annotation; }} public void set_annotation(Annotation new_annotation) {{ annotation = new_annotation; }} protected ElementItem_List elementitem_list; public ElementItem_List get_elementitem_list() {{ return elementitem_list; }} public void set_elementitem_list(ElementItem_List new_elementitem_list) {{ elementitem_list = new_elementitem_list; }} protected NSRef prefixE; public NSRef get_prefixE() {{ return prefixE; }} public void set_prefixE(NSRef new_prefixE) {{ prefixE = new_prefixE; }} public constructor ChoiceGroup() {{ super(); }} public constructor ChoiceGroup(NSRef prefixS, AttrValue_List attrs, Annotation annotation, ElementItem_List elementitem_list, NSRef prefixE) {{ super(); set_prefixS(prefixS); set_attrs(attrs); set_annotation(annotation); set_elementitem_list(elementitem_list); set_prefixE(prefixE); }} public static ChoiceGroup parse(java.io.Reader in) throws ParseException {{ return new Parser(in)._ChoiceGroup(); }} public static ChoiceGroup parse(java.io.InputStream in) throws ParseException {{ return new Parser(in)._ChoiceGroup(); }} public static ChoiceGroup parse(String s) {{ try { return parse(new java.io.StringReader(s)); } catch (ParseException e) { throw new RuntimeException(e.toString()); } }} {{ void universal_trv0_bef(UniversalVisitor _v_) { super.universal_trv0_bef(_v_); ((UniversalVisitor) _v_).before(this); } }} {{ void universal_trv0_aft(UniversalVisitor _v_) { ((UniversalVisitor) _v_).after(this); super.universal_trv0_aft(_v_); } }} {{ void universal_trv0(UniversalVisitor _v_) { universal_trv0_bef(_v_); if (prefixS != null) { ((UniversalVisitor) _v_).before_prefixS(this, prefixS); prefixS.universal_trv0(_v_); ((UniversalVisitor) _v_).after_prefixS(this, prefixS); } ((UniversalVisitor) _v_).before_attrs(this, attrs); attrs.universal_trv0(_v_); ((UniversalVisitor) _v_).after_attrs(this, attrs); if (annotation != null) { ((UniversalVisitor) _v_).before_annotation(this, annotation); annotation.universal_trv0(_v_); ((UniversalVisitor) _v_).after_annotation(this, annotation); } ((UniversalVisitor) _v_).before_elementitem_list(this, elementitem_list); elementitem_list.universal_trv0(_v_); ((UniversalVisitor) _v_).after_elementitem_list(this, elementitem_list); if (prefixE != null) { ((UniversalVisitor) _v_).before_prefixE(this, prefixE); prefixE.universal_trv0(_v_); ((UniversalVisitor) _v_).after_prefixE(this, prefixE); } super.universal_trv0(_v_); universal_trv0_aft(_v_); } }} {{ void processDefinition_Schema_trv_bef(SchemaVisitor __v0) { super.processDefinition_Schema_trv_bef(__v0); ((SchemaVisitor) __v0).before(this); } }} {{ void processDefinition_Schema_trv_aft(SchemaVisitor __v0) { ((SchemaVisitor) __v0).after(this); super.processDefinition_Schema_trv_aft(__v0); } }} {{ void processDefinition_Schema_trv(SchemaVisitor __v0) { processDefinition_Schema_trv_bef(__v0); if (prefixS != null) { ((UniversalVisitor) __v0).before_prefixS(this, prefixS); prefixS.processDefinition_Schema_trv(__v0); ((UniversalVisitor) __v0).after_prefixS(this, prefixS); } ((UniversalVisitor) __v0).before_attrs(this, attrs); attrs.processDefinition_Schema_trv(__v0); ((UniversalVisitor) __v0).after_attrs(this, attrs); if (annotation != null) { ((UniversalVisitor) __v0).before_annotation(this, annotation); annotation.processDefinition_Schema_trv(__v0); ((UniversalVisitor) __v0).after_annotation(this, annotation); } ((UniversalVisitor) __v0).before_elementitem_list(this, elementitem_list); elementitem_list.processDefinition_Schema_trv(__v0); ((UniversalVisitor) __v0).after_elementitem_list(this, elementitem_list); if (prefixE != null) { ((UniversalVisitor) __v0).before_prefixE(this, prefixE); prefixE.processDefinition_Schema_trv(__v0); ((UniversalVisitor) __v0).after_prefixE(this, prefixE); } super.processDefinition_Schema_trv(__v0); processDefinition_Schema_trv_aft(__v0); } }} {{ void __trav_print_Schema_trv_bef(DisplayVisitor __v0) { super.__trav_print_Schema_trv_bef(__v0); ((DisplayVisitor) __v0).before(this); } }} {{ void __trav_print_Schema_trv_aft(DisplayVisitor __v0) { ((DisplayVisitor) __v0).after(this); super.__trav_print_Schema_trv_aft(__v0); } }} {{ void __trav_print_Schema_trv(DisplayVisitor __v0) { __trav_print_Schema_trv_bef(__v0); if (prefixS != null) { ((DisplayVisitor) __v0).before_prefixS(this, prefixS); prefixS.__trav_print_Schema_trv(__v0); ((UniversalVisitor) __v0).after_prefixS(this, prefixS); } ((DisplayVisitor) __v0).before_attrs(this, attrs); attrs.__trav_print_Schema_trv(__v0); ((UniversalVisitor) __v0).after_attrs(this, attrs); if (annotation != null) { ((DisplayVisitor) __v0).before_annotation(this, annotation); annotation.__trav_print_Schema_trv(__v0); ((UniversalVisitor) __v0).after_annotation(this, annotation); } ((DisplayVisitor) __v0).before_elementitem_list(this, elementitem_list); elementitem_list.__trav_print_Schema_trv(__v0); ((UniversalVisitor) __v0).after_elementitem_list(this, elementitem_list); if (prefixE != null) { ((DisplayVisitor) __v0).before_prefixE(this, prefixE); prefixE.__trav_print_Schema_trv(__v0); ((UniversalVisitor) __v0).after_prefixE(this, prefixE); } super.__trav_print_Schema_trv(__v0); __trav_print_Schema_trv_aft(__v0); } }} }