~ubuntu-branches/ubuntu/gutsy/libjaxp1.3-java/gutsy

« back to all changes in this revision

Viewing changes to javax/xml/XMLConstants.java

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2006-08-03 10:30:58 UTC
  • Revision ID: james.westby@ubuntu.com-20060803103058-7jwwiqv9g8w9094d
Tags: upstream-1.3.03
ImportĀ upstreamĀ versionĀ 1.3.03

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2003-2004 The Apache Software Foundation.
 
3
 *
 
4
 * Licensed under the Apache License, Version 2.0 (the "License");
 
5
 * you may not use this file except in compliance with the License.
 
6
 * You may obtain a copy of the License at
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
10
 * Unless required by applicable law or agreed to in writing, software
 
11
 * distributed under the License is distributed on an "AS IS" BASIS,
 
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 */
 
16
 
 
17
// $Id: XMLConstants.java 226183 2005-04-08 10:39:14Z neeraj $
 
18
 
 
19
package javax.xml;
 
20
 
 
21
/**
 
22
 * <p>Utility class to contain basic XML values as constants.</p>
 
23
 *
 
24
 * @author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a>
 
25
 * @version $Revision: 226183 $, $Date: 2005-04-08 06:39:14 -0400 (Fri, 08 Apr 2005) $
 
26
 * @see <a href="http://www.w3.org/TR/xml11/">Extensible Markup Language (XML) 1.1</a>
 
27
 * @see <a href="http://www.w3.org/TR/REC-xml">Extensible Markup Language (XML) 1.0 (Second Edition)</a>
 
28
 * @see <a href="http://www.w3.org/XML/xml-V10-2e-errata">XML 1.0 Second Edition Specification Errata</a>
 
29
 * @see <a href="http://www.w3.org/TR/xml-names11/">Namespaces in XML 1.1</a>
 
30
 * @see <a href="http://www.w3.org/TR/REC-xml-names">Namespaces in XML</a>
 
31
 * @see <a href="http://www.w3.org/XML/xml-names-19990114-errata">Namespaces in XML Errata</a>
 
32
 * @see <a href="http://www.w3.org/TR/xmlschema-1/">XML Schema Part 1: Structures</a>
 
33
 * @since 1.5
 
34
 **/
 
35
 
 
36
public final class XMLConstants {
 
37
        
 
38
    /**
 
39
     * <p>Private constructor to prevent instantiation.</p>
 
40
     */
 
41
        private XMLConstants() {
 
42
        }
 
43
 
 
44
    /**
 
45
     * <p>Namespace URI to use to represent that there is no Namespace.</p>
 
46
     *
 
47
     * <p>Defined by the Namespace specification to be "".</p>
 
48
     *
 
49
     * @see <a href="http://www.w3.org/TR/REC-xml-names/#defaulting">
 
50
     * Namespaces in XML, 5.2 Namespace Defaulting</a>
 
51
     */
 
52
    public static final String NULL_NS_URI = "";
 
53
 
 
54
    /**
 
55
     * <p>Prefix to use to represent the default XML Namespace.</p>
 
56
     *
 
57
     * <p>Defined by the XML specification to be "".</p>
 
58
     *
 
59
     * @see <a
 
60
     * href="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">
 
61
     * Namespaces in XML, 3. Qualified Names</a>
 
62
     */
 
63
    public static final String DEFAULT_NS_PREFIX = "";
 
64
 
 
65
    /**
 
66
     * <p>The official XML Namespace name URI.</p>
 
67
     *
 
68
     * <p>Defined by the XML specification to be
 
69
     * "<code>http://www.w3.org/XML/1998/namespace</code>".</p>
 
70
     *
 
71
     * @see <a
 
72
     * href="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">
 
73
     * Namespaces in XML, 3. Qualified Names</a>
 
74
     */
 
75
    public static final String XML_NS_URI =
 
76
        "http://www.w3.org/XML/1998/namespace";
 
77
 
 
78
    /**
 
79
     * <p>The official XML Namespace prefix.</p>
 
80
     *
 
81
     * <p>Defined by the XML specification to be "<code>xml</code>".</p>
 
82
     *
 
83
     * @see <a
 
84
     * href="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">
 
85
     * Namespaces in XML, 3. Qualified Names<</a>
 
86
     */
 
87
    public static final String XML_NS_PREFIX = "xml";
 
88
 
 
89
    /**
 
90
     * <p>The official XML attribute used for specifying XML Namespace
 
91
     * declarations, {@link #XMLNS_ATTRIBUTE
 
92
     * XMLConstants.XMLNS_ATTRIBUTE}, Namespace name URI.</p>
 
93
     *
 
94
     * <p>Defined by the XML specification to be
 
95
     * "<code>http://www.w3.org/2000/xmlns/</code>".</p>
 
96
     *
 
97
     * @see <a
 
98
     * href="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">
 
99
     * Namespaces in XML, 3. Qualified Names</a>
 
100
     * @see <a
 
101
     * href="http://www.w3.org/XML/xml-names-19990114-errata/">
 
102
     * Namespaces in XML Errata</a>
 
103
     */
 
104
    public static final String XMLNS_ATTRIBUTE_NS_URI =
 
105
        "http://www.w3.org/2000/xmlns/";
 
106
 
 
107
    /**
 
108
     * <p>The official XML attribute used for specifying XML Namespace
 
109
     * declarations.</p>
 
110
     *
 
111
     * <p>It is <strong><em>NOT</em></strong> valid to use as a
 
112
     * prefix.  Defined by the XML specification to be
 
113
     * "<code>xmlns</code>".</p>
 
114
     *
 
115
     * @see <a
 
116
     * href="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">
 
117
     * Namespaces in XML, 3. Qualified Names</a>
 
118
     */
 
119
    public static final String XMLNS_ATTRIBUTE = "xmlns";
 
120
    
 
121
    /**
 
122
     * <p>W3C XML Schema Namespace URI.</p>
 
123
     * 
 
124
     * <p>Defined to be "<code>http://www.w3.org/2001/XMLSchema</code>".
 
125
     * 
 
126
     * @see <a href=
 
127
     *  "http://www.w3.org/TR/xmlschema-1/#Instance_Document_Constructions">
 
128
     *  XML Schema Part 1:
 
129
     *  Structures, 2.6 Schema-Related Markup in Documents Being Validated</a>
 
130
     */
 
131
    public static final String W3C_XML_SCHEMA_NS_URI =
 
132
        "http://www.w3.org/2001/XMLSchema";
 
133
 
 
134
    /**
 
135
     * <p>W3C XML Schema Instance Namespace URI.</p>
 
136
     * 
 
137
     * <p>Defined to be "<code>http://www.w3.org/2001/XMLSchema-instance</code>".</p>
 
138
     * 
 
139
     * @see <a href=
 
140
     *  "http://www.w3.org/TR/xmlschema-1/#Instance_Document_Constructions">
 
141
     *  XML Schema Part 1:
 
142
     *  Structures, 2.6 Schema-Related Markup in Documents Being Validated</a>
 
143
     */
 
144
    public static final String W3C_XML_SCHEMA_INSTANCE_NS_URI =
 
145
        "http://www.w3.org/2001/XMLSchema-instance";
 
146
 
 
147
        /**
 
148
         * <p>W3C XPath Datatype Namespace URI.</p>
 
149
         * 
 
150
         * <p>Defined to be "<code>http://www.w3.org/2003/11/xpath-datatypes</code>".</p>
 
151
         * 
 
152
         * @see <a href="http://www.w3.org/TR/xpath-datamodel">XQuery 1.0 and XPath 2.0 Data Model</a>
 
153
         */
 
154
        public static final String W3C_XPATH_DATATYPE_NS_URI = "http://www.w3.org/2003/11/xpath-datatypes";
 
155
 
 
156
    /**
 
157
     * <p>XML Document Type Declaration Namespace URI as an arbitrary value.</p>
 
158
     * 
 
159
     * <p>Since not formally defined by any existing standard, arbitrarily define to be "<code>http://www.w3.org/TR/REC-xml</code>".
 
160
     */
 
161
    public static final String XML_DTD_NS_URI = "http://www.w3.org/TR/REC-xml";
 
162
 
 
163
        /**
 
164
         * <p>RELAX NG Namespace URI.</p>
 
165
         * 
 
166
         * <p>Defined to be "<code>http://relaxng.org/ns/structure/1.0</code>".</p>
 
167
         * 
 
168
         * @see <a href="http://relaxng.org/spec-20011203.html">RELAX NG Specification</a>
 
169
         */
 
170
        public static final String RELAXNG_NS_URI = "http://relaxng.org/ns/structure/1.0";
 
171
        
 
172
        /**
 
173
         * <p>Feature for secure processing.</p>
 
174
         * 
 
175
         * <ul>
 
176
         *   <li>
 
177
         *     <code>true</code> instructs the implementation to process XML securely.
 
178
         *     This may set limits on XML constructs to avoid conditions such as denial of service attacks.
 
179
         *   </li>
 
180
         *   <li>
 
181
         *     <code>false</code> instructs the implementation to process XML acording the letter of the XML specifications
 
182
         *     ingoring security issues such as limits on XML constructs to avoid conditions such as denial of service attacks.
 
183
         *   </li>
 
184
         * </ul>
 
185
         */    
 
186
        public static final String FEATURE_SECURE_PROCESSING = "http://javax.xml.XMLConstants/feature/secure-processing";
 
187
}