package com.grayben.riskExtractor.htmlScorer.partScorers;

import org.jsoup.nodes.Attribute;
import org.jsoup.parser.Tag;

public class TagAndAttribute {
	private final Tag tag;
	private final Attribute attribute;

    public Tag getTag() {
        return tag;
    }

    public Attribute getAttribute() {
        return attribute;
    }

    public TagAndAttribute(Tag tag, Attribute attribute) {
		super();
        if (tag == null) {
            throw new NullPointerException(
                    "Attempted to pass in null tag:Tag"
            );
        }
        if (attribute == null) {
            throw new NullPointerException(
                    "Attempted to pass in null attribute:Attribute"
            );
        }

        this.tag = tag;
		this.attribute = attribute;
	}

    @Override
    public boolean equals(Object o) {
        assert getTag() != null;
        assert getAttribute() != null;

        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TagAndAttribute that = (TagAndAttribute) o;

        if (!getTag().equals(that.getTag())) return false;
        return getAttribute().equals(that.getAttribute());

    }

    @Override
    public int hashCode() {
        assert getAttribute() != null;
        assert getTag() != null;
        int result = getTag().hashCode();
        result = 31 * result + getAttribute().hashCode();
        return result;
    }
}

@@ -107,18 +107,102 @@
 oup.
-parser.Tag
+nodes.Element;%0Aimport org.jsoup.parser.Tag;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List
 ;%0A%0Ap
@@ -379,24 +379,24 @@
 tribute() %7B%0A
-
         retu
@@ -408,32 +408,340 @@
 tribute;%0A    %7D%0A%0A
+    public static List%3CTagAndAttribute%3E fromElement(Element element)%7B%0A        List%3CTagAndAttribute%3E list = new ArrayList%3C%3E();%0A        for (Attribute attribute :%0A                element.attributes()) %7B%0A            list.add(new TagAndAttribute(element.tag(), attribute));%0A        %7D%0A        return list;%0A    %7D%0A%0A
     public TagAn

Create static generator from Element