< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/traversers/XSDAbstractTraverser.java

Print this page


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.impl.xs.traversers;
  23 


  43 import com.sun.org.apache.xerces.internal.xni.QName;
  44 import com.sun.org.apache.xerces.internal.xs.XSAttributeUse;
  45 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
  46 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
  47 import java.util.ArrayList;
  48 import java.util.List;
  49 import java.util.Locale;
  50 import org.w3c.dom.Element;
  51 
  52 /**
  53  * Class <code>XSDAbstractTraverser</code> serves as the base class for all
  54  * other <code>XSD???Traverser</code>s. It holds the common data and provide
  55  * a unified way to initialize these data.
  56  *
  57  * @xerces.internal
  58  *
  59  * @author Elena Litani, IBM
  60  * @author Rahul Srivastava, Sun Microsystems Inc.
  61  * @author Neeraj Bajaj, Sun Microsystems Inc.
  62  *

  63  */
  64 abstract class XSDAbstractTraverser {
  65 
  66     protected static final String NO_NAME      = "(no name)";
  67 
  68     // Flags for checkOccurrences to indicate any special
  69     // restrictions on minOccurs and maxOccurs relating to "all".
  70     //    NOT_ALL_CONTEXT    - not processing an <all>
  71     //    PROCESSING_ALL_EL  - processing an <element> in an <all>
  72     //    GROUP_REF_WITH_ALL - processing <group> reference that contained <all>
  73     //    CHILD_OF_GROUP     - processing a child of a model group definition
  74     //    PROCESSING_ALL_GP  - processing an <all> group itself
  75 
  76     protected static final int NOT_ALL_CONTEXT    = 0;
  77     protected static final int PROCESSING_ALL_EL  = 1;
  78     protected static final int GROUP_REF_WITH_ALL = 2;
  79     protected static final int CHILD_OF_GROUP     = 4;
  80     protected static final int PROCESSING_ALL_GP  = 8;
  81 
  82     //Shared data


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.impl.xs.traversers;
  22 


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


< prev index next >