Commit 3001fef412ad6dd39f7e1d55d604470a09084416

Authored by gibran
1 parent 81b642a8

Criação de metodo get e set para pegar o source do html setado.

src/main/java/br/com/checker/emag/core/Checker.java
... ... @@ -27,17 +27,33 @@ import br.com.checker.emag.core.PresentationEvaluation.PresentationEvaluationBui
27 27 public class Checker {
28 28  
29 29 private Source document;
  30 +
  31 + public Source getDocument() {
  32 + return document;
  33 + }
  34 +
  35 + public void setDocument(Source document) {
  36 + this.document = document;
  37 + }
  38 +
  39 +
  40 +
30 41 private Map<OccurrenceClassification,List<Occurrence>> occurrencesMap = new HashMap<OccurrenceClassification, List<Occurrence>>();;
31 42 private String url;
32 43  
33 44 private Checker(String html) {
34 45  
  46 +
35 47 this.document = new Source(html);
  48 + setDocument(this.document);
36 49 this.document.fullSequentialParse();
37 50 }
38 51  
39 52 private Checker(String html,String url) {
40 53 this(html);
  54 +
  55 + this.document = new Source(html);
  56 + setDocument(this.document);
41 57 this.url = url;
42 58 }
43 59  
... ...