1 22 23 package org.xquark.schema; 24 25 39 public class ModelGroup extends java.util.ArrayList implements SchemaVisitable { 40 private static final String RCSRevision = "$Revision: 1.1 $"; 41 private static final String RCSName = "$Name: $"; 42 43 public static final int SEQUENCE = 0; 44 public static final int CHOICE = 1; 45 public static final int ALL = 2; 46 47 private int compositor; 48 49 55 ModelGroup() { 56 this(SEQUENCE); 57 } 58 59 64 ModelGroup(int comp) { 65 this.compositor = comp; 66 } 67 68 public void accept(SchemaVisitor visitor) throws SchemaException { 69 visitor.visit(this); 70 } 71 72 77 public int getCompositor() { 78 return compositor; 79 } 80 } 81 | Popular Tags |