You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by el...@apache.org on 2001/08/24 14:06:40 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/impl/v2 XMLSchemaException.java XSDAbstractParticleTraverser.java XSDAbstractTraverser.java XSDAttributeGroupTraverser.java XSDAttributeTraverser.java XSDComplexTypeTraverser.java XSDElementTraverser.java XSDGroupTraverser.java XSDNotationTraverser.java XSDSimpleTypeTraverser.java XSDWildcardTraverser.java

elena       01/08/24 05:06:40

  Added:       java/src/org/apache/xerces/impl/v2 XMLSchemaException.java
                        XSDAbstractParticleTraverser.java
                        XSDAbstractTraverser.java
                        XSDAttributeGroupTraverser.java
                        XSDAttributeTraverser.java
                        XSDComplexTypeTraverser.java
                        XSDElementTraverser.java XSDGroupTraverser.java
                        XSDNotationTraverser.java
                        XSDSimpleTypeTraverser.java
                        XSDWildcardTraverser.java
  Log:
  Adding design stubs for XML Schema component traversers.
  These could be changed or modified later.
  
  Revision  Changes    Path
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XMLSchemaException.java
  
  Index: XMLSchemaException.java
  ===================================================================
  
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.xerces.impl.v2;
  
  /**
   * This exception might be thrown by any of traverser classes.
   * <strong>Note:</strong> By extending the Java
   * <code>RuntimeException</code>, schema traversers are
   * not required to catch XMLSchema exceptions but may explicitly catch
   * them, if so desired.
   * XMLSchema exceptions should be caught by XSDHandler.
   * @version $Id: XMLSchemaException.java,v 1.1 2001/08/24 12:06:39 elena Exp $
   */
  public class XMLSchemaException extends RuntimeException {
  
  
      public XMLSchemaException(String message) {
          super(message);
      } // <init>(String)
  }
  
  
  
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XSDAbstractParticleTraverser.java
  
  Index: XSDAbstractParticleTraverser.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  
  package org.apache.xerces.impl.v2;   
  
  import  org.w3c.dom.Element;
  
  abstract class XSDAbstractParticleTraverser extends XSDAbstractTraverser {
  
      /**
       *
       * Traverse the "All" declaration
       *
       * <all
       *   id = ID
       *   maxOccurs = 1 : 1
       *   minOccurs = (0 | 1) : 1>
       *   Content: (annotation? , element*)
       * </all>
       **/
      int traverseAll(Element allDecl,
                      XSDocument schemaDoc,
                      SchemaGrammar grammar) {
        return -1;
      }
  
  
  
      /**
      *
      * Traverse the Sequence declaration
      *
      * <sequence
      *   id = ID
      *   maxOccurs = string
      *   minOccurs = nonNegativeInteger>
      *   Content: (annotation? , (element | group | choice | sequence | any)*)
      * </sequence>
      *
      **/
      int traverseSequence (Element seqDecl, 
                            XSDocument schemaDoc,
                            SchemaGrammar grammar) {
          //call traverse* methods;
          return -1;
      }
  
  
  
      /**
     *
     * Traverse the Choice declaration
     *
     * <choice
     *   id = ID
     *   maxOccurs = string
     *   minOccurs = nonNegativeInteger>
     *   Content: (annotation? , (element | group | choice | sequence | any)*)
     * </choice>
     *
     **/
      int traverseChoice (Element choiceDecl,
                          XSDocument schemaDoc,
                          SchemaGrammar grammar) {
      }
  
  
  
      // Helper functions:
      // Should include modified handleOccurrences* methods.
      //
  
  }
  
  
  
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XSDAbstractTraverser.java
  
  Index: XSDAbstractTraverser.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.xerces.impl.v2;
  
  
  import org.apache.xerces.impl.XMLErrorReporter;
  import org.apache.xerces.util.SymbolTable;
  import org.w3c.dom.Element;
  import java.util.Hashtable;
  
  
  
  abstract class XSDAbstractTraverser {
  
      //Shared data
      protected XSDHandler    fSchemaHandler; 
      protected SymbolTable   fSymbolTable;
  
      //REVISIT: should we add global fSchemaGrammar field
  
      //REVISIT: should the following be protected fields?
      private GeneralAttrCheck    fGeneralAttrCheck = null;
      private XMLErrorReporter    fErrorReporter = null;
  
      XSDAbstractTraverser (XSDHandler handler, 
                            XMLErrorReporter errorReporter,
                            GeneralAttrCheck gAttrCheck) {
          fSchemaHandler = handler;
          fErrorReporter = errorReporter;
          fGeneralAttrCheck = fGeneralAttrCheck;
  
      }
  
      // REVISIT: should symbol table passed as parameter to constractor or
      // be set using the following method?
      void setSymbolTable (SymbolTable table) {
          fSymbolTable = table;
      }
  
  
      void traverseAnnotationDecl(Element annotationDecl) {
      }
  
      // REVISIT: is it how we want to handle error reporting?
      void reportGenericSchemaError (String error) {
      }
  
  
      void reportSchemaError(int major, Object args[]) {
      }
  
  
      //
      // Evaluates content of Annotation if present.
      //
      // @param: elm - top element
      // @param: content - content must be annotation? or some other simple content
      // @param: isEmpty: -- true if the content allowed is (annotation?) only
      //                     false if must have some element (with possible preceding <annotation?>)
      //
      //REVISIT: this function should be used in all traverse* methods!
      Element checkContent( Element elmNode, Element content, boolean isEmpty ) {
          return null;
      }
  
      // check the prefix of each element: must be SchemaForSchema
      // general constrain checking on attriubtes
      Hashtable generalCheck(Element elmNode, int scope) {
          return null;
      }
  
  }
  
  
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XSDAttributeGroupTraverser.java
  
  Index: XSDAttributeGroupTraverser.java
  ===================================================================
  
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.xerces.impl.v2;
  
  import  org.apache.xerces.impl.XMLErrorReporter;
  import  org.w3c.dom.Element;
  
  /**
   * The attribute group definition schema component traverser.
   * 
   * <attributeGroup 
   *   id = ID 
   *   name = NCName 
   *   ref = QName 
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?, ((attribute | attributeGroup)*, anyAttribute?))
   * </attributeGroup>
   * @version $Id: XSDAttributeGroupTraverser.java,v 1.1 2001/08/24 12:06:40 elena Exp $
   */
  class  XSDAttributeGroupTraverser extends XSDAbstractTraverser{
  
      XSDAttributeGroupTraverser (XSDHandler handler,
                                  XMLErrorReporter errorReporter,
                                  GeneralAttrCheck gAttrCheck) {
  
          super(handler, errorReporter, gAttrCheck);
      }
  
      //REVISIT: what should we return?  
      // should we store attribute group in the grammar?
      int traverse(Element elmNode, 
                   XSDocument schemaDoc,                           
                   ComplexTypeInfo typeInfo,
                   Vector anyAttDecls) throws Exception {
  
          return -1;
      }
  
  
  
  }
  
  
  
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XSDAttributeTraverser.java
  
  Index: XSDAttributeTraverser.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  
  package org.apache.xerces.impl.v2;
  
  import  org.apache.xerces.impl.XMLErrorReporter;
  import  org.w3c.dom.Element;
  import java.util.Hashtable;
  
  
  /**
   * The attribute declaration schema component traverser.
   * 
   * <attribute 
   *   default = string 
   *   fixed = string 
   *   form = (qualified | unqualified)
   *   id = ID 
   *   name = NCName 
   *   ref = QName 
   *   type = QName 
   *   use = (optional | prohibited | required) : optional
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?, (simpleType?))
   * </attribute>
   * 
   * @version $Id: XSDAttributeTraverser.java,v 1.1 2001/08/24 12:06:40 elena Exp $
   */
  class  XSDAttributeTraverser extends XSDAbstractTraverser {
  
  
  
      public XSDAttributeTraverser (XSHandler handler, 
                                    XMLErrorReporter errorReporter,
                                    GeneralAttrCheck gAttrCheck) {
          super(handler, errorReporter, gAttrCheck);
      }
  
      //REVISIT: should we pass typeInfo, referredTo?
      protected int traverse(Element elmNode, 
                             XSDocument schemaDoc,
                             SchemaGrammar grammar,
                             ComplexTypeInfo typeInfo,
                             boolean referredTo) {
  
          return -1;
      }
  
      protected int traverseGlobal(Element elmNode, 
                                   XSDocument schemaDoc,
                                   SchemaGrammar grammar,
                                   ComplexTypeInfo typeInfo,
                                   boolean referredTo) {
  
          return -1;
      }
  
  
  }
  
  
  
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XSDComplexTypeTraverser.java
  
  Index: XSDComplexTypeTraverser.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.xerces.impl.v2;
  
  
  import  org.apache.xerces.impl.XMLErrorReporter;
  import org.apache.xerces.xni.QName;
  import  org.w3c.dom.Element;
  import java.util.Hashtable;
  import java.util.Stack;
  
  
  /**
   * A complex type definition schema component traverser.
   * 
   * <complexType 
   *   abstract = boolean : false
   *   block = (#all | List of (extension | restriction)) 
   *   final = (#all | List of (extension | restriction)) 
   *   id = ID 
   *   mixed = boolean : false
   *   name = NCName 
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?, (simpleContent | complexContent | ((group | all | choice | sequence)?, ((attribute | attributeGroup)*, anyAttribute?))))
   * </complexType>
   * @version $Id: XSDComplexTypeTraverser.java,v 1.1 2001/08/24 12:06:40 elena Exp $
   */
  class  XSDComplexTypeTraverser extends XSDAbstractParticleTraverser {
  
  
      private Stack fCurrentGroupNameStack;
  
  
  
      XSDComplexTypeTraverser (XSDHandler handler, 
                               XMLErrorReporter errorReporter,
                               GeneralAttrCheck gAttrCheck) {
          super(handler, errorReporter, gAttrCheck);
      }
  
      int traverse(Element elmNode, 
                   XSDocument schemaDoc, 
                   SchemaGrammar grammar,
                   Stack currentGroupNameStack) {
  
          return -1;   
      }
  
      int traverseGlobal (Element elmNode, 
                          XSDocument schemaDoc, 
                          SchemaGrammar grammar,
                          Stack currentGroupNameStack){
  
          return -1;  
      }
  
  
      private int traverseComplexTypeDecl( Element complexTypeDecl, boolean forwardRef) {
  
          return -1;
      }
  
      private void processComplexContent(int typeNameIndex,
                                         Element complexContentChild, ComplexTypeInfo typeInfo, QName baseName,
                                         boolean isMixed) throws Exception {
  
      }
      private void traverseSimpleContentDecl(int typeNameIndex,
                                             Element simpleContentDecl, ComplexTypeInfo typeInfo) {
      }
  
      private void traverseComplexContentDecl(int typeNameIndex,
                                              Element complexContentDecl, ComplexTypeInfo typeInfo,
                                              boolean mixedOnComplexTypeDecl){
      }
      // HELP FUNCTIONS:
      //
      // 1. processAttributes
      // 2. processBasetTypeInfo
      // 3. AWildCardIntersection
      // 4. parseBlockSet - should be here or in SchemaHandler??
      // 5. parseFinalSet - also used by traverseSimpleType, thus should be in SchemaHandler
      // 6. handleComplexTypeError
      // and more...
  
  
  }
  
  
  
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XSDElementTraverser.java
  
  Index: XSDElementTraverser.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.xerces.impl.v2;
  
  import  org.apache.xerces.impl.XMLErrorReporter;
  import  org.w3c.dom.Element;
  import java.util.Hashtable;
  
  
  /**
   * The element declaration schema component traverser.
   * <element 
   *   abstract = boolean : false
   *   block = (#all | List of (extension | restriction | substitution)) 
   *   default = string 
   *   final = (#all | List of (extension | restriction)) 
   *   fixed = string 
   *   form = (qualified | unqualified)
   *   id = ID 
   *   maxOccurs = (nonNegativeInteger | unbounded)  : 1
   *   minOccurs = nonNegativeInteger : 1
   *   name = NCName 
   *   nillable = boolean : false
   *   ref = QName 
   *   substitutionGroup = QName 
   *   type = QName 
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?, ((simpleType | complexType)?, (unique | key | keyref)*))
   * </element>
   * 
   * @version $Id: XSDElementTraverser.java,v 1.1 2001/08/24 12:06:40 elena Exp $
   */
  class XSDElementTraverser extends XSDAbstractTraverser{
      
      //
      // REVISIT: we should be able to acces 
      // SubstitutionGroupHandler
      //
  
      XSDElementTraverser (XSDHandler handler,
                           XMLErrorReporter errorReporter,
                           GeneralAttrCheck gAttrCheck) {
          super(handler, errorReporter, gAttrCheck);
      }
  
  
      int traverse(Element elmDecl, 
                   XSDocument schemaDoc, 
                   XSGrammar grammar) {
          return -1;
      }
  
      int traverseGlobal(Element elmDecl, 
                         XSDocument schemaDoc, 
                         XSGrammar grammar) {
          return -1;
      }
  
  
  
      //private help functions
  
  }
  
  
  
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XSDGroupTraverser.java
  
  Index: XSDGroupTraverser.java
  ===================================================================
  
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.xerces.impl.v2;
  
  import  org.w3c.dom.Element;
  
  /**
   * The model group schema component traverser.
   * 
   * <group 
   *   name = NCName>
   *   Content: (annotation?, (all | choice | sequence))
   * </group>
   * @version $Id: XSDGroupTraverser.java,v 1.1 2001/08/24 12:06:40 elena Exp $
   */
  class  XSDGroupTraverser extends XSDAbstractParticleTraverser{
       
      private Stack fCurrentGroupNameStack;
      private Hashtable fGroupNameRegistry;
  
      XSDGroupTraverser (XSDHandler handler,
                         XMLErrorReporter errorReporter,
                         GeneralAttrCheck gAttrCheck) {
  
          super(handler, errorReporter, gAttrCheck);
      }
  
      //
      // REVISIT: 
      // what should we return?
      // should we store group decls in the grammar?
      int traverse(Element elmNode, 
                   XSDocument schemaDoc) {
  
          return -1;
      }
  
  }
  
  
  
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XSDNotationTraverser.java
  
  Index: XSDNotationTraverser.java
  ===================================================================
  
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.xerces.impl.v2;
  
  import  org.w3c.dom.Element;
  
  /**
   * The notation declaration schema component traverser.
   * 
   * <notation 
   *   id = ID 
   *   name = NCName 
   *   public = anyURI 
   *   system = anyURI 
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?)
   * </notation>
   * 
   * @version $Id: XSDNotationTraverser.java,v 1.1 2001/08/24 12:06:40 elena Exp $
   */
  class  XSDNotationTraverser extends XSDAbstractTraverser{
  
  
      XSDNotationTraverser (XSHandler handler, 
                            XMLErrorReporter errorReporter,
                            GeneralAttrCheck gAttrCheck) {
          super(handler, errorReporter, gAttrCheck);
      }
  
      //REVISIT: what should be the return type?
      String traverse(Element elmNode,  
                      XSDocument schemaDoc,
                      SchemaGrammar grammar) {
      }
  
  
  }
  
  
  
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XSDSimpleTypeTraverser.java
  
  Index: XSDSimpleTypeTraverser.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  
  package org.apache.xerces.impl.v2;
  
  import  org.w3c.dom.Element;
  
  /**
   * The simple type definition schema component traverser.
   * 
   * <simpleType 
   *   final = (#all | (list | union | restriction)) 
   *   id = ID 
   *   name = NCName 
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?, (restriction | list | union))
   * </simpleType>
   * 
   * <restriction 
   *   base = QName 
   *   id = ID 
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?, (simpleType?, (minExclusive | minInclusive | maxExclusive | maxInclusive | totalDigits | fractionDigits | length | minLength | maxLength | enumeration | whiteSpace | pattern)*))
   * </restriction>
   * 
   * <list 
   *   id = ID 
   *   itemType = QName 
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?, (simpleType?))
   * </list>
   * 
   * <union 
   *   id = ID 
   *   memberTypes = List of QName 
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?, (simpleType*))
   * </union>
   * @version $Id: XSDSimpleTypeTraverser.java,v 1.1 2001/08/24 12:06:40 elena Exp $
   */
  class XSDSimpleTypeTraverser extends XSDAbstractTraverser{
  
      // need access to notation registry.
  
      // circular definitions..
      private Stack fSimpleTypeNameStack;
  
      XSDSimpleTypeTraverser (XSHandler handler, 
                              XMLErrorReporter errorReporter,
                              GeneralAttrCheck gAttrCheck) {
          super(handler, errorReporter, gAttrCheck);
      }
  
      //return success or failure?
      int traverse(Element elmNode, 
                   XSDocument schemaDoc,
                   SchemaGrammar grammar) {
  
      }
  
  
      private void reportCosListOfAtomic() {
  
      }
      private void resetSimpleTypeNameStack() {
      }
  
  
  }
  
  
  
  1.1                  xml-xerces/java/src/org/apache/xerces/impl/v2/XSDWildcardTraverser.java
  
  Index: XSDWildcardTraverser.java
  ===================================================================
  /*
   * The Apache Software License, Version 1.1
   *
   *
   * Copyright (c) 2001 The Apache Software Foundation.  All rights 
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *    if any, must include the following acknowledgment:  
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowledgment may appear in the software itself,
   *    if and wherever such third-party acknowledgments normally appear.
   *
   * 4. The names "Xerces" and "Apache Software Foundation" must
   *    not be used to endorse or promote products derived from this
   *    software without prior written permission. For written 
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache",
   *    nor may "Apache" appear in their name, without prior written
   *    permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation and was
   * originally based on software copyright (c) 2001, International
   * Business Machines, Inc., http://www.apache.org.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   */
  package org.apache.xerces.impl.v2;
  
  
  import  org.apache.xerces.impl.XMLErrorReporter;
  import org.apache.xerces.xni.QName;
  import  org.w3c.dom.Element;
  import java.util.Hashtable;
  import java.util.Stack;
  
  
  /**
   * The wildcard schema component traverser.
   * 
   * <any
   *   id = ID
   *   maxOccurs = (nonNegativeInteger | unbounded)  : 1
   *   minOccurs = nonNegativeInteger : 1
   *   namespace = ((##any | ##other) | List of (anyURI | (##targetNamespace | ##local)) )  : ##any
   *   processContents = (lax | skip | strict) : strict
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?)
   * </any>
   * 
   * 
   * <anyAttribute 
   *   id = ID 
   *   namespace = ((##any | ##other) | List of (anyURI | (##targetNamespace | ##local)) )  : ##any
   *   processContents = (lax | skip | strict) : strict
   *   {any attributes with non-schema namespace . . .}>
   *   Content: (annotation?)
   * </anyAttribute>
   * @version $Id: XSDWildcardTraverser.java,v 1.1 2001/08/24 12:06:40 elena Exp $
   */
  class  XSDWildcardTraverser extends XSDAbstractTraverser {
  
  
  
      XSDWildcardTraverser (XSDHandler handler, 
                            XMLErrorReporter errorReporter,
                            GeneralAttrCheck gAttrCheck) {
          super(handler, errorReporter, gAttrCheck);
      }
  
      int traverseAny(Element elmNode, 
                      XSDocument schemaDoc,
                      SchemaGrammar grammar) {
  
          return -1;   
      }
  
      int traverseAnyAttribute(Element elmNode, 
                               XSDocument schemaDoc,
                               SchemaGrammar grammar) {
  
          return -1;   
      }
  
  
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org