package org.talend.esb.mep.requestcallback.impl.wsdl;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import org.apache.cxf.wsdl.TExtensibilityElementImpl;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "role", namespace = "http://schemas.xmlsoap.org/ws/2003/05/partner-link/")
public class PLRole extends TExtensibilityElementImpl {
@XmlAttribute(name = "name", required = true)
@XmlSchemaType(name = "anyURI")
private String name;
@XmlElement(name = "portType")
private PLPortType portType;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public PLPortType getPortType() {
return portType;
}
public void setPortType(PLPortType portType) {
this.portType = portType;
}
@Override
public String toString() {
return name + '(' + (portType != null ? portType.getName() : "<none>")
+ ')';
}
}