fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.integration
Class AugmentedDoc

java.lang.Object
  extended by fr.paris.telecomParisTech.dbWEB.arcomem.wp5.appliocationAwareHelper.integration.AugmentedDoc
All Implemented Interfaces:
AugmentedDocument

public class AugmentedDoc
extends Object
implements AugmentedDocument

Implementation of AugmentedDocument class Interface. It structure information about single Web page


Constructor Summary
AugmentedDoc()
          Sole constructor.
 
Method Summary
 Collection<DocumentPart> getDocumentParts()
          
 Collection<AugmentedLink> getLinkScores()
          
 Collection<String> getTags()
          
 String getTitle()
          
 boolean isApplicationTypeDetected()
          
 boolean isPageTypeDetected()
           
 void setApplicationTypeDetected()
          Sets the ApplicationTypeDetected variable to true, which will Let knows
other Projects (Which uses my system) that Application type is detected.
 void setDocumentParts(String documentAsHTML)
          A method that sets Document Parts.
 void setDocumentParts(String document, String html)
          A method that sets Document Parts.
 void setDocumentParts(String hosturl, String username, double reputation, String htmlcontent, String plaintext, String title, String DateAsString)
          Sets Documents Parts.
 void setDocumentParts(String hosturl, String username, double reputation, String htmlcontent, String plaintext, String title, String[] parsedate)
          Sets Documents Parts.
 void setLinkScores(String url, double score)
          Set link with score
 void setLinkScores(String url, double score, String anchorText, LinkType type)
          Set link with score.
 void setPageTypeDetected()
          Sets the PageTypeDetected variable to true, which will Let knows
other Projects (Which uses my system) that Application type is detected.
 void setPostBody(String post_body)
          Sets Blog Post Body.
 void setPostDate(String post_date)
          Set Blog post creation date.
 void setTitle(String title)
          Set the Title of the web page.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AugmentedDoc

public AugmentedDoc()
Sole constructor.

Method Detail

getDocumentParts

public Collection<DocumentPart> getDocumentParts()

Specified by:
getDocumentParts in interface AugmentedDocument

getLinkScores

public Collection<AugmentedLink> getLinkScores()

Specified by:
getLinkScores in interface AugmentedDocument

getTags

public Collection<String> getTags()

Specified by:
getTags in interface AugmentedDocument

getTitle

public String getTitle()

Specified by:
getTitle in interface AugmentedDocument

isApplicationTypeDetected

public boolean isApplicationTypeDetected()

Specified by:
isApplicationTypeDetected in interface AugmentedDocument

isPageTypeDetected

public boolean isPageTypeDetected()
Specified by:
isPageTypeDetected in interface AugmentedDocument
Returns:
true iff the specific type of document was identified.

setApplicationTypeDetected

public void setApplicationTypeDetected()
Sets the ApplicationTypeDetected variable to true, which will Let knows
other Projects (Which uses my system) that Application type is detected.


setDocumentParts

public void setDocumentParts(String documentAsHTML)
A method that sets Document Parts.
This method will be called when web application is not detected.
This method sets HtmlContent field of DocumentPart class with
html content of whole Document.

Parameters:
documentAsHTML - Html content of Whole document as a String.

setDocumentParts

public void setDocumentParts(String document,
                             String html)
A method that sets Document Parts.
This method will be called when web application has Primary
content, like blog post body.
This method sets HtmlContent and PlainText fields of DocumentPart
class with html content of Blog Post Body and Palin text content
of Blog Post Body.

Parameters:
document - Plain Text content of Whole document as a String.
html - HTML content of Whole document as a String.

setDocumentParts

public void setDocumentParts(String hosturl,
                             String username,
                             double reputation,
                             String htmlcontent,
                             String plaintext,
                             String title,
                             String DateAsString)
Sets Documents Parts.

Parameters:
hosturl - Web site Domain URL
username - Author name of Object
reputation - Author Reputation
htmlcontent - Object message body as HTML content
plaintext - Object message body as plain text
title - For Now it will be always null. Will add functionality latter.
DateAsString - Object creation date

setDocumentParts

public void setDocumentParts(String hosturl,
                             String username,
                             double reputation,
                             String htmlcontent,
                             String plaintext,
                             String title,
                             String[] parsedate)
Sets Documents Parts.

Parameters:
hosturl - Web site Domain URL
username - Author name of Object
reputation - Author Reputation
htmlcontent - Object message body as HTML content
plaintext - Object message body as plain text
title - For Now it will be always null. Will add functionality latter.
parsedate - An array that keeps different parts of date.

setLinkScores

public void setLinkScores(String url,
                          double score)
Set link with score

Parameters:
url - URL of the Link
score - +1 if related link else -1

setLinkScores

public void setLinkScores(String url,
                          double score,
                          String anchorText,
                          LinkType type)
Set link with score.

Parameters:
url - URL of the Link
score - +1 if related link else -1
anchorText - Anchor text of Link
type - Link type could be one of Forum, Post or Unknown

setPageTypeDetected

public void setPageTypeDetected()
Sets the PageTypeDetected variable to true, which will Let knows
other Projects (Which uses my system) that Application type is detected.


setPostBody

public void setPostBody(String post_body)
Sets Blog Post Body.

Parameters:
post_body -

setPostDate

public void setPostDate(String post_date)
Set Blog post creation date.

Parameters:
post_date - Creation Date

setTitle

public void setTitle(String title)
Set the Title of the web page.

Parameters:
title - title as a String