1 17 package org.apache.ws.jaxme.xs; 18 19 import org.xml.sax.Locator ; 20 21 22 26 public interface XSParticle { 27 public class Type { 28 private final String name; 29 public Type(String pName) { 30 name = pName; 31 } 32 public String toString() { return name; } 33 public boolean equals(Object o) { 34 return o != null && o instanceof Type && ((Type) o).name.equals(name); 35 } 36 public int hashCode() { return name.hashCode(); } 37 } 38 39 41 public Type GROUP = new Type("group"); 42 43 45 public Type WILDCARD = new Type("wildcard"); 46 47 49 public Type ELEMENT = new Type("element"); 50 51 53 public Type getType(); 54 55 59 public boolean isGroup(); 60 61 64 public XSGroup getGroup(); 65 66 70 public boolean isWildcard(); 71 72 75 public XSAny getWildcard(); 76 77 81 public boolean isElement(); 82 83 86 public XSElement getElement(); 87 88 90 public int getMinOccurs(); 91 92 94 public int getMaxOccurs(); 95 96 98 public Locator getLocator(); 99 } 100 | Popular Tags |