41 import com.sun.org.apache.xerces.internal.util.DOMUtil;
42 import com.sun.org.apache.xerces.internal.util.NamespaceSupport;
43 import com.sun.org.apache.xerces.internal.util.SymbolTable;
44 import com.sun.org.apache.xerces.internal.xni.QName;
45 import com.sun.org.apache.xerces.internal.xs.XSAttributeUse;
46 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
47 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
48 import org.w3c.dom.Element;
49
50 /**
51 * Class <code>XSDAbstractTraverser</code> serves as the base class for all
52 * other <code>XSD???Traverser</code>s. It holds the common data and provide
53 * a unified way to initialize these data.
54 *
55 * @xerces.internal
56 *
57 * @author Elena Litani, IBM
58 * @author Rahul Srivastava, Sun Microsystems Inc.
59 * @author Neeraj Bajaj, Sun Microsystems Inc.
60 *
61 * @version $Id: XSDAbstractTraverser.java,v 1.8 2010-11-01 04:40:02 joehw Exp $
62 */
63 abstract class XSDAbstractTraverser {
64
65 protected static final String NO_NAME = "(no name)";
66
67 // Flags for checkOccurrences to indicate any special
68 // restrictions on minOccurs and maxOccurs relating to "all".
69 // NOT_ALL_CONTEXT - not processing an <all>
70 // PROCESSING_ALL_EL - processing an <element> in an <all>
71 // GROUP_REF_WITH_ALL - processing <group> reference that contained <all>
72 // CHILD_OF_GROUP - processing a child of a model group definition
73 // PROCESSING_ALL_GP - processing an <all> group itself
74
75 protected static final int NOT_ALL_CONTEXT = 0;
76 protected static final int PROCESSING_ALL_EL = 1;
77 protected static final int GROUP_REF_WITH_ALL = 2;
78 protected static final int CHILD_OF_GROUP = 4;
79 protected static final int PROCESSING_ALL_GP = 8;
80
81 //Shared data
|
41 import com.sun.org.apache.xerces.internal.util.DOMUtil;
42 import com.sun.org.apache.xerces.internal.util.NamespaceSupport;
43 import com.sun.org.apache.xerces.internal.util.SymbolTable;
44 import com.sun.org.apache.xerces.internal.xni.QName;
45 import com.sun.org.apache.xerces.internal.xs.XSAttributeUse;
46 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
47 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
48 import org.w3c.dom.Element;
49
50 /**
51 * Class <code>XSDAbstractTraverser</code> serves as the base class for all
52 * other <code>XSD???Traverser</code>s. It holds the common data and provide
53 * a unified way to initialize these data.
54 *
55 * @xerces.internal
56 *
57 * @author Elena Litani, IBM
58 * @author Rahul Srivastava, Sun Microsystems Inc.
59 * @author Neeraj Bajaj, Sun Microsystems Inc.
60 *
61 */
62 abstract class XSDAbstractTraverser {
63
64 protected static final String NO_NAME = "(no name)";
65
66 // Flags for checkOccurrences to indicate any special
67 // restrictions on minOccurs and maxOccurs relating to "all".
68 // NOT_ALL_CONTEXT - not processing an <all>
69 // PROCESSING_ALL_EL - processing an <element> in an <all>
70 // GROUP_REF_WITH_ALL - processing <group> reference that contained <all>
71 // CHILD_OF_GROUP - processing a child of a model group definition
72 // PROCESSING_ALL_GP - processing an <all> group itself
73
74 protected static final int NOT_ALL_CONTEXT = 0;
75 protected static final int PROCESSING_ALL_EL = 1;
76 protected static final int GROUP_REF_WITH_ALL = 2;
77 protected static final int CHILD_OF_GROUP = 4;
78 protected static final int PROCESSING_ALL_GP = 8;
79
80 //Shared data
|