rendered paste bodypackage test;import java.util.*;public class Attribute { private String Name; private List<StyleAttrib> Style; private String OpenTag; private String CloseTag; public Attribute() { this.Name = "html"; this.OpenTag = "<" +this.Name+">"; this.CloseTag = "</" +this.Name+">"; /*To escape the first /*/ } public Attribute(String Name){ this.Name = Name; this.OpenTag = "<" +this.Name+"/>"; this.CloseTag = ""; } public Attribute(String Name,String StyleTag,String StyleValue) { this.Name = Name; List<StyleAttrib> Style = this.Style; this.OpenTag = "<" +this.Name+">"; this.CloseTag = "</" +this.Name+">"; /*To escape the first /*/ StyleAttrib tempStyle= new StyleAttrib (StyleTag,StyleValue); Style.add(tempStyle);//this.Style.add(tempStyle); } public String printTags(){ String Tags; Tags = this.OpenTag+this.CloseTag; return Tags; }public String printStyle(){ String style = "style='"; style =style + "'"; return style;} public String printTags(Attribute NestedAttrib){ // for Polymorphism - this allows the print tags to print tags inside tags - Yo Dawg!... String Tags; Tags = this.OpenTag+NestedAttrib.printTags()+this.CloseTag; return Tags; }}/*Style Attrib*/package test;public class StyleAttrib { private String name; private String value; public StyleAttrib(String name,String value){ this.name = name; this.value = value;} public void setName(String name){ this.name = name; } public void setValue(String value){ this.value = value; } public String getName(){ return this.name; } public String getValue(){ return this.value; }}