/** * Returns the textual content of this element with all surrounding * whitespace removed and internal whitespace normalized to a single space. * If no textual value exists for the element, or if only whitespace exists, * the empty string is returned. * * @return normalized text content for this element, or * empty string if none */ public String getTextNormalize() { return Text.normalizeString(getText()); }
/** * This returns the textual content with all surrounding whitespace * removed and internal whitespace normalized to a single space. If * only whitespace exists, the empty string is returned. * * @return normalized text content or empty string */ public String getTextNormalize() { return normalizeString(getText()); }
switch (bufferType) { case Float: { final String normalizedText = Text.normalizeString(text); if (normalizedText.length() == 0) { return new Text(""); final String normalizedText = Text.normalizeString(text); if (normalizedText.length() == 0) { return new Text(""); final String normalizedText = Text.normalizeString(text); if (normalizedText.length() == 0) { return new Text(""); final String normalizedText = Text.normalizeString(text); if (normalizedText.length() == 0) { return new Text(""); + count, e); return new Text(Text.normalizeString(text));
description.setText(Text.normalizeString(pom.getDescription())); pack.addContent(description);