1 58 package org.apache.ecs.wml; 59 60 import org.apache.ecs.Element; 61 import org.apache.ecs.SinglePartElement; 62 63 69 public class Go extends org.apache.ecs.MultiPartElement 70 { 71 75 public Go() { 76 setElementType("go"); 77 } 78 79 83 public Go(String url) 84 { 85 this(); 86 setHref(url); 87 } 88 89 94 public Go(String url, Method method) 95 { 96 this(); 97 setHref(url); 98 setMethod(method); 99 } 100 101 106 public Go(String url, Element element) 107 { 108 this(); 109 setHref(url); 110 addElement(element); 111 } 112 113 117 public Go setHref(String url) 118 { 119 addAttribute("href", url); 120 return this; 121 } 122 123 127 public Go addElement(Element element) 128 { 129 addElementToRegistry(element, getFilterState()); 130 return(this); 131 } 132 133 137 public Go setMethod(Method method) 138 { 139 addAttribute("method", method.toString()); 140 return this; 141 } 142 143 } 144 | Popular Tags |