package flyweight; public class ATag extends HtmlTag { public ATag() { super("a"); } public String Output(String href, String content, TagContext context) { String res = "<" + getName() + " href=\"" + href + "\" "; res += "style=\"" + GetStyle(context) + "\">"; res += content; res += "</" + getName() + ">"; return res; } }