@Override public void replay(Receiver out) throws XPathException { out.characters(content, location, properties); } }
/** * Character data */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { if (depthOfHole == 0) { nextReceiver.characters(chars, locationId, properties); } }
/** * Write characters as a text node in the tree * * @param s the string to be added * @throws XPathException if a dynamic error occurs */ private void characters(String s) throws XPathException { out.characters(s, ExplicitLocation.UNKNOWN_LOCATION, 0); }
/** * Copy the node to a given Outputter */ public void copy(/*@NotNull*/ Receiver out, int copyOptions, Location locationId) throws XPathException { out.characters(text, locationId, 0); } }
/** * Character data */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { nextReceiver.characters(chars, locationId, properties); }
/** * Copy the result tree fragment value to a given Outputter */ public void copy(/*@NotNull*/ Receiver out, int copyOptions, Location locationId) throws XPathException { out.characters(text, locationId, 0); }
/** * Copy this node to a given outputter */ public void copy(/*@NotNull*/ Receiver out, int copyOptions, Location locationId) throws XPathException { out.characters(content, locationId, 0); }
/** * Copy this node to a given outputter */ public void copy(Receiver out, int copyOptions, Location locationId) throws XPathException { out.characters(getStringValueCS(), locationId, 0); }
/** * Output character data */ public void characters(/*@NotNull*/ CharSequence chars, Location locationId, int properties) throws XPathException { if (Whitespace.isWhite(chars)) { nextReceiver.characters(chars, locationId, properties); } else { nextReceiver.characters(normalize(chars, (properties & ReceiverOptions.USE_NULL_MARKERS) != 0), locationId, properties); } }
/** * Handle a text node */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { // assume adjacent chunks of text are already concatenated if (((((stripStack[top] & (ALWAYS_PRESERVE | PRESERVE_PARENT | SIMPLE_CONTENT | ASSERTIONS_EXIST)) != 0) && (stripStack[top] & ALWAYS_STRIP) == 0) || !Whitespace.isWhite(chars)) && chars.length() > 0) { nextReceiver.characters(chars, locationId, properties); } }
/** * Character data */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { checkString(chars, locationId); nextReceiver.characters(chars, locationId, properties); }
/** * Character data (corresponding to a text node). For character data within content (that is, events occurring * when the startDocument / startElement stack is non-empty), character data events will never be consecutive * and will never be zero-length. */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { transition("text"); if (chars.length() == 0 && !stack.isEmpty()) { throw new IllegalStateException("Zero-length text nodes not allowed within document/element content"); } nextReceiver.characters(chars, locationId, properties); }
/** * Character data * * @param chars * @param locationId the location of the node in the source, or of the instruction that created it * @param properties */ @Override public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { maybeStartContent(); nextReceiver.characters(chars, locationId, properties); }
/** * Character data */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { count("characters"); nextReceiver.characters(chars, locationId, properties); }
@Override public void endDocument() throws XPathException { if (afterEndTag) { nextReceiver.characters("\n", ExplicitLocation.UNKNOWN_LOCATION, 0); // if permitted, output a trailing newline, for tidier console output } super.endDocument(); }
/** * Copy this node to a given outputter */ public void copy(/*@NotNull*/ Receiver out, int copyOptions, Location locationId) throws XPathException { out.characters(getStringValueCS(), locationId, 0); }
/** * Handle a text node */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { if (chars.length() > 0 && (!stripStack[top] || !Whitespace.isWhite(chars))) { nextReceiver.characters(chars, locationId, properties); } }
/** * Character data */ public void characters(CharSequence chars, int locationId, int properties) throws XPathException { if (chars.length() > 0) { if (inStartTag) { startContent(); } nextReceiver.characters(chars, locationId, properties); } previousAtomic = false; }
/** * Flush the character buffer */ private void flush() throws XPathException { if (buffer.length() > 0) { nextReceiver.characters(buffer, 0, 0); } else if (savedWhitespace != null) { nextReceiver.characters(savedWhitespace, 0, 0); } savedWhitespace = null; buffer.setLength(0); }
/** * Character data */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { if (level == 0) { if (Whitespace.isWhite(chars)) { return; // ignore whitespace outside the outermost element } throw new XPathException("A valid document must contain no text outside the outermost element (found \"" + Err.truncate30(chars) + "\")", errorCode); } nextReceiver.characters(chars, locationId, properties); }