1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 70 public class Meta extends SinglePartElement implements Printable 71 { 72 75 76 { 77 setElementType("meta"); 78 } 79 80 83 public Meta() 84 { 85 } 86 87 91 public Meta setContent(String content) 92 { 93 addAttribute("content",content); 94 return this; 95 } 96 97 101 public Meta setName(String name) 102 { 103 addAttribute("name",name); 104 return this; 105 } 106 107 111 public Meta setScheme(String scheme) 112 { 113 addAttribute("scheme",scheme); 114 return this; 115 } 116 117 121 public Meta setHttpEquiv(String http_equiv) 122 { 123 addAttribute("http-equiv",http_equiv); 124 return this; 125 } 126 127 132 public Meta addElement(String hashcode,Element element) 133 { 134 addElementToRegistry(hashcode,element); 135 return(this); 136 } 137 138 143 public Meta addElement(String hashcode,String element) 144 { 145 addElementToRegistry(hashcode,element); 146 return(this); 147 } 148 149 153 public Meta addElement(Element element) 154 { 155 addElementToRegistry(element); 156 return(this); 157 } 158 159 163 public Meta addElement(String element) 164 { 165 addElementToRegistry(element); 166 return(this); 167 } 168 172 public Meta removeElement(String hashcode) 173 { 174 removeElementFromRegistry(hashcode); 175 return(this); 176 } 177 } 178 | Popular Tags |