1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Nov 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.dtd;
23
51 * It extends the DTD processor in order to do this; it's
52 * a separate class because DTD processors don't need to know how
53 * to talk to the outside world in their role as instance-document
54 * helpers.
55 * <p>
56 * This component requires the following features and properties. It
57 * know ho to set them if no one else does:from the
58 * <ul>
59 * <li>http://xml.org/sax/features/namespaces</li>
60 * <li>http://apache.org/xml/properties/internal/symbol-table</li>
61 * <li>http://apache.org/xml/properties/internal/error-reporter</li>
62 * <li>http://apache.org/xml/properties/internal/grammar-pool</li>
63 * <li>http://apache.org/xml/properties/internal/datatype-validator-factory</li>
64 * </ul>
65 *
66 * @xerces.internal
67 *
68 * @author Neil Graham, IBM
69 * @author Michael Glavassevich, IBM
70 *
71 */
72 public class XMLDTDLoader
73 extends XMLDTDProcessor
74 implements XMLGrammarLoader {
75
76 //
77 // Constants
78 //
79
80 // feature identifiers
81
82 /** Feature identifier: standard uri conformant feature. */
83 protected static final String STANDARD_URI_CONFORMANT_FEATURE =
84 Constants.XERCES_FEATURE_PREFIX + Constants.STANDARD_URI_CONFORMANT_FEATURE;
85
86 /** Feature identifier: balance syntax trees. */
87 protected static final String BALANCE_SYNTAX_TREES =
88 Constants.XERCES_FEATURE_PREFIX + Constants.BALANCE_SYNTAX_TREES;
89
90 // recognized features:
|
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.dtd;
22
50 * It extends the DTD processor in order to do this; it's
51 * a separate class because DTD processors don't need to know how
52 * to talk to the outside world in their role as instance-document
53 * helpers.
54 * <p>
55 * This component requires the following features and properties. It
56 * know ho to set them if no one else does:from the
57 * <ul>
58 * <li>http://xml.org/sax/features/namespaces</li>
59 * <li>http://apache.org/xml/properties/internal/symbol-table</li>
60 * <li>http://apache.org/xml/properties/internal/error-reporter</li>
61 * <li>http://apache.org/xml/properties/internal/grammar-pool</li>
62 * <li>http://apache.org/xml/properties/internal/datatype-validator-factory</li>
63 * </ul>
64 *
65 * @xerces.internal
66 *
67 * @author Neil Graham, IBM
68 * @author Michael Glavassevich, IBM
69 *
70 * @LastModified: Nov 2017
71 */
72 public class XMLDTDLoader
73 extends XMLDTDProcessor
74 implements XMLGrammarLoader {
75
76 //
77 // Constants
78 //
79
80 // feature identifiers
81
82 /** Feature identifier: standard uri conformant feature. */
83 protected static final String STANDARD_URI_CONFORMANT_FEATURE =
84 Constants.XERCES_FEATURE_PREFIX + Constants.STANDARD_URI_CONFORMANT_FEATURE;
85
86 /** Feature identifier: balance syntax trees. */
87 protected static final String BALANCE_SYNTAX_TREES =
88 Constants.XERCES_FEATURE_PREFIX + Constants.BALANCE_SYNTAX_TREES;
89
90 // recognized features:
|