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.xni;
23
24 import java.util.Enumeration;
25
26 /**
27 * Represents an interface to query namespace information.
28 * <p>
29 * The prefix and namespace must be identical references for equal strings, thus
30 * each string should be internalized (@see String.intern())
31 * or added to the <code>SymbolTable</code>
32 *
33 * @see <a href="../../../../../xerces2/com/sun/org/apache/xerces/internal/util/SymbolTable.html">
34 * com.sun.org.apache.xerces.internal.util.SymbolTable</a>
35 *
36 * @author Andy Clark, IBM
37 *
38 */
39 public interface NamespaceContext {
40
41 //
42 // Constants
43 //
44
45 /**
46 * The XML Namespace ("http://www.w3.org/XML/1998/namespace"). This is
47 * the Namespace URI that is automatically mapped to the "xml" prefix.
48 */
49 public final static String XML_URI = "http://www.w3.org/XML/1998/namespace".intern();
50
51 /**
52 * XML Information Set REC
53 * all namespace attributes (including those named xmlns,
54 * whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/
55 */
56 public final static String XMLNS_URI = "http://www.w3.org/2000/xmlns/".intern();
57
|
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.xni;
22
23 import java.util.Enumeration;
24
25 /**
26 * Represents an interface to query namespace information.
27 * <p>
28 * The prefix and namespace must be identical references for equal strings, thus
29 * each string should be internalized (@see String.intern())
30 * or added to the <code>SymbolTable</code>
31 *
32 * @see <a href="../../../../../xerces2/com/sun/org/apache/xerces/internal/util/SymbolTable.html">
33 * com.sun.org.apache.xerces.internal.util.SymbolTable</a>
34 *
35 * @author Andy Clark, IBM
36 *
37 * @LastModified: Oct 2017
38 */
39 public interface NamespaceContext {
40
41 //
42 // Constants
43 //
44
45 /**
46 * The XML Namespace ("http://www.w3.org/XML/1998/namespace"). This is
47 * the Namespace URI that is automatically mapped to the "xml" prefix.
48 */
49 public final static String XML_URI = "http://www.w3.org/XML/1998/namespace".intern();
50
51 /**
52 * XML Information Set REC
53 * all namespace attributes (including those named xmlns,
54 * whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/
55 */
56 public final static String XMLNS_URI = "http://www.w3.org/2000/xmlns/".intern();
57
|