/** * Get a string representation. * * @return The string. */ public String toString() { return "Summary - content: " + getContent() + " type: " + getType(); } }
/** * Get a string representation. * * @return The string. */ public String toString() { return "Summary - content: " + getContent() + " type: " + getType(); } }
/** * Get a string representation. * * @return The string. */ public String toString() { return "Summary - content: " + getContent() + " type: " + getType(); } }
/** * Retrieve the details for a TextConstruct object. * * @param data The text construct object to display. * * @return Either 'Not defined' if the data is <code>null</code>, or * details of the text content element. */ private String getTextConstructDetails(TextConstruct data) { String summaryStr = ""; if (data == null) { summaryStr = "Not defined"; } else { summaryStr = "Content: '" + data.getContent() + "', Type: "; if (data.getType() != null) { summaryStr += "'" + data.getType().toString() + "'"; } else { summaryStr += "undefined."; } } return summaryStr; }
/** * Retrieve the details for a TextConstruct object. * * @param data The text construct object to display. * * @return Either 'Not defined' if the data is <code>null</code>, or * details of the text content element. */ private String getTextConstructDetails(TextConstruct data) { String summaryStr = ""; if( data == null ) { summaryStr = "Not defined"; } else { summaryStr = "Content: '" + data.getContent() + "', Type: "; if( data.getType() != null ) { summaryStr += "'" + data.getType().toString() + "'"; } else { summaryStr += "undefined."; } } return summaryStr; }
/** * Retrieve the details for a TextConstruct object. * * @param data The text construct object to display. * * @return Either 'Not defined' if the data is <code>null</code>, or * details of the text content element. */ private String getTextConstructDetails(TextConstruct data) { String summaryStr = ""; if( data == null ) { summaryStr = "Not defined"; } else { summaryStr = "Content: '" + data.getContent() + "', Type: "; if( data.getType() != null ) { summaryStr += "'" + data.getType().toString() + "'"; } else { summaryStr += "undefined."; } } return summaryStr; }