src/document/Document.java
public String toText(TextElementVisitor visitor) {
    for (TextElement element
            : content) {
      element.accept(visitor);
    }

    return visitor.toString();
  }
/**
   * Returns a string representation of the text based on the visitor passed in.
   *
   * @param visitor The type of visitor to this document.
   * @return The text.
   */
Returns a string representation of the text based on the visitor passed in.
@param visitor The type of visitor to this document.
@return The text.
Returns a string representation of the text based on the visitor passed in . @param visitor The type of visitor to this document . @return The text .
public String toText(TextElementVisitor visitor) {
    for (TextElement element
            : content) {
      element.accept(visitor);
    }
    return visitor.toString();
  }
public String toText ( TextElementVisitor visitor ) { for ( TextElement element : content ) { element . accept ( visitor ) ; } return visitor . toString ( ) ; }
Returns a string representation of the text based on the visitor passed in.
Returns a string representation of the text based on the visitor passed in .