pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core.qc
Class SearchEngineQualityControlResult

java.lang.Object
  extended by org.torweg.pulse.component.core.qc.SearchEngineQualityControlResult
All Implemented Interfaces:
JDOMable, Result

public class SearchEngineQualityControlResult
extends java.lang.Object
implements Result

Version:
$Revision: 1454 $
Author:
Thomas Weber

Constructor Summary
SearchEngineQualityControlResult(org.jdom.Document xhtmlDocument)
          builds a new result.
SearchEngineQualityControlResult(org.jdom.Document xhtmlDocument, net.sf.classifier4J.IStopWordProvider p, org.jdom.xpath.XPath content)
          builds a new result.
SearchEngineQualityControlResult(org.jdom.Document xhtmlDocument, org.jdom.xpath.XPath content)
          builds a new result.
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          deserialises the result.
 java.lang.String getTitle()
          returns the title of the document, if set.
 void setURL(java.lang.String u)
          sets the URL of the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchEngineQualityControlResult

public SearchEngineQualityControlResult(org.jdom.Document xhtmlDocument)
                                 throws org.jdom.JDOMException
builds a new result.

Parameters:
xhtmlDocument - the xhtml to be analyzed.
Throws:
org.jdom.JDOMException - on errors

SearchEngineQualityControlResult

public SearchEngineQualityControlResult(org.jdom.Document xhtmlDocument,
                                        org.jdom.xpath.XPath content)
                                 throws org.jdom.JDOMException
builds a new result.

Parameters:
xhtmlDocument - the xhtml to be analyzed.
content - the XPath to the content part of the document or null
Throws:
org.jdom.JDOMException - on errors

SearchEngineQualityControlResult

public SearchEngineQualityControlResult(org.jdom.Document xhtmlDocument,
                                        net.sf.classifier4J.IStopWordProvider p,
                                        org.jdom.xpath.XPath content)
                                 throws org.jdom.JDOMException
builds a new result.

Parameters:
xhtmlDocument - the xhtml to be analyzed.
p - the stop word provider
content - the XPath to the content part of the document or null
Throws:
org.jdom.JDOMException - on errors
Method Detail

getTitle

public final java.lang.String getTitle()
returns the title of the document, if set.

Returns:
the title

setURL

public final void setURL(java.lang.String u)
sets the URL of the document.

Parameters:
u - the URL

deserializeToJDOM

public org.jdom.Element deserializeToJDOM()
deserialises the result.

Specified by:
deserializeToJDOM in interface JDOMable
Returns:
the deserialised result
See Also:
JDOMable.deserializeToJDOM()