1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class Base extends SinglePartElement implements Printable 70 { 71 74 { 75 setElementType("base"); 76 } 77 80 public Base() 81 { 82 } 83 84 88 public Base(String href) 89 { 90 setHref(href); 91 } 92 93 98 public Base(String href, String target) 99 { 100 setHref(target); 101 setTarget(target); 102 } 103 104 108 public Base setHref(String href) 109 { 110 addAttribute("href",href); 111 return this; 112 } 113 114 118 public Base setTarget(String target) 119 { 120 addAttribute("target",target); 121 return this; 122 } 123 124 129 public Base addElement(String hashcode,Element element) 130 { 131 addElementToRegistry(hashcode,element); 132 return(this); 133 } 134 135 140 public Base addElement(String hashcode,String element) 141 { 142 addElementToRegistry(hashcode,element); 143 return(this); 144 } 145 146 150 public Base addElement(Element element) 151 { 152 addElementToRegistry(element); 153 return(this); 154 } 155 156 160 public Base addElement(String element) 161 { 162 addElementToRegistry(element); 163 return(this); 164 } 165 169 public Base removeElement(String hashcode) 170 { 171 removeElementFromRegistry(hashcode); 172 return(this); 173 } 174 } 175 | Popular Tags |