Debian Codegraph @

net/sf/saxon/event/ReceiverOptions.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.event;
9
10
11 /**
12 * ReceiverOptions defines a set of constants, which can be used in
13 * calls to methods on the Receiver interface. The values are
14 * bit-significant.
15 *
16 * @author Michael H. Kay
17 */
18
19
20 public class ReceiverOptions {
21
22 /**
23 * Flag to disable output escaping
24 */
25
26 public static final int DISABLE_ESCAPING = 1;
27
28 /**
29 * Flag to disable use of character maps
30 */
31
32 public static final int DISABLE_CHARACTER_MAPS = 2;
33
34 /**
35 * Flag indicating that the value contains no special characters
36 * that need to be escaped
37 */
38
39 public static final int NO_SPECIAL_CHARS = 4;
40
41 /**
42 * Flag indicating that an attribute value or text node was added by the schema processor
43 * because a default value was specified
44 */
45
46 public static final int DEFAULTED_ATTRIBUTE = 8;
47
48 /**
49 * Flag used with character content that has been validated against a nillable element
50 * declaration. Needed because of a peculiar rule for validating xs:key values
51 */
52
53 public static final int NILLED_ELEMENT = 0x10;
54
55 /**
56 * Flag indicating that duplicate values should be rejected
57 */
58
59 public static final int REJECT_DUPLICATES = 0x20;
60
61 /**
62 * Flag indicating that the namespace (of an element or attribute name)
63 * has already been declared; it does not need to be generated by the namespace
64 * fixup process.
65 */
66
67 public static final int NAMESPACE_OK = 0x40;
68
69 /**
70 * Flag passed on startElement indicating that the element does not pass
71 * namespaces on to its children.
72 */
73
74 public static final int DISINHERIT_NAMESPACES = 0x80;
75
76 /**
77 * Flag used when an attribute value or text node contains null characters
78 * before and after strings generated by character mapping; these strings
79 * are to be output without escaping
80 */
81
82 public static final int USE_NULL_MARKERS = 0x100;
83
84 /**
85 * Flag used with character content that has been validated against a nillable element
86 * declaration. Needed because of a peculiar rule for validating xs:key values
87 */
88
89 public static final int NILLABLE_ELEMENT = 0x200;
90
91 /**
92 * Flag used with the characters() event to indicate that the event represents an entire
93 * text node, that is, the text node has not been fragmented over several characters() events
94 */
95
96 public static final int WHOLE_TEXT_NODE = 0x400;
97
98 /**
99 * Flag indicating an element or attribute that has the is-id property
100 */
101
102 public static final int IS_ID = 0x800;
103
104 /**
105 * Flag indicating an element or attribute that has the is-idref property (indicating that it is an IDREF
106 * or IDREFS attribute)
107 */
108
109 public static final int IS_IDREF = 0x1000;
110
111 /**
112 * Flag indicating that the ID/IDREF properties have been set if applicable: if this bit is set,
113 * then the absence of the IS_ID bit means the node is not an ID, and similarly for IS_IDREF
114 */
115
116 public static final int ID_IDREF_CHECKED = 0x2000;
117
118 /**
119 * Flag set on startDocument() in relation to an xsl:message call with terminate="yes"
120 */
121
122 public static final int TERMINATE = 0x4000;
123
124 /**
125 * Flag set on startDocument() to indicate that the constructed document must be updateable
126 */
127
128 public static final int MUTABLE_TREE = 0x8000;
129
130 /**
131 * Flag set on startElement() to indicate that the element does not inherit namespaces
132 * from its parent
133 */
134
135 public static final int REFUSE_NAMESPACES = 0x10000;
136
137 /**
138 * Flag set on startElement() if the element is known to have children
139 */
140
141 public static final int HAS_CHILDREN = 0x20000;
142
143 /**
144 * Flag set on append() to indicate that namespaces declared (or undeclared) on this element
145 * should be copied, but not namespaces inherited from a parent element
146 */
147 public static final int LOCAL_NAMESPACES = 0x40000;
148
149 /**
150 * Flag set on append() to indicate that all in-scope namespaces should be copied
151 */
152 public static final int ALL_NAMESPACES = 0x80000;
153
154 /**
155 * Flag set on attribute() to indicate that there is no need to check for duplicate attributes
156 */
157 public static final int NOT_A_DUPLICATE = 0x100000;
158
159
160 }
161