28 import com.sun.org.apache.xerces.internal.util.DOMUtil;
29 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
30 import org.w3c.dom.Element;
31
32 /**
33 * The notation declaration schema component traverser.
34 *
35 * <notation
36 * id = ID
37 * name = NCName
38 * public = anyURI
39 * system = anyURI
40 * {any attributes with non-schema namespace . . .}>
41 * Content: (annotation?)
42 * </notation>
43 *
44 * @xerces.internal
45 *
46 * @author Rahul Srivastava, Sun Microsystems Inc.
47 * @author Elena Litani, IBM
48 * @version $Id: XSDNotationTraverser.java,v 1.7 2010-11-01 04:40:02 joehw Exp $
49 */
50 class XSDNotationTraverser extends XSDAbstractTraverser {
51
52 XSDNotationTraverser (XSDHandler handler,
53 XSAttributeChecker gAttrCheck) {
54 super(handler, gAttrCheck);
55 }
56
57 XSNotationDecl traverse(Element elmNode,
58 XSDocumentInfo schemaDoc,
59 SchemaGrammar grammar) {
60
61 // General Attribute Checking for elmNode
62 Object[] attrValues = fAttrChecker.checkAttributes(elmNode, true, schemaDoc);
63 //get attributes
64 String nameAttr = (String) attrValues[XSAttributeChecker.ATTIDX_NAME];
65
66 String publicAttr = (String) attrValues[XSAttributeChecker.ATTIDX_PUBLIC];
67 String systemAttr = (String) attrValues[XSAttributeChecker.ATTIDX_SYSTEM];
68 if (nameAttr == null) {
|
28 import com.sun.org.apache.xerces.internal.util.DOMUtil;
29 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
30 import org.w3c.dom.Element;
31
32 /**
33 * The notation declaration schema component traverser.
34 *
35 * <notation
36 * id = ID
37 * name = NCName
38 * public = anyURI
39 * system = anyURI
40 * {any attributes with non-schema namespace . . .}>
41 * Content: (annotation?)
42 * </notation>
43 *
44 * @xerces.internal
45 *
46 * @author Rahul Srivastava, Sun Microsystems Inc.
47 * @author Elena Litani, IBM
48 */
49 class XSDNotationTraverser extends XSDAbstractTraverser {
50
51 XSDNotationTraverser (XSDHandler handler,
52 XSAttributeChecker gAttrCheck) {
53 super(handler, gAttrCheck);
54 }
55
56 XSNotationDecl traverse(Element elmNode,
57 XSDocumentInfo schemaDoc,
58 SchemaGrammar grammar) {
59
60 // General Attribute Checking for elmNode
61 Object[] attrValues = fAttrChecker.checkAttributes(elmNode, true, schemaDoc);
62 //get attributes
63 String nameAttr = (String) attrValues[XSAttributeChecker.ATTIDX_NAME];
64
65 String publicAttr = (String) attrValues[XSAttributeChecker.ATTIDX_PUBLIC];
66 String systemAttr = (String) attrValues[XSAttributeChecker.ATTIDX_SYSTEM];
67 if (nameAttr == null) {
|