< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/opti/SchemaDOM.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.opti;
  23 
  24 import com.sun.org.apache.xerces.internal.util.XMLSymbols;
  25 import com.sun.org.apache.xerces.internal.xni.NamespaceContext;
  26 import com.sun.org.apache.xerces.internal.xni.QName;
  27 import com.sun.org.apache.xerces.internal.xni.XMLAttributes;
  28 import com.sun.org.apache.xerces.internal.xni.XMLString;
  29 import java.util.ArrayList;
  30 import java.util.Enumeration;
  31 import java.util.List;
  32 import org.w3c.dom.Attr;
  33 import org.w3c.dom.DOMImplementation;
  34 import org.w3c.dom.Element;
  35 import org.w3c.dom.NamedNodeMap;
  36 import org.w3c.dom.Node;
  37 
  38 /**
  39  * @xerces.internal
  40  *
  41  * @author Rahul Srivastava, Sun Microsystems Inc.
  42  * @author Sandy Gao, IBM
  43  *

  44  */
  45 public class SchemaDOM extends DefaultDocument {
  46 
  47     static final int relationsRowResizeFactor = 15;
  48     static final int relationsColResizeFactor = 10;
  49 
  50     NodeImpl[][] relations;
  51     // parent must be an element in this scheme
  52     ElementImpl parent;
  53     int currLoc;
  54     int nextFreeLoc;
  55     boolean hidden;
  56     boolean inCDATA;
  57 
  58     // for annotation support:
  59     private StringBuffer fAnnotationBuffer = null;
  60 
  61     public SchemaDOM() {
  62         reset();
  63     }


   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.opti;
  22 
  23 import com.sun.org.apache.xerces.internal.util.XMLSymbols;
  24 import com.sun.org.apache.xerces.internal.xni.NamespaceContext;
  25 import com.sun.org.apache.xerces.internal.xni.QName;
  26 import com.sun.org.apache.xerces.internal.xni.XMLAttributes;
  27 import com.sun.org.apache.xerces.internal.xni.XMLString;
  28 import java.util.ArrayList;
  29 import java.util.Enumeration;
  30 import java.util.List;
  31 import org.w3c.dom.Attr;
  32 import org.w3c.dom.DOMImplementation;
  33 import org.w3c.dom.Element;
  34 import org.w3c.dom.NamedNodeMap;
  35 import org.w3c.dom.Node;
  36 
  37 /**
  38  * @xerces.internal
  39  *
  40  * @author Rahul Srivastava, Sun Microsystems Inc.
  41  * @author Sandy Gao, IBM
  42  *
  43  * @LastModified: Oct 2017
  44  */
  45 public class SchemaDOM extends DefaultDocument {
  46 
  47     static final int relationsRowResizeFactor = 15;
  48     static final int relationsColResizeFactor = 10;
  49 
  50     NodeImpl[][] relations;
  51     // parent must be an element in this scheme
  52     ElementImpl parent;
  53     int currLoc;
  54     int nextFreeLoc;
  55     boolean hidden;
  56     boolean inCDATA;
  57 
  58     // for annotation support:
  59     private StringBuffer fAnnotationBuffer = null;
  60 
  61     public SchemaDOM() {
  62         reset();
  63     }


< prev index next >