Package net.sf.saxon.event
Class ReceiverOption
- java.lang.Object
-
- net.sf.saxon.event.ReceiverOption
-
public class ReceiverOption extends java.lang.Object
ReceiverOption defines a set of constants representing boolean flags, which can be used in calls to methods on the Receiver interface.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL_NAMESPACES
Flag set on append() to indicate that all in-scope namespaces should be copiedstatic int
BEQUEATH_INHERITED_NAMESPACES_ONLY
Flag set on startElement() to indicate that the namespaces inherited from a new parent element are passed on to the children of this element, but other namespaces are not bequeathed to the children.static int
DEFAULTED_VALUE
Flag indicating that an attribute value or text node was added by the schema processor because a default value was specifiedstatic int
DISABLE_CHARACTER_MAPS
Flag to disable use of character mapsstatic int
DISABLE_ESCAPING
Flag set on a characters() event to disable output escapingstatic int
DISINHERIT_NAMESPACES
Flag passed on startElement indicating that the element does not pass namespaces on to its children.static int
HAS_CHILDREN
Flag set on startElement() if the element is known to have childrenstatic int
ID_IDREF_CHECKED
Flag indicating that the ID/IDREF properties have been set if applicable: if this bit is set, then the absence of the IS_ID bit means the node is not an ID, and similarly for IS_IDREFstatic int
IS_ID
Flag indicating an element or attribute that has the is-id propertystatic int
IS_IDREF
Flag indicating an element or attribute that has the is-idref property (indicating that it is an IDREF or IDREFS attribute)static int
MUTABLE_TREE
Flag set on startDocument() to indicate that the constructed document must be updatablestatic int
NAMESPACE_OK
Flag indicating that the namespace (of an element or attribute name) has already been declared; it does not need to be generated by the namespace fixup process.static int
NILLABLE_ELEMENT
Flag used with character content that has been validated against a nillable element declaration.static int
NILLED_ELEMENT
Flag used with character content that has been validated against a nillable element declaration.static int
NO_SPECIAL_CHARS
Flag indicating that the value contains no special characters that need to be escapedstatic int
NONE
static int
NOT_A_DUPLICATE
Flag set on attribute() to indicate that there is no need to check for duplicate attributesstatic int
REFUSE_NAMESPACES
Flag set on startElement() to indicate that the element does not inherit namespaces from its parent.static int
REJECT_DUPLICATES
Flag indicating that duplicate values should be rejectedstatic int
SEPARATOR
Flag set on characters() to indicate that the text node is a separator space between atomic valuesstatic int
TERMINATE
Flag set on startDocument() in relation to an xsl:message call with terminate="yes"static int
USE_NULL_MARKERS
Flag used when an attribute value or text node contains null characters before and after strings generated by character mapping; these strings are to be output without escapingstatic int
WHOLE_TEXT_NODE
Flag used with the characters() event to indicate that the event represents an entire text node, that is, the text node has not been fragmented over several characters() events
-
Constructor Summary
Constructors Constructor Description ReceiverOption()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
contains(int options, int option)
-
-
-
Field Detail
-
NONE
public static final int NONE
- See Also:
- Constant Field Values
-
DISABLE_ESCAPING
public static final int DISABLE_ESCAPING
Flag set on a characters() event to disable output escaping- See Also:
- Constant Field Values
-
DISABLE_CHARACTER_MAPS
public static final int DISABLE_CHARACTER_MAPS
Flag to disable use of character maps- See Also:
- Constant Field Values
-
NO_SPECIAL_CHARS
public static final int NO_SPECIAL_CHARS
Flag indicating that the value contains no special characters that need to be escaped- See Also:
- Constant Field Values
-
DEFAULTED_VALUE
public static final int DEFAULTED_VALUE
Flag indicating that an attribute value or text node was added by the schema processor because a default value was specified- See Also:
- Constant Field Values
-
NILLED_ELEMENT
public static final int NILLED_ELEMENT
Flag used with character content that has been validated against a nillable element declaration. Needed because of a peculiar rule for validating xs:key values- See Also:
- Constant Field Values
-
REJECT_DUPLICATES
public static final int REJECT_DUPLICATES
Flag indicating that duplicate values should be rejected- See Also:
- Constant Field Values
-
NAMESPACE_OK
public static final int NAMESPACE_OK
Flag indicating that the namespace (of an element or attribute name) has already been declared; it does not need to be generated by the namespace fixup process.- See Also:
- Constant Field Values
-
DISINHERIT_NAMESPACES
public static final int DISINHERIT_NAMESPACES
Flag passed on startElement indicating that the element does not pass namespaces on to its children.- See Also:
- Constant Field Values
-
USE_NULL_MARKERS
public static final int USE_NULL_MARKERS
Flag used when an attribute value or text node contains null characters before and after strings generated by character mapping; these strings are to be output without escaping- See Also:
- Constant Field Values
-
NILLABLE_ELEMENT
public static final int NILLABLE_ELEMENT
Flag used with character content that has been validated against a nillable element declaration. Needed because of a peculiar rule for validating xs:key values- See Also:
- Constant Field Values
-
WHOLE_TEXT_NODE
public static final int WHOLE_TEXT_NODE
Flag used with the characters() event to indicate that the event represents an entire text node, that is, the text node has not been fragmented over several characters() events- See Also:
- Constant Field Values
-
IS_ID
public static final int IS_ID
Flag indicating an element or attribute that has the is-id property- See Also:
- Constant Field Values
-
IS_IDREF
public static final int IS_IDREF
Flag indicating an element or attribute that has the is-idref property (indicating that it is an IDREF or IDREFS attribute)- See Also:
- Constant Field Values
-
ID_IDREF_CHECKED
public static final int ID_IDREF_CHECKED
Flag indicating that the ID/IDREF properties have been set if applicable: if this bit is set, then the absence of the IS_ID bit means the node is not an ID, and similarly for IS_IDREF- See Also:
- Constant Field Values
-
TERMINATE
public static final int TERMINATE
Flag set on startDocument() in relation to an xsl:message call with terminate="yes"- See Also:
- Constant Field Values
-
MUTABLE_TREE
public static final int MUTABLE_TREE
Flag set on startDocument() to indicate that the constructed document must be updatable- See Also:
- Constant Field Values
-
REFUSE_NAMESPACES
public static final int REFUSE_NAMESPACES
Flag set on startElement() to indicate that the element does not inherit namespaces from its parent. This handles the situation in XQuery (see spec bug 22334) where a directly-constructed element behaves as if inherit="no" on the parent, simply because there is no rule in the spec that says it should inherit the parent namespaces (because there is no copy operation).- See Also:
- Constant Field Values
-
BEQUEATH_INHERITED_NAMESPACES_ONLY
public static final int BEQUEATH_INHERITED_NAMESPACES_ONLY
Flag set on startElement() to indicate that the namespaces inherited from a new parent element are passed on to the children of this element, but other namespaces are not bequeathed to the children. This flag is used during a deep copy operation, where inherit=yes on the new parent of the deep-copied element causes the parent's namespaces to be propagated to all descendants, without propagating namespaces declared within the tree being copied.- See Also:
- Constant Field Values
-
HAS_CHILDREN
public static final int HAS_CHILDREN
Flag set on startElement() if the element is known to have children- See Also:
- Constant Field Values
-
ALL_NAMESPACES
public static final int ALL_NAMESPACES
Flag set on append() to indicate that all in-scope namespaces should be copied- See Also:
- Constant Field Values
-
NOT_A_DUPLICATE
public static final int NOT_A_DUPLICATE
Flag set on attribute() to indicate that there is no need to check for duplicate attributes- See Also:
- Constant Field Values
-
SEPARATOR
public static final int SEPARATOR
Flag set on characters() to indicate that the text node is a separator space between atomic values- See Also:
- Constant Field Values
-
-