5 package org
.spirit
.servlet
.bean
;
7 import java
.io
.Serializable
;
10 * This is class is used by botverse.
11 * @author Berlin Brown
14 public class BotListConcatValue
implements Serializable
{
19 private static final long serialVersionUID
= -4007269620924320835L;
21 public final static int DEFAULT_MAX_LEN
= 10;
27 private int maxLen
= -1;
32 public int getMaxLen() {
34 maxLen
= DEFAULT_MAX_LEN
;
39 * @param maxLen the maxLen to set
41 public void setMaxLen(int maxLen
) {
48 public String
getWord() {
49 if (word
!= null && (word
.length() > (maxLen
+ 3))) {
50 word
= word
.substring(0, (maxLen
- 1)) + "...";
55 public final static String
getMaxWord(String value
, Integer curMaxLenI
) {
56 int curMaxLen
= curMaxLenI
.intValue();
57 String curWord
= value
;
58 if (value
!= null && (value
.length() > (curMaxLen
+ 3))) {
59 curWord
= value
.substring(0, (curMaxLen
- 1)) + "...";
65 * @param word the word to set
67 public void setWord(String word
) {