* @throws XPathExpressionException
*/
private Conversation analyserConversation(Conversation convsXpath,
Conversation convsRegExp, Node node, String str)
throws XPathExpressionException {
Conversation resutl = new Conversation();
if (node == null) {
} else if (StringUtil.isEmpty(str)) {
if (!StringUtil.isEmpty(convsXpath.getAuthor()))
resutl.setAuthor(xpath.evaluate(convsXpath.getAuthor(), node).trim());
if (!StringUtil.isEmpty(convsXpath.getContent()))
resutl.setContent(xpath.evaluate(convsXpath.getContent(), node).trim());
if (!StringUtil.isEmpty(convsXpath.getIsTopic()))
resutl.setIsTopic(xpath.evaluate(convsXpath.getIsTopic(), node).trim());
if (!StringUtil.isEmpty(convsXpath.getMainLink()))
resutl.setMainLink(xpath.evaluate(convsXpath.getMainLink(),
node).trim());
if (!StringUtil.isEmpty(convsXpath.getPublishTime()))
resutl.setPublishTime(xpath.evaluate(
convsXpath.getPublishTime(), node).trim());
if (!StringUtil.isEmpty(convsXpath.getRunable()))
resutl.setRunable(xpath.evaluate(convsXpath.getRunable(), node).trim());
if (!StringUtil.isEmpty(convsXpath.getSelfLink()))
resutl.setSelfLink(SpiderThread.formatUrl(xpath.evaluate(convsXpath.getSelfLink(),
node).trim(),this.urlReq));
if (!StringUtil.isEmpty(convsXpath.getTitle()))
resutl.setTitle(xpath.evaluate(convsXpath.getTitle(), node).trim());
if (!StringUtil.isEmpty(convsXpath.getUpdateTime()))
resutl.setUpdateTime(xpath.evaluate(convsXpath.getUpdateTime(),
node).trim());
if (!StringUtil.isEmpty(convsXpath.getRunable()))
resutl.setRunable(xpath.evaluate(convsXpath.getRunable(), node).trim());
}
return resutl;
}