OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / libcore / luni / src / main / java / org / apache / xml / serializer / dom3 / DOMConstants.java
1 /*\r
2  * Licensed to the Apache Software Foundation (ASF) under one\r
3  * or more contributor license agreements. See the NOTICE file\r
4  * distributed with this work for additional information\r
5  * regarding copyright ownership. The ASF licenses this file\r
6  * to you under the Apache License, Version 2.0 (the  "License");\r
7  * you may not use this file except in compliance with the License.\r
8  * You may obtain a copy of the License at\r
9  *\r
10  *     http://www.apache.org/licenses/LICENSE-2.0\r
11  *\r
12  * Unless required by applicable law or agreed to in writing, software\r
13  * distributed under the License is distributed on an "AS IS" BASIS,\r
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
15  * See the License for the specific language governing permissions and\r
16  * limitations under the License.\r
17  */\r
18 /*\r
19  * $Id:  $\r
20  */\r
21 \r
22 package org.apache.xml.serializer.dom3;\r
23 \r
24 /**\r
25  * DOM Constants used by the DOM Level 3 LSSerializer implementation.\r
26  *\r
27  * @xsl.usage internal\r
28  */\r
29 final class DOMConstants {\r
30     //\r
31     // Constants: DOM Level 3 feature ids\r
32     //\r
33     public static final String DOM3_REC_URL = "http://www.w3.org/TR/DOM-Level-3-LS";\r
34 \r
35     public static final String XERCES_URL = "http://xml.apache.org/xerces-2j";\r
36 \r
37     // The namespace used to qualified DOM Level 3 DOMConfiguration parameters\r
38     public static final String S_DOM3_PROPERTIES_NS = "{"\r
39             + DOMConstants.DOM3_REC_URL + "}";\r
40 \r
41     public static final String S_XERCES_PROPERTIES_NS = "{"\r
42             + DOMConstants.XERCES_URL + "}";\r
43 \r
44     // xmlns namespaces \r
45     private static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/";\r
46 \r
47     // namespace prefix\r
48     private static final String XMLNS_PREFIX = "xmlns";\r
49 \r
50     // ************************************************************************\r
51     // DOM Level 3 DOM Configuration parameter names\r
52     // ************************************************************************\r
53     // DOM Level 3 parameters defined in Core\r
54     public static final String DOM_CANONICAL_FORM = "canonical-form"; // Unsupported, we only appear to support this\r
55 \r
56     public static final String DOM_CDATA_SECTIONS = "cdata-sections";\r
57 \r
58     public static final String DOM_CHECK_CHAR_NORMALIZATION = "check-character-normalization"; // Unsupported\r
59 \r
60     public static final String DOM_COMMENTS = "comments";\r
61 \r
62     public static final String DOM_DATATYPE_NORMALIZATION = "datatype-normalization"; // Unsupported\r
63 \r
64     public static final String DOM_ELEMENT_CONTENT_WHITESPACE = "element-content-whitespace";\r
65 \r
66     public static final String DOM_ENTITIES = "entities";\r
67 \r
68     public static final String DOM_INFOSET = "infoset";\r
69 \r
70     public static final String DOM_NAMESPACES = "namespaces";\r
71 \r
72     public static final String DOM_NAMESPACE_DECLARATIONS = "namespace-declarations";\r
73 \r
74     public static final String DOM_NORMALIZE_CHARACTERS = "normalize-characters"; // Unsupported\r
75 \r
76     public static final String DOM_SPLIT_CDATA = "split-cdata-sections";\r
77 \r
78     public static final String DOM_VALIDATE_IF_SCHEMA = "validate-if-schema"; // Unsopported\r
79 \r
80     public static final String DOM_VALIDATE = "validate"; // Unsopported\r
81 \r
82     public static final String DOM_WELLFORMED = "well-formed";\r
83 \r
84     // DOM Level 3 Save\r
85     public static final String DOM_DISCARD_DEFAULT_CONTENT = "discard-default-content";\r
86 \r
87     public static final String DOM_FORMAT_PRETTY_PRINT = "format-pretty-print";\r
88 \r
89     public static final String DOM_IGNORE_UNKNOWN_CHARACTER_DENORMALIZATIONS = "ignore-unknown-character-denormalizations"; // Unsupported\r
90 \r
91     public static final String DOM_XMLDECL = "xml-declaration";\r
92 \r
93     // DOM Properties\r
94     public static final String DOM_ERROR_HANDLER = "error-handler";\r
95 \r
96     public static final String DOM_SCHEMA_TYPE = "schema-type"; // Unsupported\r
97 \r
98     public static final String DOM_SCHEMA_LOCATION = "schema-location"; // Unsupported\r
99 \r
100     // ************************************************************************\r
101 \r
102     // XSL Output properties\r
103     // The xsl:output 'indent' property used in LSSerializer \r
104     public static final String S_XSL_OUTPUT_INDENT = "indent";\r
105 \r
106     // The xsl:output 'indent' property used in LSSerializer \r
107     public static final String S_XSL_OUTPUT_ENCODING = "encoding";\r
108 \r
109     // The xsl:output 'omit-xml-declaration' property used in LSSerializer \r
110     public static final String S_XSL_OUTPUT_OMIT_XML_DECL = "omit-xml-declaration";\r
111 \r
112     // The xerces serializer specific 'omit-xml-declaration' property used in LSSerializer \r
113     public static final String S_XML_VERSION = "xml-version";\r
114 \r
115     //     \r
116     public static final String S_XSL_VALUE_ENTITIES = "org/apache/xml/serializer/XMLEntities";\r
117     \r
118     // Parameter values\r
119     public static final String DOM3_EXPLICIT_TRUE = "explicit:yes";\r
120 \r
121     public static final String DOM3_DEFAULT_TRUE = "default:yes";\r
122 \r
123     public static final String DOM3_EXPLICIT_FALSE = "explicit:no";\r
124 \r
125     public static final String DOM3_DEFAULT_FALSE = "default:no";\r
126 \r
127     // DOM Exceptions\r
128     public static final String DOM_EXCEPTION_FEATURE_NOT_FOUND = "FEATURE_NOT_FOUND";\r
129 \r
130     public static final String DOM_EXCEPTION_FEATURE_NOT_SUPPORTED = "FEATURE_NOT_SUPPORTED";\r
131 \r
132     public static final String DOM_LSEXCEPTION_SERIALIZER_ERR = "SERIALIZER_ERROR";\r
133 \r
134 }\r