1 17 package org.apache.servicemix.jbi.deployment; 18 19 import javax.xml.namespace.QName ; 20 21 26 public class Consumes { 27 private QName interfaceName; 28 private QName serviceName; 29 private String endpointName; 30 private String linkType = "standard"; 31 32 public QName getInterfaceName() { 33 return interfaceName; 34 } 35 36 public void setInterfaceName(QName interfaceName) { 37 this.interfaceName = interfaceName; 38 } 39 40 public QName getServiceName() { 41 return serviceName; 42 } 43 44 public void setServiceName(QName serviceName) { 45 this.serviceName = serviceName; 46 } 47 48 public String getEndpointName() { 49 return endpointName; 50 } 51 52 public void setEndpointName(String endpointName) { 53 this.endpointName = endpointName; 54 } 55 56 public String getLinkType() { 57 return linkType; 58 } 59 60 public void setLinkType(String linkType) { 61 this.linkType = linkType; 62 } 63 64 public boolean isStandardLink() { 65 return linkType != null && linkType.equals("standard"); 66 } 67 68 public boolean isSoftLink() { 69 return linkType != null && linkType.equals("soft"); 70 } 71 72 public boolean isHardLink() { 73 return linkType != null && linkType.equals("hard"); 74 } 75 } 76 | Popular Tags |