1 package pl.caltha.forms.internal.model;
2
3 import org.xml.sax.Attributes;
4
5 import pl.caltha.forms.internal.util.Util;
6
7 /***
8 * Form submitInfo element.
9 *
10 * @author <a href="mailto:zwierzem@ngo.pl">Damian Gajda</a>
11 * @version $Id: SubmitInfo.java,v 1.1 2005/01/19 06:55:35 pablo Exp $
12 */
13 public class SubmitInfo
14 {
15 protected String id;
16 protected String action;
17 protected String encType;
18 protected String method;
19 protected String encoding;
20 protected String mediaType;
21
22 public SubmitInfo(Attributes atts)
23 {
24 this.id = Util.getSAXAttributeVal(atts, "id");
25 this.action = Util.getSAXAttributeVal(atts, "action");
26 this.encType = Util.getSAXAttributeVal(atts, "encType");
27 this.method = Util.getSAXAttributeVal(atts, "method");
28 this.encoding = Util.getSAXAttributeVal(atts, "encoding");
29 this.mediaType = Util.getSAXAttributeVal(atts, "mediaType");
30 }
31
32 public String getId()
33 {
34 return id;
35 }
36
37 public String getAction()
38 {
39 return action;
40 }
41
42 public String getEncType()
43 {
44 return encType;
45 }
46
47 public String getMethod()
48 {
49 return method;
50 }
51
52 public String getEncoding()
53 {
54 return encoding;
55 }
56
57 public String getMediaType()
58 {
59 return mediaType;
60 }
61 }