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
7 * or more contributor license agreements. See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership. The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 */
22
23 package com.sun.org.apache.xml.internal.serializer.dom3;
24
25 import java.util.Enumeration;
26 import java.util.NoSuchElementException;
27
28 /**
29 * Namespace support for XML document handlers. This class doesn't
30 * perform any error checking and assumes that all strings passed
31 * as arguments to methods are unique symbols. The SymbolTable class
32 * can be used for this purpose.
33 *
34 * Derived from org.apache.xerces.util.NamespaceSupport
35 *
36 * @author Andy Clark, IBM
37 *
38 * @version $Id: Exp $
39 */
40 public class NamespaceSupport {
41
42 static final String PREFIX_XML = "xml".intern();
43
44 static final String PREFIX_XMLNS = "xmlns".intern();
45
46 /**
47 * The XML Namespace ("http://www.w3.org/XML/1998/namespace"). This is
48 * the Namespace URI that is automatically mapped to the "xml" prefix.
49 */
50 public final static String XML_URI = "http://www.w3.org/XML/1998/namespace".intern();
51
52 /**
53 * XML Information Set REC
54 * all namespace attributes (including those named xmlns,
55 * whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/
56 */
57 public final static String XMLNS_URI = "http://www.w3.org/2000/xmlns/".intern();
58
|
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
6 * or more contributor license agreements. See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership. The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * 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.xml.internal.serializer.dom3;
23
24 import java.util.Enumeration;
25 import java.util.NoSuchElementException;
26
27 /**
28 * Namespace support for XML document handlers. This class doesn't
29 * perform any error checking and assumes that all strings passed
30 * as arguments to methods are unique symbols. The SymbolTable class
31 * can be used for this purpose.
32 *
33 * Derived from org.apache.xerces.util.NamespaceSupport
34 *
35 * @author Andy Clark, IBM
36 *
37 * @version $Id: Exp $
38 * @LastModified: Oct 2017
39 */
40 public class NamespaceSupport {
41
42 static final String PREFIX_XML = "xml".intern();
43
44 static final String PREFIX_XMLNS = "xmlns".intern();
45
46 /**
47 * The XML Namespace ("http://www.w3.org/XML/1998/namespace"). This is
48 * the Namespace URI that is automatically mapped to the "xml" prefix.
49 */
50 public final static String XML_URI = "http://www.w3.org/XML/1998/namespace".intern();
51
52 /**
53 * XML Information Set REC
54 * all namespace attributes (including those named xmlns,
55 * whose [prefix] property has no value) have a namespace URI of http://www.w3.org/2000/xmlns/
56 */
57 public final static String XMLNS_URI = "http://www.w3.org/2000/xmlns/".intern();
58
|