30 import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl;
31 import com.sun.org.apache.xerces.internal.util.DOMUtil;
32 import com.sun.org.apache.xerces.internal.util.XMLSymbols;
33 import com.sun.org.apache.xerces.internal.xni.QName;
34 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
35 import org.w3c.dom.Element;
36
37 /**
38 * The model group schema component traverser.
39 *
40 * <group
41 * name = NCName>
42 * Content: (annotation?, (all | choice | sequence))
43 * </group>
44 *
45 * @xerces.internal
46 *
47 * @author Rahul Srivastava, Sun Microsystems Inc.
48 * @author Elena Litani, IBM
49 * @author Lisa Martin, IBM
50 * @version $Id: XSDGroupTraverser.java,v 1.7 2010-11-01 04:40:02 joehw Exp $
51 */
52 class XSDGroupTraverser extends XSDAbstractParticleTraverser {
53
54 XSDGroupTraverser (XSDHandler handler,
55 XSAttributeChecker gAttrCheck) {
56
57 super(handler, gAttrCheck);
58 }
59
60 XSParticleDecl traverseLocal(Element elmNode,
61 XSDocumentInfo schemaDoc,
62 SchemaGrammar grammar) {
63
64 // General Attribute Checking for elmNode declared locally
65 Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false,
66 schemaDoc);
67 QName refAttr = (QName) attrValues[XSAttributeChecker.ATTIDX_REF];
68 XInt minAttr = (XInt) attrValues[XSAttributeChecker.ATTIDX_MINOCCURS];
69 XInt maxAttr = (XInt) attrValues[XSAttributeChecker.ATTIDX_MAXOCCURS];
70
|
30 import com.sun.org.apache.xerces.internal.impl.xs.util.XSObjectListImpl;
31 import com.sun.org.apache.xerces.internal.util.DOMUtil;
32 import com.sun.org.apache.xerces.internal.util.XMLSymbols;
33 import com.sun.org.apache.xerces.internal.xni.QName;
34 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
35 import org.w3c.dom.Element;
36
37 /**
38 * The model group schema component traverser.
39 *
40 * <group
41 * name = NCName>
42 * Content: (annotation?, (all | choice | sequence))
43 * </group>
44 *
45 * @xerces.internal
46 *
47 * @author Rahul Srivastava, Sun Microsystems Inc.
48 * @author Elena Litani, IBM
49 * @author Lisa Martin, IBM
50 */
51 class XSDGroupTraverser extends XSDAbstractParticleTraverser {
52
53 XSDGroupTraverser (XSDHandler handler,
54 XSAttributeChecker gAttrCheck) {
55
56 super(handler, gAttrCheck);
57 }
58
59 XSParticleDecl traverseLocal(Element elmNode,
60 XSDocumentInfo schemaDoc,
61 SchemaGrammar grammar) {
62
63 // General Attribute Checking for elmNode declared locally
64 Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false,
65 schemaDoc);
66 QName refAttr = (QName) attrValues[XSAttributeChecker.ATTIDX_REF];
67 XInt minAttr = (XInt) attrValues[XSAttributeChecker.ATTIDX_MINOCCURS];
68 XInt maxAttr = (XInt) attrValues[XSAttributeChecker.ATTIDX_MAXOCCURS];
69
|