/** * 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. }
/** * 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); }
/** * 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); }
/** * 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); }
/** * Output an item (atomic value or node) to the sequence */ public void append(Item item, Location locationId, int copyNamespaces) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } checkItem(item, locationId); } if (nextReceiver instanceof 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, Location locationId, int copyNamespaces) throws XPathException { if (level == 0) { if (++count == 2) { checkAllowsMany(locationId); } checkItem(item, locationId); } if (nextReceiver instanceof SequenceReceiver) { nextReceiver.append(item, locationId, copyNamespaces); } else { super.append(item, locationId, copyNamespaces); } }
/** * 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); } }