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 Input extends org.apache.ecs.SinglePartElement 70 { 71 75 public Input() { 76 setBeginEndModifier('/'); 77 setElementType("input"); 78 } 79 80 84 public Input(String name) 85 { 86 this(); 87 setName(name); 88 } 89 90 95 public Input(String name, Type type) 96 { 97 this(); 98 setName(name); 99 setType(type); 100 } 101 102 108 public Input(String format, String name, Type type) 109 { 110 this(); 111 setFormat(format); 112 setName(name); 113 setType(type); 114 } 115 116 120 public Input setFormat(String format) 121 { 122 addAttribute("format", format); 123 return this; 124 } 125 126 130 public Input setName(String name) 131 { 132 addAttribute("name", name); 133 return this; 134 } 135 136 140 public Input setType(Type type) 141 { 142 addAttribute("type", type.toString()); 143 return this; 144 } 145 146 } 147 | Popular Tags |