1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package uk.ac.soton.itinnovation.wsdlutils;
24
25 import javax.xml.namespace.QName;
26
27 public class WSDLParameter {
28 private String name;
29 private QName type;
30 private Object value;
31 private String textValue;
32
33 public WSDLParameter (String name, QName type)
34 {
35 this(name, type, null);
36 }
37
38 public WSDLParameter (String name, QName type, Object value)
39 {
40 setName(name);
41 setType(type);
42 setValue(value);
43 }
44
45 public String toString() { return name; }
46
47 private void setName( String name) { this.name = name; }
48 public String getName() { return name; }
49
50 private void setType(QName type) { this.type = type; }
51 public QName getType(){ return type; }
52
53 public void setValue( Object value) { this.value = value; }
54 public Object getValue() { return value; }
55
56 public void setTextValue( String textValue) { this.textValue = textValue; }
57 public String getTextValue() { return textValue; }
58
59 public boolean equals(Object o) {
60 if(o instanceof WSDLParameter)
61 return name.equals(((WSDLParameter) o).getName());
62
63 return false;
64 }
65 }