MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / getText

Method getText

src/main/java/org/htmlunit/html/HtmlTitle.java:88–94  ·  view source on GitHub ↗

Returns the text attribute. @return the text attribute

()

Source from the content-addressed store, hash-verified

86 * @return the {@code text} attribute
87 */
88 public String getText() {
89 final DomNode firstChild = getFirstChild();
90 if (firstChild != null) {
91 return firstChild.getNodeValue();
92 }
93 return "";
94 }
95
96 /**
97 * Sets the {@code text} attribute.

Callers 1

getTextMethod · 0.95

Calls 2

getNodeValueMethod · 0.95
getFirstChildMethod · 0.45

Tested by

no test coverage detected