PageRenderTime 60ms CodeModel.GetById 52ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/ws-tester-xor/ws-tester-xor-wsdl/src/main/java/com/googlecode/ws/tester/xor/wsdl/model/PortType.java

http://ws-tester.googlecode.com/
Java | 58 lines | 42 code | 10 blank | 6 comment | 1 complexity | 72734bdce6f9a6ccb8d818db23f6cdbd MD5 | raw file
 1package com.googlecode.ws.tester.xor.wsdl.model;
 2
 3import java.util.List;
 4import java.util.ArrayList;
 5
 6/**
 7 * Created by IntelliJ IDEA.
 8 * User: pablo
 9 * Date: 2009-06-28
10 * Time: 13:36:33
11 */
12public class PortType {
13    private String name;
14    private Documentation documentation;
15    private List<Operation> operations;
16
17    public String getName() {
18        return name;
19    }
20
21    public void setName(String name) {
22        this.name = name;
23    }
24
25    public Documentation getDocumentation() {
26        return documentation;
27    }
28
29    public void setDocumentation(Documentation documentation) {
30        this.documentation = documentation;
31    }
32
33    public List<Operation> getOperations() {
34        return operations;
35    }
36
37    public void setOperations(List<Operation> operations) {
38        this.operations = operations;
39    }
40
41    public void addOperation(Operation operation) {
42        if(operations==null) {
43            operations= new ArrayList<Operation>();
44        }
45        operations.add(operation);
46    }
47
48    @Override
49    public String toString() {
50        final StringBuilder sb = new StringBuilder();
51        sb.append("PortType");
52        sb.append("{name='").append(name).append('\'');
53        sb.append(", documentation=").append(documentation);
54        sb.append(", operations=").append(operations);
55        sb.append('}');
56        return sb.toString();
57    }
58}