1   package ixa.kaflib;
2   
3   import java.io.Serializable;
4   
5   /**
6    * An XML comment. Methods allow the user to get and set the text of the
7    * comment.
8    *
9    * @author  Brett McLaughlin
10   * @author  Jason Hunter
11   */
12  public class Comment extends org.jdom2.Comment implements Serializable {
13  
14  	public Comment(String text) {
15  		super();
16  
17  		text = text.trim();
18  		text = text.replaceAll("-+", "-");
19  		if (text.endsWith("-")) {
20  			text += " .";
21  		}
22  
23  		setText(text);
24  	}
25  
26  }