package com.grayben.riskExtractor.htmlScorer.scorers.tagScorers;

import com.grayben.riskExtractor.htmlScorer.scorers.Scorer;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;

import java.util.ArrayList;
import java.util.List;

public class TagEmphasisScorer
		extends Scorer<Tag> {
	
	List<Tag> tagScores = null;

	TagEmphasisScorer(String scoreLabel) {
		super(scoreLabel);
	}

	public int score(Element element) {
		
		return 0;
	}

	public void useDefaultMap() {
		
		//Map<Tag, Integer> tagScores = this.getTagScores();
		List<Tag> tags = new ArrayList<Tag>();
		tags.add(Tag.valueOf("b"));
		tags.add(Tag.valueOf("strong"));
		tags.add(Tag.valueOf("h1"));
		tags.add(Tag.valueOf("h2"));
		tags.add(Tag.valueOf("h3"));
		tags.add(Tag.valueOf("h4"));
		tags.add(Tag.valueOf("h5"));
		tags.add(Tag.valueOf("u"));
		
		//this.setTagScores(tagScores);
		
	}

	@Override
	public int score(Tag input) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String getScoreLabel() {
		return null;
	}


}

@@ -226,20 +226,68 @@
 va.util.
-List
+HashMap;%0Aimport java.util.List;%0Aimport java.util.Map
 ;%0A%0Apubli
@@ -340,99 +340,216 @@
 %3E %7B%0A
-%09%0A%09List%3CTag%3E tagScores = null;%0A%0A%09TagEmphasisScorer(String scoreLabel) %7B%0A%09%09super(scoreLabel)
+%0A    public static final String SCORE_LABEL = %22tag-emphasis%22;%0A%09%0A%09Map%3CTag, Integer%3E tagScores = null;%0A%0A%09TagEmphasisScorer(Map%3CTag, Integer%3E tagScores) %7B%0A%09%09super(SCORE_LABEL);%0A        this.tagScores = tagScores
 ;%0A%09%7D
@@ -618,17 +618,40 @@
 lic 
-void useD
+static final Map%3CTag, Integer%3E d
 efau
@@ -724,42 +724,45 @@
 ;%0A%09%09
-List%3CTag%3E tags = new ArrayList%3CTag
+Map%3CTag, Integer%3E tags = new HashMap%3C
 %3E();
@@ -761,35 +761,35 @@
 Map%3C%3E();%0A%09%09tags.
-add
+put
 (Tag.valueOf(%22b%22
@@ -789,16 +789,19 @@
 eOf(%22b%22)
+, 1
 );%0A%09%09tag
@@ -794,35 +794,35 @@
 b%22), 1);%0A%09%09tags.
-add
+put
 (Tag.valueOf(%22st
@@ -827,16 +827,19 @@
 strong%22)
+, 1
 );%0A%09%09tag
@@ -832,35 +832,35 @@
 g%22), 1);%0A%09%09tags.
-add
+put
 (Tag.valueOf(%22h1
@@ -861,16 +861,19 @@
 Of(%22h1%22)
+, 1
 );%0A%09%09tag
@@ -866,35 +866,35 @@
 1%22), 1);%0A%09%09tags.
-add
+put
 (Tag.valueOf(%22h2
@@ -895,16 +895,19 @@
 Of(%22h2%22)
+, 1
 );%0A%09%09tag
@@ -900,35 +900,35 @@
 2%22), 1);%0A%09%09tags.
-add
+put
 (Tag.valueOf(%22h3
@@ -929,16 +929,19 @@
 Of(%22h3%22)
+, 1
 );%0A%09%09tag
@@ -934,35 +934,35 @@
 3%22), 1);%0A%09%09tags.
-add
+put
 (Tag.valueOf(%22h4
@@ -963,16 +963,19 @@
 Of(%22h4%22)
+, 1
 );%0A%09%09tag
@@ -968,35 +968,35 @@
 4%22), 1);%0A%09%09tags.
-add
+put
 (Tag.valueOf(%22h5
@@ -997,16 +997,19 @@
 Of(%22h5%22)
+, 1
 );%0A%09%09tag
@@ -1014,11 +1014,11 @@
 ags.
-add
+put
 (Tag
@@ -1030,16 +1030,19 @@
 eOf(%22u%22)
+, 1
 );%0A%09%09%0A%09%09

Add default map