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 /** 20 * XML related constants. 21 */ 22 public class XMLConstants { 23 24 // **************************** 25 // XML Tooling 26 // **************************** 27 /** Configuration namespace. */ 28 public static final String XMLTOOLING_CONFIG_NS = "http://www.opensaml.org/xmltooling-config"; 29 30 /** Configuration namespace prefix. */ 31 public static final String XMLTOOLING_CONFIG_PREFIX = "xt"; 32 33 /** Name of the object provider used for objects that don't have a registered object provider. */ 34 public static final String XMLTOOLING_DEFAULT_OBJECT_PROVIDER = "DEFAULT"; 35 36 /** Location, on the classpath, of the XMLTooling configuration schema. */ 37 public static final String XMLTOOLING_SCHEMA_LOCATION = "/schema/xmltooling-config.xsd"; 38 39 // **************************** 40 // Core XML 41 // **************************** 42 /** XML core namespace. */ 43 public static final String XML_NS = "http://www.w3.org/XML/1998/namespace"; 44 45 /** XML core prefix for xml attributes. */ 46 public static final String XML_PREFIX = "xml"; 47 48 /** XML namespace for xmlns attributes. */ 49 public static final String XMLNS_NS = "http://www.w3.org/2000/xmlns/"; 50 51 /** XML namespace prefix for xmlns attributes. */ 52 public static final String XMLNS_PREFIX = "xmlns"; 53 54 /** XML Schema namespace. */ 55 public static final String XSD_NS = "http://www.w3.org/2001/XMLSchema"; 56 57 /** XML Schema QName prefix. */ 58 public static final String XSD_PREFIX = "xs"; 59 60 /** XML Schema Instance namespace. */ 61 public static final String XSI_NS = "http://www.w3.org/2001/XMLSchema-instance"; 62 63 /** XML Schema Instance QName prefix. */ 64 public static final String XSI_PREFIX = "xsi"; 65 66 /** XML XMLSecSignatureImpl namespace. */ 67 public static final String XMLSIG_NS = "http://www.w3.org/2000/09/xmldsig#"; 68 69 /** XML XMLSecSignatureImpl QName prefix. */ 70 public static final String XMLSIG_PREFIX = "ds"; 71 72 /** XML Encryption namespace. */ 73 public static final String XMLENC_NS = "http://www.w3.org/2001/04/xmlenc#"; 74 75 /** XML Encryption QName prefix. */ 76 public static final String XMLENC_PREFIX = "xenc"; 77 78 }