1 /*
2 * Copyright [2005] [University Corporation for Advanced Internet Development, Inc.]
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 package org.opensaml.xml.util;
18
19 import javax.xml.namespace.QName;
20
21 /**
22 * XML related constants.
23 */
24 public class XMLConstants {
25
26 // ****************************
27 // XML Tooling
28 // ****************************
29 /** Configuration namespace. */
30 public static final String XMLTOOLING_CONFIG_NS = "http://www.opensaml.org/xmltooling-config";
31
32 /** Configuration namespace prefix. */
33 public static final String XMLTOOLING_CONFIG_PREFIX = "xt";
34
35 /** Name of the object provider used for objects that don't have a registered object provider. */
36 public static final String XMLTOOLING_DEFAULT_OBJECT_PROVIDER = "DEFAULT";
37
38 /** Location, on the classpath, of the XMLTooling configuration schema. */
39 public static final String XMLTOOLING_SCHEMA_LOCATION = "/schema/xmltooling-config.xsd";
40
41 // ****************************
42 // Core XML
43 // ****************************
44 /** XML core namespace. */
45 public static final String XML_NS = "http://www.w3.org/XML/1998/namespace";
46
47 /** XML core prefix for xml attributes. */
48 public static final String XML_PREFIX = "xml";
49
50 /** XML namespace for xmlns attributes. */
51 public static final String XMLNS_NS = "http://www.w3.org/2000/xmlns/";
52
53 /** XML namespace prefix for xmlns attributes. */
54 public static final String XMLNS_PREFIX = "xmlns";
55
56 /** XML Schema namespace. */
57 public static final String XSD_NS = "http://www.w3.org/2001/XMLSchema";
58
59 /** XML Schema QName prefix. */
60 public static final String XSD_PREFIX = "xs";
61
62 /** XML Schema Instance namespace. */
63 public static final String XSI_NS = "http://www.w3.org/2001/XMLSchema-instance";
64
65 /** XML Schema Instance QName prefix. */
66 public static final String XSI_PREFIX = "xsi";
67
68 /** XML XMLSecSignatureImpl namespace. */
69 public static final String XMLSIG_NS = "http://www.w3.org/2000/09/xmldsig#";
70
71 /** XML XMLSecSignatureImpl QName prefix. */
72 public static final String XMLSIG_PREFIX = "ds";
73
74 /** XML Encryption namespace. */
75 public static final String XMLENC_NS = "http://www.w3.org/2001/04/xmlenc#";
76
77 /** XML Encryption QName prefix. */
78 public static final String XMLENC_PREFIX = "xenc";
79
80 /** XML Schema instance <code>xsi:type</code> attribute QName. */
81 public static final QName XSI_TYPE_ATTRIB_NAME =
82 new QName(XSI_NS, "type", XSI_PREFIX);
83
84 /** XML Schema instance <code>xsi:type</code> attribute QName. */
85 public static final QName XSI_SCHEMA_LOCATION_ATTRIB_NAME =
86 new QName(XSI_NS, "schemaLocation", XSI_PREFIX);
87
88 /** XML Schema instance <code>xsi:type</code> attribute QName. */
89 public static final QName XSI_NO_NAMESPACE_SCHEMA_LOCATION_ATTRIB_NAME =
90 new QName(XSI_NS, "noNamespaceSchemaLocation", XSI_PREFIX);
91
92 /** XML Schema instance <code>xsi:type</code> attribute QName. */
93 public static final QName XSI_NIL_ATTRIB_NAME =
94 new QName(XSI_NS, "nil", XSI_PREFIX);
95
96 }