1 17 package org.apache.servicemix.common.packaging; 18 19 import javax.xml.namespace.QName ; 20 21 30 public class Consumes { 31 32 public static final int LINKTYPE_STANDARD = 1; 33 34 public static final int LINKTYPE_HARD = 2; 35 36 public static final int LINKTYPE_SOFT = 3; 37 38 private QName interfaceName; 39 40 private QName serviceName; 41 42 private String endpointName; 43 44 private int linkType; 45 46 public String getEndpointName() { 47 return endpointName; 48 } 49 50 public void setEndpointName(String endpointName) { 51 this.endpointName = endpointName; 52 } 53 54 public QName getInterfaceName() { 55 return interfaceName; 56 } 57 58 public void setInterfaceName(QName interfaceName) { 59 this.interfaceName = interfaceName; 60 } 61 62 public int getLinkType() { 63 return linkType; 64 } 65 66 public void setLinkType(int linkType) { 67 this.linkType = linkType; 68 } 69 70 public QName getServiceName() { 71 return serviceName; 72 } 73 74 public void setServiceName(QName serviceName) { 75 this.serviceName = serviceName; 76 } 77 78 public boolean isValid() { 79 return (getServiceName() != null || getInterfaceName() != null); 80 } 81 } 82 | Popular Tags |