/** * Output a comment */ @Override public void comment(CharSequence chars, Location locationId, int properties) throws XPathException { sep(); super.comment(chars, locationId, properties); }
/** * Start of a document node. */ @Override public void startDocument(int properties) throws XPathException { sep(); super.startDocument(properties); }
/** * Character data */ @Override public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { sep(); super.characters(chars, locationId, properties); }
/** * Notify the start of an element * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location * @param properties properties of the element node */ @Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { sep(); super.startElement(elemName, typeCode, location, properties); }
/** * Processing Instruction */ @Override public void processingInstruction(String target, CharSequence data, Location locationId, int properties) throws XPathException { sep(); super.processingInstruction(target, data, locationId, properties); }
/** * Notify the start of an element * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location * @param properties properties of the element node */ @Override public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { sep(); super.startElement(elemName, typeCode, location, properties); }
/** * Character data */ @Override public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { sep(); super.characters(chars, locationId, properties); }
/** * Processing Instruction */ @Override public void processingInstruction(String target, CharSequence data, Location locationId, int properties) throws XPathException { sep(); super.processingInstruction(target, data, locationId, properties); }
/** * Output a comment */ @Override public void comment(CharSequence chars, Location locationId, int properties) throws XPathException { sep(); super.comment(chars, locationId, properties); }
/** * Start of a document node. */ @Override public void startDocument(int properties) throws XPathException { sep(); super.startDocument(properties); }
/** * Append an arbitrary item (node or atomic value) to the output * * @param item the item to be appended * @param locationId the location of the calling instruction, for diagnostics * @param copyNamespaces if the item is an element node, this indicates whether its namespaces * need to be copied. Values are {@link ReceiverOptions#ALL_NAMESPACES}, * {@link ReceiverOptions#LOCAL_NAMESPACES}; the default (0) means * no namespaces */ @Override public void append(Item item, Location locationId, int copyNamespaces) throws XPathException { if (item instanceof ArrayItem) { flatten((ArrayItem) item, locationId, copyNamespaces); } else { if (item instanceof AtomicValue) { sep(); nextReceiver.characters(item.getStringValueCS(), locationId, 0); } else { decompose(item, locationId, copyNamespaces); } } }
/** * Append an arbitrary item (node or atomic value) to the output * * @param item the item to be appended * @param locationId the location of the calling instruction, for diagnostics * @param copyNamespaces if the item is an element node, this indicates whether its namespaces * need to be copied. Values are {@link ReceiverOptions#ALL_NAMESPACES}, * {@link ReceiverOptions#LOCAL_NAMESPACES}; the default (0) means * no namespaces */ @Override public void append(Item item, Location locationId, int copyNamespaces) throws XPathException { if (item instanceof ArrayItem) { flatten((ArrayItem) item, locationId, copyNamespaces); } else { if (item instanceof AtomicValue) { sep(); nextReceiver.characters(item.getStringValueCS(), locationId, 0); } else { decompose(item, locationId, copyNamespaces); } } }