com.tszadel.qctools4j.model.comment
Class QcCommentParser

java.lang.Object
  extended by com.tszadel.qctools4j.model.comment.QcCommentParser

public class QcCommentParser
extends Object

A specific comment parser.
QC store the descriptions and the comments as HTML text... which can not be well formed!

Author:
tszadel

Constructor Summary
QcCommentParser()
           
 
Method Summary
static String encodeComments(List<QcComment> pComments)
          Encode the comments.
static List<QcComment> parseComments(String pCommentString)
          Parse an HTML Comment (from QC).
static String parseDescription(String pString)
          Parse an HTML Description (from QC).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QcCommentParser

public QcCommentParser()
Method Detail

encodeComments

public static String encodeComments(List<QcComment> pComments)
Encode the comments.

Parameters:
pComments - The comments to encode.
Returns:
The comments encoded.

parseComments

public static List<QcComment> parseComments(String pCommentString)
Parse an HTML Comment (from QC).

Parameters:
pCommentString - The comment in QC-HTML format.
Returns:
The comments

parseDescription

public static String parseDescription(String pString)
Parse an HTML Description (from QC).

Parameters:
pString - The description in QC-HTML format.
Returns:
The comments