The string value is the result of concetenating all the text (as distinct from markup) within the buffer.
5758596061626364656667
protected String getAltText(MenuItem item) { String altText = null; if (provideAltText) { MenuText menuText = item.getLabel().getText(); OutputBuffer text = menuText.getText(); altText = text.stringValue(); } return altText; } }