1 17 package org.apache.ws.jaxme.xs; 18 19 import org.xml.sax.Locator ; 20 import org.xml.sax.SAXException ; 21 22 23 29 public interface XSModelGroup { 30 public class Compositor { 31 private String name; 32 Compositor(String pName) { 33 name = pName; 34 } 35 public String toString() { return name; } 36 public boolean equals(Object o) { 37 return o != null && o instanceof Compositor && ((Compositor) o).name.equals(name); 38 } 39 public int hashCode() { return name.hashCode(); } 40 } 41 42 44 public static final Compositor SEQUENCE = new Compositor("sequence"); 45 46 48 public static final Compositor CHOICE = new Compositor("choice"); 49 50 52 public static final Compositor ALL = new Compositor("all"); 53 54 56 public Compositor getCompositor(); 57 58 62 public boolean isSequence(); 63 64 68 public boolean isChoice(); 69 70 74 public boolean isAll(); 75 76 78 public XSParticle[] getParticles(); 79 80 82 public Locator getLocator(); 83 84 86 public void validate() throws SAXException ; 87 } 88 | Popular Tags |