/** * Character data */ public void characters(CharSequence chars, int locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } ItemType type = NodeKindTest.TEXT; checkItemType(type, locationId); } nextReceiver.characters(chars, locationId, properties); }
/** * Processing Instruction */ public void processingInstruction(String target, CharSequence data, int locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } ItemType type = NodeKindTest.PROCESSING_INSTRUCTION; checkItemType(type, locationId); } nextReceiver.processingInstruction(target, data, locationId, properties); }
/** * Output a comment */ public void comment(CharSequence chars, int locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } ItemType type = NodeKindTest.COMMENT; checkItemType(type, locationId); } nextReceiver.comment(chars, locationId, properties); //To change body of overridden methods use File | Settings | File Templates. }
/** * Output a comment */ public void comment(CharSequence chars, int locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } ItemType type = NodeKindTest.COMMENT; checkItemType(type, locationId); } nextReceiver.comment(chars, locationId, properties); //To change body of overridden methods use File | Settings | File Templates. }
/** * Processing Instruction */ public void processingInstruction(String target, CharSequence data, int locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } ItemType type = NodeKindTest.PROCESSING_INSTRUCTION; checkItemType(type, locationId); } nextReceiver.processingInstruction(target, data, locationId, properties); }
/** * Character data */ public void characters(CharSequence chars, int locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } ItemType type = NodeKindTest.TEXT; checkItemType(type, locationId); } nextReceiver.characters(chars, locationId, properties); }
/** * Start of a document node. */ public void startDocument(int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(0); } ItemType type = NodeKindTest.DOCUMENT; checkItemType(type, 0); } level++; nextReceiver.startDocument(properties); }
/** * Start of a document node. */ public void startDocument(int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(0); } ItemType type = NodeKindTest.DOCUMENT; checkItemType(type, 0); } level++; nextReceiver.startDocument(properties); }
/** * Notify a namespace. Namespaces are notified <b>after</b> the startElement event, and before * any children for the element. The namespaces that are reported are only required * to include those that are different from the parent element; however, duplicates may be reported. * A namespace must not conflict with any namespaces already used for element or attribute names. * * @param namespaceBindings the prefix/uri pair * @throws IllegalStateException: attempt to output a namespace when there is no open element * start tag */ public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(ExplicitLocation.UNKNOWN_LOCATION); } checkItemType(NodeKindTest.NAMESPACE, null, ExplicitLocation.UNKNOWN_LOCATION); } nextReceiver.namespace(namespaceBindings, properties); //To change body of overridden methods use File | Settings | File Templates. }
/** * Notify a namespace. Namespaces are notified <b>after</b> the startElement event, and before * any children for the element. The namespaces that are reported are only required * to include those that are different from the parent element; however, duplicates may be reported. * A namespace must not conflict with any namespaces already used for element or attribute names. * * @param namespaceBindings the prefix/uri pair * @throws IllegalStateException: attempt to output a namespace when there is no open element * start tag */ public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(ExplicitLocation.UNKNOWN_LOCATION); } checkItemType(NodeKindTest.NAMESPACE, null, ExplicitLocation.UNKNOWN_LOCATION); } nextReceiver.namespace(namespaceBindings, properties); //To change body of overridden methods use File | Settings | File Templates. }
/** * Character data */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } checkItemType(NodeKindTest.TEXT, nodeSupplier(Type.TEXT, null, chars), locationId); } nextReceiver.characters(chars, locationId, properties); }
/** * Output a comment */ public void comment(CharSequence chars, Location locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } checkItemType(NodeKindTest.COMMENT, nodeSupplier(Type.COMMENT, null, chars), locationId); } nextReceiver.comment(chars, locationId, properties); }
/** * Character data */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } checkItemType(NodeKindTest.TEXT, nodeSupplier(Type.TEXT, null, chars), locationId); } nextReceiver.characters(chars, locationId, properties); }
/** * Output a comment */ public void comment(CharSequence chars, Location locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } checkItemType(NodeKindTest.COMMENT, nodeSupplier(Type.COMMENT, null, chars), locationId); } nextReceiver.comment(chars, locationId, properties); }
/** * Start of a document node. */ public void startDocument(int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(ExplicitLocation.UNKNOWN_LOCATION); } checkItemType(NodeKindTest.DOCUMENT, nodeSupplier(Type.DOCUMENT, null, ""), ExplicitLocation.UNKNOWN_LOCATION); } level++; nextReceiver.startDocument(properties); }
/** * Start of a document node. */ public void startDocument(int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(ExplicitLocation.UNKNOWN_LOCATION); } checkItemType(NodeKindTest.DOCUMENT, nodeSupplier(Type.DOCUMENT, null, ""), ExplicitLocation.UNKNOWN_LOCATION); } level++; nextReceiver.startDocument(properties); }
/** * Processing Instruction */ public void processingInstruction(String target, CharSequence data, Location locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } checkItemType(NodeKindTest.PROCESSING_INSTRUCTION, nodeSupplier(Type.PROCESSING_INSTRUCTION, new NoNamespaceName(target), data), locationId); } nextReceiver.processingInstruction(target, data, locationId, properties); }
/** * Processing Instruction */ public void processingInstruction(String target, CharSequence data, Location locationId, int properties) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } checkItemType(NodeKindTest.PROCESSING_INSTRUCTION, nodeSupplier(Type.PROCESSING_INSTRUCTION, new NoNamespaceName(target), data), locationId); } nextReceiver.processingInstruction(target, data, locationId, properties); }
/** * Output an item (atomic value or node) to the sequence */ public void append(Item item, int locationId, int copyNamespaces) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } checkItemType(Value.asValue(item).getItemType(getConfiguration().getTypeHierarchy()), locationId); } if (nextReceiver instanceof SequenceReceiver) { ((SequenceReceiver)nextReceiver).append(item, locationId, copyNamespaces); } else { super.append(item, locationId, copyNamespaces); } }
/** * Output an item (atomic value or node) to the sequence */ public void append(Item item, int locationId, int copyNamespaces) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } checkItemType(Value.asValue(item).getItemType(getConfiguration().getTypeHierarchy()), locationId); } if (nextReceiver instanceof SequenceReceiver) { ((SequenceReceiver)nextReceiver).append(item, locationId, copyNamespaces); } else { super.append(item, locationId, copyNamespaces); } }