2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package com.landtool.lanbase.modules.res.entity.WebService;
 
import java.util.ArrayList;
import java.util.List;
 
public class ParameterInfo {
    /**
     * 名称
     */
    private String name;
 
    /**
     * 值,仅基本类型会被填入
     */
    private String value;
 
    /**
     * 类型,类型未空时表示自己定义的complexType
     */
    private String type;
 
    /**
     * 子类型,用于识别array类型下的type,应该是不用担心array嵌套array的,目前我测试的java
     * webservice框架无法自动生成对应的wsdl文档
     */
    private String childType;
 
    /**
     * 子结点
     */
    private List<ParameterInfo> children = new ArrayList();
 
    /**
     * 我个人建议是加上这个父结点,方便以后回溯用,但本例中上我并未使用到
     */
    private ParameterInfo parentParam;
 
    public ParameterInfo() {
    }
 
    public ParameterInfo(String name, String type) {
        this.name = name;
        this.type = type;
    }
 
    public ParameterInfo(String name, String value, String type, String childType, List<ParameterInfo> children) {
        this.name = name;
        this.value = value;
        this.type = type;
        this.childType = childType;
        this.children = children;
        this.parentParam = null;
    }
 
    public String getName() {
        return this.name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public String getValue() {
        return this.value;
    }
 
    public void setValue(String value) {
        this.value = value;
    }
 
    public String getType() {
        return this.type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public List<ParameterInfo> getChildren() {
        return this.children;
    }
 
    public void setChildren(List<ParameterInfo> children) {
        this.children = children;
    }
 
    public String getChildType() {
        return this.childType;
    }
 
    public void setChildType(String childType) {
        this.childType = childType;
    }
 
    public void addChild(ParameterInfo param) {
        this.children.add(param);
    }
 
    public ParameterInfo getParentParam() {
        return parentParam;
    }
 
    public void setParentParam(ParameterInfo parentParam) {
        this.parentParam = parentParam;
    }
}