|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| PartnerLinkTypeImpl.java | - | 57.1% | 44.4% | 50% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* $Id: PartnerLinkTypeImpl.java,v 1.1 2004/12/15 14:18:18 patforna Exp $
|
|
| 3 |
*
|
|
| 4 |
* Copyright (c) 2004 Patric Fornasier, Pawel Kowalski
|
|
| 5 |
* Berne University of Applied Sciences
|
|
| 6 |
* School of Engineering and Information Technology
|
|
| 7 |
* All rights reserved.
|
|
| 8 |
*/
|
|
| 9 |
package bexee.wsdl.extensions.partnerlinktype.impl;
|
|
| 10 |
|
|
| 11 |
import javax.xml.namespace.QName;
|
|
| 12 |
|
|
| 13 |
import bexee.wsdl.extensions.partnerlinktype.PartnerLinkType;
|
|
| 14 |
import bexee.wsdl.extensions.partnerlinktype.PartnerLinkTypeConstants;
|
|
| 15 |
import bexee.wsdl.extensions.partnerlinktype.Role;
|
|
| 16 |
|
|
| 17 |
/**
|
|
| 18 |
* A default implementation of the <code>PartnerLinkType</code> BPEL extension
|
|
| 19 |
* to WSDL.
|
|
| 20 |
*
|
|
| 21 |
* @author Patric Fornasier
|
|
| 22 |
* @author Pawel Kowalski
|
|
| 23 |
* @version $Revision: 1.1 $, $Date: 2004/12/15 14:18:18 $
|
|
| 24 |
*/
|
|
| 25 |
public class PartnerLinkTypeImpl extends AbstractExtensibilityElement implements |
|
| 26 |
PartnerLinkType {
|
|
| 27 |
|
|
| 28 |
private static final Boolean required = Boolean.TRUE; |
|
| 29 |
|
|
| 30 |
private String name;
|
|
| 31 |
|
|
| 32 |
private Role myRole;
|
|
| 33 |
|
|
| 34 |
private Role partnerRole;
|
|
| 35 |
|
|
| 36 |
/**
|
|
| 37 |
* Create a new PartnerLinkTypeImpl instance.
|
|
| 38 |
*/
|
|
| 39 | 16 |
public PartnerLinkTypeImpl() {
|
| 40 | 16 |
super(PartnerLinkTypeConstants.PLINK_TYPE_QNAME, required);
|
| 41 |
} |
|
| 42 |
|
|
| 43 |
/**
|
|
| 44 |
* @return Returns the myRole.
|
|
| 45 |
*/
|
|
| 46 | 16 |
public Role getMyRole() {
|
| 47 | 16 |
return myRole;
|
| 48 |
} |
|
| 49 |
|
|
| 50 |
/**
|
|
| 51 |
* @param myRole
|
|
| 52 |
* The myRole to set.
|
|
| 53 |
*/
|
|
| 54 | 16 |
public void setMyRole(Role myRole) { |
| 55 | 16 |
this.myRole = myRole;
|
| 56 |
} |
|
| 57 |
|
|
| 58 |
/**
|
|
| 59 |
* @return Returns the name.
|
|
| 60 |
*/
|
|
| 61 | 0 |
public String getName() {
|
| 62 | 0 |
return name;
|
| 63 |
} |
|
| 64 |
|
|
| 65 |
/**
|
|
| 66 |
* @param name
|
|
| 67 |
* The name to set.
|
|
| 68 |
*/
|
|
| 69 | 16 |
public void setName(String name) { |
| 70 | 16 |
this.name = name;
|
| 71 |
} |
|
| 72 |
|
|
| 73 |
/**
|
|
| 74 |
* @return Returns the partnerRole.
|
|
| 75 |
*/
|
|
| 76 | 0 |
public Role getPartnerRole() {
|
| 77 | 0 |
return partnerRole;
|
| 78 |
} |
|
| 79 |
|
|
| 80 |
/**
|
|
| 81 |
* @param partnerRole
|
|
| 82 |
* The partnerRole to set.
|
|
| 83 |
*/
|
|
| 84 | 0 |
public void setPartnerRole(Role partnerRole) { |
| 85 | 0 |
this.partnerRole = partnerRole;
|
| 86 |
} |
|
| 87 |
|
|
| 88 | 0 |
public void setElementType(QName elementType) { |
| 89 |
//
|
|
| 90 |
// deliberately left empty: disable setting this property
|
|
| 91 |
//
|
|
| 92 |
} |
|
| 93 |
|
|
| 94 | 0 |
public void setRequired(Boolean required) { |
| 95 |
//
|
|
| 96 |
// deliberately left empty: disable setting this property
|
|
| 97 |
//
|
|
| 98 |
} |
|
| 99 |
} |
|
||||||||||