01: package net.sf.saxon.event;
02:
03: /**
04: * ReceiverOptions defines a set of constants, which can be used in
05: * calls to methods on the Receiver interface. The values are
06: * bit-significant.
07: *
08: * @author Michael H. Kay
09: */
10:
11: public class ReceiverOptions {
12:
13: /**
14: * Flag to disable output escaping
15: */
16:
17: public static final int DISABLE_ESCAPING = 1;
18:
19: /**
20: * Flag to disable use of character maps
21: */
22:
23: public static final int DISABLE_CHARACTER_MAPS = 2;
24:
25: /**
26: * Flag indicating that the value contains no special characters
27: * that need to be escaped
28: */
29:
30: public static final int NO_SPECIAL_CHARS = 4;
31:
32: /**
33: * Flag indicating that an attribute value was added by the schema processor
34: * because a default value was specified
35: */
36:
37: public static final int DEFAULTED_ATTRIBUTE = 8;
38:
39: /**
40: * Flag indicating that duplicate values should be rejected
41: */
42:
43: public static final int REJECT_DUPLICATES = 32;
44:
45: /**
46: * Flag indicating that the namespace (of an element or attribute name)
47: * has already been declared; it does not need to be generated by the namespace
48: * fixup process.
49: */
50:
51: public static final int NAMESPACE_OK = 64;
52:
53: /**
54: * Flag passed on startElement indicating that the element does not inherit
55: * the namespaces of its ancestors.
56: */
57:
58: public static final int DISINHERIT_NAMESPACES = 128;
59:
60: /**
61: * Flag used when an attribute value or text node contains null characters
62: * before and after strings generated by character mapping; these strings
63: * are to be output without escaping
64: */
65:
66: public static final int USE_NULL_MARKERS = 256;
67:
68: /**
69: * Flag used with character content that has been validated against a nillable element
70: * declaration. Needed because of a peculiar rule for validating xs:key values
71: */
72:
73: public static final int NILLABLE_ELEMENT = 512;
74:
75: }
76:
77: //
78: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
79: // you may not use this file except in compliance with the License. You may obtain a copy of the
80: // License at http://www.mozilla.org/MPL/
81: //
82: // Software distributed under the License is distributed on an "AS IS" basis,
83: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
84: // See the License for the specific language governing rights and limitations under the License.
85: //
86: // The Original Code is: all this file,C.
87: //
88: // The Initial Developer of the Original Code is Michael H. Kay.
89: //
90: // Contributor(s):
91: //
|