blob: 86a1d757d53623bc5b83888bf2cae737b8b23c56 (
plain)
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
107
108
109
110
111
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/package org.apache.tuscany.sca.implementation.bpel.xml;
import javax.wsdl.PortType;
import javax.wsdl.extensions.ExtensibilityElement;
import javax.xml.namespace.QName;
/**
* Represents a <partnerLinkType.../> element related to a BPEL process
* - this has attributes:
* name
* Role1 name
* Role1 portType
* Role2 name
* Role2 portType
*
* - in the XML the 2 roles are child elements of the partnerLinkType element, but there
* seems little point in reflecting this back into this model - it is simpler to include
* both roles within the representation of the partnerLinkType itself
*
* @version $Rev$ $Date$
*/
public class BPELPartnerLinkTypeElement implements ExtensibilityElement {
private QName name;
private String Role1name = null;
private QName Role1porttype = null;
private PortType Role1pType = null;
private String Role2name = null;
private QName Role2porttype = null;
private PortType Role2pType = null;
private QName elementType = null;
private Boolean required = false;
public BPELPartnerLinkTypeElement(QName name) {
this.name = name;
}
public QName getName() {
return name;
}
public void setRole1(String name, QName portType, PortType pType) {
Role1name = name;
Role1porttype = portType;
Role1pType = pType;
}
public void setRole2(String name, QName portType, PortType pType) {
Role2name = name;
Role2porttype = portType;
Role2pType = pType;
}
public String getRole1Name() {
return Role1name;
}
public String getRole2Name() {
return Role2name;
}
public QName getRole1PortType() {
return Role1porttype;
}
public QName getRole2PortType() {
return Role2porttype;
}
public PortType getRole1pType() {
return Role1pType;
}
public PortType getRole2pType() {
return Role2pType;
}
public QName getElementType() {
return elementType;
}
public Boolean getRequired() {
return required;
}
public void setElementType(QName elementType) {
this.elementType = elementType;
}
public void setRequired(java.lang.Boolean required) {
this.required = required;
}
} // end BPELPartnerLinkType
|