void assertNoText() throws InvalidInputException {
    for (Element child : this.getChildren())
      if (child instanceof TextNode && StringUtils.isNotBlank(((TextNode) child).getText())) {
        throw new InvalidInputException("Element \"" + this.getMessageMLTag() + "\" may not have text content");
      }
  }
void assertNoText ( ) throws InvalidInputException { for ( Element child : this . getChildren ( ) ) if ( child instanceof TextNode && StringUtils . isNotBlank ( ( ( TextNode ) child ) . getText ( ) ) ) { throw new InvalidInputException ( "Element \"" + this . getMessageMLTag ( ) + "\" may not have text content" ) ; } }
Check that the element has no text content.