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;
23
61 import java.lang.ref.SoftReference;
62 import java.util.ArrayList;
63 import java.util.List;
64 import java.util.concurrent.CopyOnWriteArrayList;
65 import org.xml.sax.SAXException;
66
67 /**
68 * This class is to hold all schema component declaration that are declared
69 * within one namespace.
70 *
71 * The Grammar class this class extends contains what little
72 * commonality there is between XML Schema and DTD grammars. It's
73 * useful to distinguish grammar objects from other kinds of object
74 * when they exist in pools or caches.
75 *
76 * @xerces.internal
77 *
78 * @author Sandy Gao, IBM
79 * @author Elena Litani, IBM
80 *
81 */
82
83 public class SchemaGrammar implements XSGrammar, XSNamespaceItem {
84
85 // the target namespace of grammar
86 String fTargetNamespace;
87
88 // global decls: map from decl name to decl object
89 SymbolHash fGlobalAttrDecls;
90 SymbolHash fGlobalAttrGrpDecls;
91 SymbolHash fGlobalElemDecls;
92 SymbolHash fGlobalGroupDecls;
93 SymbolHash fGlobalNotationDecls;
94 SymbolHash fGlobalIDConstraintDecls;
95 SymbolHash fGlobalTypeDecls;
96
97 // extended global decls: map from schema location + decl name to decl object
98 // key is location,name
99 SymbolHash fGlobalAttrDeclsExt;
100 SymbolHash fGlobalAttrGrpDeclsExt;
|
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;
22
60 import java.lang.ref.SoftReference;
61 import java.util.ArrayList;
62 import java.util.List;
63 import java.util.concurrent.CopyOnWriteArrayList;
64 import org.xml.sax.SAXException;
65
66 /**
67 * This class is to hold all schema component declaration that are declared
68 * within one namespace.
69 *
70 * The Grammar class this class extends contains what little
71 * commonality there is between XML Schema and DTD grammars. It's
72 * useful to distinguish grammar objects from other kinds of object
73 * when they exist in pools or caches.
74 *
75 * @xerces.internal
76 *
77 * @author Sandy Gao, IBM
78 * @author Elena Litani, IBM
79 *
80 * @LastModified: Oct 2017
81 */
82
83 public class SchemaGrammar implements XSGrammar, XSNamespaceItem {
84
85 // the target namespace of grammar
86 String fTargetNamespace;
87
88 // global decls: map from decl name to decl object
89 SymbolHash fGlobalAttrDecls;
90 SymbolHash fGlobalAttrGrpDecls;
91 SymbolHash fGlobalElemDecls;
92 SymbolHash fGlobalGroupDecls;
93 SymbolHash fGlobalNotationDecls;
94 SymbolHash fGlobalIDConstraintDecls;
95 SymbolHash fGlobalTypeDecls;
96
97 // extended global decls: map from schema location + decl name to decl object
98 // key is location,name
99 SymbolHash fGlobalAttrDeclsExt;
100 SymbolHash fGlobalAttrGrpDeclsExt;
|