private String getContentText ( JsonNode node ) throws UnsupportedDashletContentException { if ( node . hasNonNull ( "textContent" ) ) { return node . get ( "textContent" ) . asText ( ) ; } else { throw new UnsupportedDashletContentException ( "Text content missing" ) ; } }
Reads text content from a dashlet node .