KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > event > ReceiverOptions


1 package net.sf.saxon.event;
2
3
4 /**
5   * ReceiverOptions defines a set of constants, which can be used in
6   * calls to methods on the Receiver interface. The values are
7   * bit-significant.
8   *
9   * @author Michael H. Kay
10   */

11
12
13 public class ReceiverOptions {
14
15     /**
16     * Flag to disable output escaping
17     */

18
19     public static final int DISABLE_ESCAPING = 1;
20     
21     /**
22      * Flag to disable use of character maps
23      */

24
25     public static final int DISABLE_CHARACTER_MAPS = 2;
26
27     /**
28     * Flag indicating that the value contains no special characters
29     * that need to be escaped
30     */

31
32     public static final int NO_SPECIAL_CHARS = 4;
33
34     /**
35      * Flag indicating that an attribute value was added by the schema processor
36      * because a default value was specified
37      */

38
39     public static final int DEFAULTED_ATTRIBUTE = 8;
40
41     /**
42     * Flag indicating that duplicate values should be rejected
43     */

44
45     public static final int REJECT_DUPLICATES = 32;
46
47     /**
48      * Flag indicating that the namespace (of an element or attribute name)
49      * has already been declared; it does not need to be generated by the namespace
50      * fixup process.
51      */

52
53     public static final int NAMESPACE_OK = 64;
54
55     /**
56      * Flag passed on startElement indicating that the element does not inherit
57      * the namespaces of its ancestors.
58      */

59
60     public static final int DISINHERIT_NAMESPACES = 128;
61
62     /**
63      * Flag used when an attribute value or text node contains null characters
64      * before and after strings generated by character mapping; these strings
65      * are to be output without escaping
66      */

67
68     public static final int USE_NULL_MARKERS = 256;
69
70
71 }
72
73 //
74
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
75
// you may not use this file except in compliance with the License. You may obtain a copy of the
76
// License at http://www.mozilla.org/MPL/
77
//
78
// Software distributed under the License is distributed on an "AS IS" basis,
79
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
80
// See the License for the specific language governing rights and limitations under the License.
81
//
82
// The Original Code is: all this file,C.
83
//
84
// The Initial Developer of the Original Code is Michael H. Kay.
85
//
86
// Contributor(s):
87
//
88
Popular Tags