1 58 package org.apache.ecs.html; 59 60 import org.apache.ecs.*; 61 62 69 public class Head extends MultiPartElement implements Printable 70 { 71 74 { 75 setElementType("head"); 76 } 77 78 81 public Head() 82 { 83 } 84 85 89 public Head(String value) 90 { 91 addElement(value); 92 } 93 94 98 public Head(Element value) 99 { 100 addElement(value); 101 } 102 103 107 public Head setProfile(String profile) 108 { 109 addAttribute("profile",profile); 110 return this; 111 } 112 113 118 public Head addElement(String hashcode,Element element) 119 { 120 addElementToRegistry(hashcode,element); 121 return(this); 122 } 123 124 129 public Head addElement(String hashcode,String element) 130 { 131 addElementToRegistry(hashcode,element); 132 return(this); 133 } 134 135 139 public Head addElement(Element element) 140 { 141 addElementToRegistry(element); 142 return(this); 143 } 144 148 public Head addElement(String element) 149 { 150 addElementToRegistry(element); 151 return(this); 152 } 153 157 public Head removeElement(String hashcode) 158 { 159 removeElementFromRegistry(hashcode); 160 return(this); 161 } 162 } 163 | Popular Tags |