public void setComment ( String newComment ) { if ( comment . length ( ) > COMMENT_SIZE ) { comment = newComment . substring ( 0 , COMMENT_SIZE ) ; } else { comment = newComment ; } }
Set the comment field of the tag . The maximum size of the String is 30 . If the size exceeds the maximum size the String will be truncated .