01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18: package org.apache.tools.ant.util;
19:
20: /**
21: * XML Parser constants, all kept in one place for ease of reuse
22: * @see <a href="http://xml.apache.org/xerces-j/features.html">Xerces features</a>
23: * @see <a href="http://xml.apache.org/xerces-j/properties.html">Xerces properties</a>
24: * @see <a href=
25: * "http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description"
26: * >SAX.</a>
27: */
28:
29: public class XmlConstants {
30: /** property for location of xml schema */
31: public static final String PROPERTY_SCHEMA_LOCATION = "http://apache.org/xml/properties/schema/external-schemaLocation";
32: /** property for location of no-name schema */
33: public static final String PROPERTY_NO_NAMESPACE_SCHEMA_LOCATION = "http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation";
34: /** property for full validation */
35: public static final String FEATURE_XSD_FULL_VALIDATION = "http://apache.org/xml/features/validation/schema-full-checking";
36: /** property for xsd */
37: public static final String FEATURE_XSD = "http://apache.org/xml/features/validation/schema";
38:
39: /** property for validation */
40: public static final String FEATURE_VALIDATION = "http://xml.org/sax/features/validation";
41: /** property for namespace support */
42: public static final String FEATURE_NAMESPACES = "http://xml.org/sax/features/namespaces";
43: /** property for schema language */
44: public static final String FEATURE_JAXP12_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
45: /** property for schema source */
46: public static final String FEATURE_JAXP12_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
47: /** the namespace for XML schema */
48: public static final String URI_XSD = "http://www.w3.org/2001/XMLSchema";
49: /** the sax external entities feature */
50: public static final String FEATURE_EXTERNAL_ENTITIES = "http://xml.org/sax/features/external-general-entities";
51: /** the apache.org/xml disalllow doctype decl feature */
52: public static final String FEATURE_DISALLOW_DTD = "http://apache.org/xml/features/disallow-doctype-decl";
53: }
|